Prometheus & Grafana for monitoring Windows PC

Viewed 16

I've installed Prometheus, Grafana and Windows Exporter but somehow can't seem to make it work. I want to monitor my own PC (Win 11 if this matters). I've followed several tutorials step by step but can't seem to make it work.

Here is my prometheus.yaml:

# my global config
global:
  scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

# Alertmanager configuration
alerting:
  alertmanagers:
    - static_configs:
        - targets:
          # - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files:
  # - "first_rules.yml"
  # - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: "win-exporter"

    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.

    static_configs:
      - targets: ["192.168.0.1:9182"]

localhost:9182 shows me that the windows exporter is running and I can view the metrics. Next step - configure a dashboard using windows exporter - tried several imported ID's such as 14694, 14828, 14499, 14510, but none of them work with my configuration. In the dashboard creating menu, I set the Prometheus data source as default (this is the only option). I see 'No data' on all graphs, no matter which dashboard ID I use.

Any tips would be welcome! Thanks

0 Answers
Related