https://github.com/codefresh-io/cluster-autoscaler-exporter
Prometheus exporter for cluster-autoscaler-status
https://github.com/codefresh-io/cluster-autoscaler-exporter
Last synced: 8 months ago
JSON representation
Prometheus exporter for cluster-autoscaler-status
- Host: GitHub
- URL: https://github.com/codefresh-io/cluster-autoscaler-exporter
- Owner: codefresh-io
- License: apache-2.0
- Created: 2020-02-18T13:09:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-24T08:19:21.000Z (over 3 years ago)
- Last Synced: 2025-04-25T14:59:41.589Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 7
- Watchers: 7
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Prometheus exporter for cluster-autoscaler-status
k8s provides a `cluster-autoscaler-status` configmap. sadly there was no way to easily export this data to Prometheus.
now there is.
we export three metrics per pool:
* number of `ready` nodes
* `cloudProviderTarget` number
* `maxSize` number
## Example output
```
# HELP cluster_autoscaler_pool ready
# TYPE cluster_autoscaler_pool gauge
cluster_autoscaler_pool{name="csi"} 0.0
cluster_autoscaler_pool{name="engines"} 1.0
# HELP cluster_autoscaler_pool_target cloudProviderTarget
# TYPE cluster_autoscaler_pool_target gauge
cluster_autoscaler_pool_target{name="csi"} 0.0
cluster_autoscaler_pool_target{name="engines"} 1.0
# HELP cluster_autoscaler_pool_max maxSize
# TYPE cluster_autoscaler_pool_max gauge
cluster_autoscaler_pool_max{name="csi"} 10.0
cluster_autoscaler_pool_max{name="engines"} 50.0
```
## Usage
it can be run in-cluster or out of cluster. metrics exporter runs on port `9100`
there's a ready to use [Docker image](https://hub.docker.com/r/codefresh/cluster-autoscaler-exporter)
## Limitations
currently the querying interval is hardcoded at `10s`