nais / naisd

nais deployment daemon
https://nais.io
MIT License
27 stars 10 forks source link

Control Prometheus Scraping #12

Closed audunstrand closed 7 years ago

audunstrand commented 7 years ago

We need to expose some variables to control scraping from promehteus yaml should be like: metrics: prometheus: enabled: true # if false the pod will not be scraped for metrics by prometheus path: /_/metrics # Path to prometheus-metrics

this should control the relevant annotations:

using sensible default values

gtcno commented 7 years ago

Do a plain one to one mapping with the following default values?

prometheus: enabled: true path: /metrics port: 8080

And add annotations to the deployment resource.