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/charts/feature-annotation-autodiscovery/README.md
+37
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,7 @@ Be sure perform actual integration testing in a live environment in the main [k8
57
57
|-----|------|---------|-------------|
58
58
| annotations.instance | string |`"k8s.grafana.com/instance"`| Annotation for overriding the instance label |
59
59
| annotations.job | string |`"k8s.grafana.com/job"`| Annotation for overriding the job label |
60
+
| annotations.metricsParam | string |`"k8s.grafana.com/metrics.param"`| Annotation for setting __param_<key> parameters when scraping. Example: `k8s.grafana.com/metrics.param_key: "value"`. |
60
61
| annotations.metricsPath | string |`"k8s.grafana.com/metrics.path"`| Annotation for setting or overriding the metrics path. If not set, it defaults to /metrics |
61
62
| annotations.metricsPortName | string |`"k8s.grafana.com/metrics.portName"`| Annotation for setting the metrics port by name. |
62
63
| annotations.metricsPortNumber | string |`"k8s.grafana.com/metrics.portNumber"`| Annotation for setting the metrics port by number. |
@@ -79,6 +80,7 @@ Be sure perform actual integration testing in a live environment in the main [k8
79
80
|-----|------|---------|-------------|
80
81
| excludeNamespaces | list |`[]`| The list of namespaces to exclude from autodiscovery. |
81
82
| extraDiscoveryRules | string |`""`| Rule blocks to be added to the discovery.relabel component for discovered pods and services. These relabeling rules are applied pre-scrape against the targets from service discovery. Before the scrape, any remaining target labels that start with `__` (i.e. `__meta_kubernetes*`) are dropped. ([docs](https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.relabel/#rule-block)) |
83
+
| labelSelectors | object |`{}`| Filter the list of discovered pods and services by labels. Example: `labelSelectors: { 'app': 'myapp' }` will only discover pods and services with the label `app=myapp`. Example: `labelSelectors: { 'app': ['myapp', 'myotherapp'] }` will only discover pods and services with the label `app=myapp` or `app=myotherapp`. |
82
84
| namespaces | list |`[]`| The list of namespaces to include in autodiscovery. If empty, all namespaces are included. |
83
85
84
86
### Metric Processing Settings
@@ -104,3 +106,38 @@ Be sure perform actual integration testing in a live environment in the main [k8
104
106
| global.maxCacheSize | int |`100000`| Sets the max_cache_size for every prometheus.relabel component. ([docs](https://grafana.com/docs/alloy/latest/reference/components/prometheus/prometheus.relabel/#arguments)) This should be at least 2x-5x your largest scrape target or samples appended rate. |
105
107
| global.scrapeInterval | string |`"60s"`| How frequently to scrape metrics. |
106
108
| global.scrapeTimeout | string |`"10s"`| The scrape timeout for discovered pods and services. |
| pods.labelSelectors | object |`{}`| Filter the list of discovered Pods by labels. Example: `labelSelectors: { 'app': 'myapp' }` will only discover Pods with the label `app=myapp`. Example: `labelSelectors: { 'app': ['myapp', 'myotherapp'] }` will only discover Pods with the label `app=myapp` or `app=myotherapp`. |
116
+
117
+
### Pod Metric Processing Settings
118
+
119
+
| Key | Type | Default | Description |
120
+
|-----|------|---------|-------------|
121
+
| pods.labels | object |`{}`| Add labels to metrics from discovered Pods. Runs during discovery, so __meta_ labels are available. See the [documentation](https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.kubernetes/#pod-role) for the full list of meta labels. |
122
+
| pods.staticLabels | object |`{}`| Metric labels to set with static data for discovered Pods. |
123
+
| pods.staticLabelsFrom | object |`{}`| Static labels to set on metrics from discovered Pods, not quoted so it can reference config components. |
| services.labelSelectors | object |`{}`| Filter the list of discovered Services by labels. Example: `labelSelectors: { 'app': 'myapp' }` will only discover Services with the label `app=myapp`. Example: `labelSelectors: { 'app': ['myapp', 'myotherapp'] }` will only discover Services with the label `app=myapp` or `app=myotherapp`. |
136
+
137
+
### Service Metric Processing Settings
138
+
139
+
| Key | Type | Default | Description |
140
+
|-----|------|---------|-------------|
141
+
| services.labels | object |`{}`| Add labels to metrics from discovered Services. Run during discovery, so __meta_ labels are available. See the [documentation](https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.kubernetes/#service-role) for the full list of meta labels. |
142
+
| services.staticLabels | object |`{}`| Metric labels to set with static data for discovered Services. |
143
+
| services.staticLabelsFrom | object |`{}`| Static labels to set on metrics from discovered Services, not quoted so it can reference config components. |
0 commit comments