Configure Prometheus
The autoscaler publishes and exposes metrics that can be consumed by Prometheus. Please note that access to the metrics endpoint is restricted and requires an authorization token.
First, create a random token:
$ openssl rand -base64 12
zFuQGzQetpeaSWix
Next, register the token with the autoscaler:
DRONE_PROMETHEUS_TOKEN=zFuQGzQetpeaSWix
Finally, configure the prometheus scraper:
|
|