Skip to content
Snippets Groups Projects
Commit 43349279 authored by Patrick Ruckstuhl's avatar Patrick Ruckstuhl Committed by Hidde Beydals (Rebase PR Action)
Browse files

Add example podMonitor for prometheus

parent 7d3c63ad
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,24 @@ If you wish to use your own Prometheus and Grafana instances, then you can impor ...@@ -54,7 +54,24 @@ If you wish to use your own Prometheus and Grafana instances, then you can impor
!!! hint !!! hint
Note that the toolkit controllers expose the `/metrics` endpoint on port `8080`. Note that the toolkit controllers expose the `/metrics` endpoint on port `8080`.
When using Prometheus Operator you should create `PodMonitor` objects to configure scraping. When using Prometheus Operator you should create a `PodMonitor` object for each controller to configure scraping.
```yaml
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: source-controller
namespace: flux-system
spec:
namespaceSelector:
matchNames:
- flux-system
selector:
matchLabels:
app: source-controller
podMetricsEndpoints:
- port: http-prom
```
## Metrics ## Metrics
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment