Skip to content

Commit

Permalink
Update metrics docs for Prometheus config file (#1058)
Browse files Browse the repository at this point in the history
Additional settings needs to be added into Prometheus config file for it to work.
  • Loading branch information
Berttwm committed Feb 10, 2022
1 parent cf0540e commit 23c5ccd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions website/content/usage/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ Add this to your yaml config file to enable serving prometheus metrics at the en
enable-prometheus: true
```

Additionally, in your Prometheus config file (prometheus.yml), add the following to link dkron metric endpoint
```yaml
scrape_configs:
... #initial configuration
- job_name: "dkron_metrics"
# metrics_path defaults to '/metrics'
static_configs:
- targets: ["localhost:6080"]
```

## Metrics

- dkron.agent.event_received.query_execution_done
Expand Down

0 comments on commit 23c5ccd

Please sign in to comment.