Skip to content

Instantly share code, notes, and snippets.

@n3b0r
Created November 10, 2022 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n3b0r/915d718d570cf78568399471927af063 to your computer and use it in GitHub Desktop.
Save n3b0r/915d718d570cf78568399471927af063 to your computer and use it in GitHub Desktop.
Prometheus Win Server config file prometheus.yaml
global:
scrape_interval: 10s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
remote_write:
- url: "https://api.sysdigcloud.com/prometheus/remote/write"
bearer_token: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
scrape_configs:
- job_name: "windows_exporter"
# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.
static_configs:
- targets: ["localhost:9182"]
metric_relabel_configs:
- source_labels: [instance]
target_label: instance
regex: '(.*)'
replacement: 'windows-vm-demo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment