A Windows PowerShell script module for providing a general way to export metrics to prometheus.
NOTE You may use cmder (with Git for Windows, http://cmder.net/ or 7-zip) to extarct files from a tarball.
- Download Prometheus Windows binary from this page, https://prometheus.io/download/#prometheus.
- Extract files to a directory, like c:\apps\prometheus\
- Using Visual Studio Code or Notepad++ to open prometheus.yml and add following parameters.
- job_name: 'pushgateway'
static_configs:
- targets: ['localhost:9091']
honor_labels: true
- Download Prometheus Pushgateway from this page, https://prometheus.io/download/#pushgateway
- Extract files to a directory, like c:\apps\prometheus-pushgateway\
- Download Grafana from this page, https://grafana.com/grafana/download?platform=windows
- Extract files to a directory, like c:\apps\granafa\
- Follow the instructions in following link to start grafana. http://docs.grafana.org/installation/windows/
You can also read official documentation for more details.
- https://prometheus.io/docs/introduction/getting_started/
- https://github.com/prometheus/pushgateway
- http://docs.grafana.org/installation/windows/
- Add support for accepting CimInstance instances