Custom Resource Examples¶
Working manifests for the custom resources that the monitoring stack consumes. Each example is self-contained: apply it in a namespace watched by the operator and check the result in Grafana or in the alert list.
Metric Collection¶
- Service Monitor: scrape a service through its endpoints.
- Pod Monitor: scrape pods directly, without a service.
- Custom Endpoint: scrape a target that lives outside the cluster.
Alerting¶
- Prometheus Rule: alerting and recording rules.
- AlertManager Config: routes and receivers for a single namespace.
Visualization¶
- Grafana Dashboard: ship a dashboard with your application.
- Grafana DataSource: register an additional data source.
Complete Services¶
- Service with Alarms: a service that ships its own alerts.
- Service with Dashboard: a service that ships its own dashboard.
- Service with TLS: a service scraped over TLS.