Skip to content

Commit ef9c9bb

Browse files
IanMoroneyL3n41c
andauthored
Update README.md for kubernetes_cluster_autoscaler (#20061)
* Update README.md * Update <CONTAINER_NAME> * Update kubernetes_cluster_autoscaler/README.md Co-authored-by: Lénaïc Huard <L3n41c@users.noreply.github.com> --------- Co-authored-by: Lénaïc Huard <L3n41c@users.noreply.github.com>
1 parent f974b61 commit ef9c9bb

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

kubernetes_cluster_autoscaler/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ prometheus.io/scrape: true
4545

4646
**Note**: The listed metrics can only be collected if they are available. Some metrics are generated only when certain actions are performed.
4747

48-
The only parameter required for configuring the `kubernetes_cluster_autoscaler` check is `openmetrics_endpoint`. This parameter should be set to the location where the Prometheus-formatted metrics are exposed. The default port is `8085`. To configure a different port, use the `METRICS_PORT` [environment variable][10]. In containerized environments, `%%host%%` should be used for [host autodetection][3].
48+
The only parameters required for configuring the `kubernetes_cluster_autoscaler` check are:
49+
50+
* CONTAINER_NAME
51+
Name of the container of the cluster autoscaler controller.
52+
* `openmetrics_endpoint`
53+
This parameter should be set to the location where the Prometheus-formatted metrics are exposed. The default port is `8085`. To configure a different port, use the `METRICS_PORT` [environment variable][10]. In containerized environments, `%%host%%` should be used for [host autodetection][3].
4954

5055
```yaml
5156
apiVersion: v1
@@ -54,7 +59,7 @@ kind: Pod
5459
metadata:
5560
name: '<POD_NAME>'
5661
annotations:
57-
ad.datadoghq.com/controller.checks: |
62+
ad.datadoghq.com/<CONTAINER_NAME>.checks: |
5863
{
5964
"kubernetes_cluster_autoscaler": {
6065
"init_config": {},
@@ -68,7 +73,7 @@ metadata:
6873
# (...)
6974
spec:
7075
containers:
71-
- name: 'controller'
76+
- name: '<CONTAINER_NAME>'
7277
# (...)
7378
```
7479

0 commit comments

Comments
 (0)