Skip to content

dalejrodriguez/Sysdig-Windows-Prometheus-Bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Sysdig Windows Prometheus Bundle

The Sysdig Windows Prometheus Bundle is a comprehensive package that installs and configures a Prometheus Agent and the Windows Exporter allowing you to send metrics to your Sysdig Monitor account with ease.

Key features:

  • User-friendly visual installation wizard
  • Interactive enabling of a vast variety of collectors
  • Prometheus Agent and Windows Exporter run as Windows services
  • Metrics enriched with Windows Domain and Instance host name for easy identification in Sysdig Monitor

Getting Started

To begin monitoring your Windows machines, follow these steps:

  1. Download the binary installer from the latest release of this project
  2. Run the installer in your windows machine
  3. Configure the Sysdig region and your Sysdig API token in the wizard
  4. Select the collectors that you want to enable to produce metrics
  5. Finish the installation
  6. Go to your Sysdig Monitor account and start using the Microsoft Windows dashboards and alerts

Automated installation

You can automate the installation of the Sysdig Windows Prometheus Bundle across multiple machines using the command line or PowerShell.

Use the following command as an example:

msiexec /i windows_exporter-1.0.0-x64.msi ENABLED_COLLECTORS=cpu,os SYSDIG_URL="https://api.sysdigcloud.com/prometheus/remote/write" SYSDIG_TOKEN="yyyyyyy-zzzz-zzzz-zzzz-xxxxxxxx" /qn

This command will install the Sysdig Windows Prometheus Bundle with the specified settings, making it easy to deploy across your infrastructure.

Options and parameters

From the command line you can use these options:

  • ENABLED_COLLECTORS: Comma separated list of collectors
  • SYSDIG_URL: The Prometheus endpoint of your Sysdig Monitor region in the form https://api.sysdigcloud.com/prometheus/remote/write. Consult the available regions here.
  • COMPUTER_NAME (optional): Overrides the label instance in metrics generated by the Windows Exporter with a custom value. The default value is the computer name stored in the COMPUTERNAME Windows environment variable.
  • PROMETHEUS_PORT (optional): The Prometheus port. The default value is '9090'.
  • PROMETHEUS_LOG_ENABLED (optional): The Prometheus log feature, this creates log file of the prometheus agent into the windows_exporter folder. The default value is '0'.
  • PROMETHEUS_LOG_LEVEL (optional): The Prometheus log level, this configure the level of the log file if we previously enable the log. The default value is 'info'.
  • WINDOWS_EXPORTER_LISTEN_ADDR (optional): The Windows Exporter IP address. The default value is '0.0.0.0'.
  • WINDOWS_EXPORTER_LISTEN_PORT (optional): The Windows Exporter port. The default value is '9182'.
  • WINDOWS_EXPORTER_EXTRA_FLAGS (optional): Windows Exporter additional CLI flags. The default value is an empty string.
  • WINDOWS_EXPORTER_FIREWALL_REMOTE_ADDR (optional): Comma separated remote IP addresses for the Windows Firewall exception (allow list). The default value is an empty string (any remote address).
  • TEXTFILE_DIR (only if textfile collector is enabled): The local folder where the textfile collector will look for files

Automated uninstallation

Use the following command to uninstall:

msiexec /x windows_exporter-1.0.0-x64.msi /qn

SQL Exporter Binary

The SQL Exporter is used to scrape custom MSSQL Metrics.

Please us this link to download the windows binary - https://github.com/dalejrodriguez/Sysdig-Windows-Prometheus-Bundle/releases/tag/v1.0

For configuration instructions go here - https://github.com/justwatchcom/sql_exporter

About

Sysdig bundle for Windows with Prometheus Agent and Windows Exporter

Resources

License

Stars

Watchers

Forks

Packages

No packages published