Skip to content

Update README.md for kubernetes_cluster_autoscaler #20061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions kubernetes_cluster_autoscaler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ prometheus.io/scrape: true

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

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].
The only parameters required for configuring the `kubernetes_cluster_autoscaler` check are:

* CONTAINER_NAME
Name of the container of the cluster autoscaler controller.
* `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].

```yaml
apiVersion: v1
Expand All @@ -54,7 +59,7 @@ kind: Pod
metadata:
name: '<POD_NAME>'
annotations:
ad.datadoghq.com/controller.checks: |
ad.datadoghq.com/<CONTAINER_NAME>.checks: |
{
"kubernetes_cluster_autoscaler": {
"init_config": {},
Expand All @@ -68,7 +73,7 @@ metadata:
# (...)
spec:
containers:
- name: 'controller'
- name: '<CONTAINER_NAME>'
# (...)
```

Expand Down
Loading