How to integrate Dapr provisioned dashboards

  • What Grafana version and what operating system are you us
    Latest

  • What are you trying to achieve?
    Integrate prometheus with dapr metrics and use provisioned dapr dashboards

  • How are you trying to achieve it?

Configuring prometheus.yml and a prometheus datasource for the dapr dashboard yml files

  • What happened?

I don’t see the prometheus icon under browse next to the dashboard as I do for cadvisor

  • What did you expect to happen?

See my dapr provisioned dashboards populated with live data from scraping dapr metrics on port 9090

  • Can you copy/paste the configuration(s) that you are having problems with?

global:
scrape_interval: 15s
scrape_timeout: 10s

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”

scrape_configs:

The job name is added as a label job=<job_name> to any timeseries scraped from this config.

  • job_name: ‘prometheus’
    static_configs:
    • targets: [‘localhost:9090’]
  • job_name: ‘dapr’
    scrape_interval: 5s
    static_configs:
    • targets: [‘localhost:9090’]
  • job_name: ‘cadvisor’
    static_configs:
    • targets: [‘cadvisor:8080’]
      labels:
      alias: ‘cadvisor’
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

no errors

  • Did you follow any online instructions? If so, what is the URL?

How-To: Observe metrics with Prometheus | Dapr Docs