Add example podMonitor resource

pull/796/head
David Young 4 years ago committed by GitHub
parent 84e2cb4c1f
commit 2c8d89fd41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,6 +56,27 @@ If you wish to use your own Prometheus and Grafana instances, then you can impor
Note that the toolkit controllers expose the `/metrics` endpoint on port `8080`.
When using Prometheus Operator you should create `PodMonitor` objects to configure scraping.
Below is an example `PodMonitor`:
````
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
annotations:
name: kustomize-controller
namespace: flux-system
spec:
podMetricsEndpoints:
- targetPort: 8080
honorLabels: true
namespaceSelector:
matchNames:
- flux-system
selector:
matchLabels:
app: kustomize-controller
````
## Metrics
For each `toolkit.fluxcd.io` kind,

Loading…
Cancel
Save