You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/k8s-monitoring/README.md
+24-2
Original file line number
Diff line number
Diff line change
@@ -300,16 +300,19 @@ The Prometheus and Loki services may be hosted on the same cluster, or remotely
300
300
| metrics.podMonitors.extraMetricRelabelingRules | string |`""`| Rule blocks to be added to the prometheus.relabel component for PodMonitor objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block)) |
301
301
| metrics.podMonitors.namespaces | list |`[]`| Which namespaces to look for PodMonitor objects. |
302
302
| metrics.podMonitors.scrapeInterval | string | 60s | How frequently to scrape metrics from PodMonitor objects. Only used if the PodMonitor does not specify the scrape interval. Overrides metrics.scrapeInterval |
303
+
| metrics.podMonitors.selector | string |`""`| Which podMonitor objects to select |
303
304
| metrics.probes.enabled | bool |`true`| Include service discovery for Probe objects. |
304
305
| metrics.probes.extraMetricRelabelingRules | string |`""`| Rule blocks to be added to the prometheus.relabel component for Probe objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block)) |
305
306
| metrics.probes.namespaces | list |`[]`| Which namespaces to look for Probe objects. |
306
307
| metrics.probes.scrapeInterval | string | 60s | How frequently to scrape metrics from Probe objects. Only used if the Probe does not specify the scrape interval. Overrides metrics.scrapeInterval |
308
+
| metrics.probes.selector | string |`""`| Which probe objects to select |
307
309
| metrics.receiver.filters | object |`{"datapoint":[],"metric":[]}`| Apply a filter to metrics received via the OTLP or OTLP HTTP receivers. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/otelcol.processor.filter/)) |
308
310
| metrics.scrapeInterval | string |`"60s"`| How frequently to scrape metrics |
309
311
| metrics.serviceMonitors.enabled | bool |`true`| Include service discovery for ServiceMonitor objects |
310
312
| metrics.serviceMonitors.extraMetricRelabelingRules | string |`""`| Rule blocks to be added to the prometheus.relabel component for ServiceMonitor objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block)) |
311
313
| metrics.serviceMonitors.namespaces | list |`[]`| Which namespaces to look for ServiceMonitor objects. |
312
314
| metrics.serviceMonitors.scrapeInterval | string | 60s | How frequently to scrape metrics from ServiceMonitor objects. Only used if the ServiceMonitor does not specify the scrape interval. Overrides metrics.scrapeInterval |
315
+
| metrics.serviceMonitors.selector | string |`""`| Which serviceMonitors objects to select |
| metrics.windows-exporter.extraMetricRelabelingRules | string |`""`| Rule blocks to be added to the prometheus.relabel component for Windows Exporter. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block)) |
315
318
| metrics.windows-exporter.extraRelabelingRules | string |`""`| Rule blocks to be added to the discovery.relabel component for Windows Exporter. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/discovery.relabel/#rule-block)) |
@@ -418,12 +421,31 @@ For an example values file and generated output, see [this example](../../exampl
418
421
419
422
### Using Prometheus Operator CRDs
420
423
421
-
The default config can deploy the CRDs for Prometheus Operator, and will add support for `PodMonitor` and
422
-
`ServiceMonitor`objects.
424
+
The default config can deploy the CRDs for Prometheus Operator, and will add support for `PodMonitor`,
425
+
`ServiceMonitor`and `Probe` objects.
423
426
424
427
Simply deploy a PodMonitor or a ServiceMonitor in the same namespace as the Grafana Agent and it will discover it and
425
428
take the appropriate action.
426
429
430
+
Use a selector to limit the discovered objects
431
+
432
+
Example:
433
+
434
+
In this example, the Agent will find `ServiceMonitor` objects labeld with
435
+
`example.com/environment=production`, scrape them for Prometheus metrics, and send those metrics to Grafana Cloud.
Copy file name to clipboardExpand all lines: charts/k8s-monitoring/values.yaml
+9
Original file line number
Diff line number
Diff line change
@@ -600,6 +600,9 @@ metrics:
600
600
# -- Rule blocks to be added to the prometheus.relabel component for PodMonitor objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block))
601
601
extraMetricRelabelingRules: ""
602
602
603
+
# -- Which podMonitor objects to select
604
+
selector: ""
605
+
603
606
probes:
604
607
# -- Include service discovery for Probe objects.
605
608
enabled: true
@@ -615,6 +618,9 @@ metrics:
615
618
# -- Rule blocks to be added to the prometheus.relabel component for Probe objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block))
616
619
extraMetricRelabelingRules: ""
617
620
621
+
# -- Which probe objects to select
622
+
selector: ""
623
+
618
624
serviceMonitors:
619
625
# -- Include service discovery for ServiceMonitor objects
620
626
enabled: true
@@ -630,6 +636,9 @@ metrics:
630
636
# -- Rule blocks to be added to the prometheus.relabel component for ServiceMonitor objects. ([docs](https://grafana.com/docs/agent/latest/flow/reference/components/prometheus.relabel/#rule-block))
631
637
extraMetricRelabelingRules: ""
632
638
639
+
# -- Which serviceMonitors objects to select
640
+
selector: ""
641
+
633
642
kubernetesMonitoring:
634
643
# -- Report telemetry about this Kubernetes Monitoring chart as a metric.
0 commit comments