Enabling addition of external targets to OSM Prometheus
Proposers
- Gerardo García (Telefónica)
Description
There might be situations when OSM administrators might want to add external targets to OSM Prometheus to reuse the current OSM Prometheus as TSDB for other systems.
Currently the only Prometheus jobs existing in OSM Prometheus are the ones from MON and the exporters, which are updated periodically by OSM Prometheus sidecar based on the information in MongoDB.
There is no easy way to add new Prometheus jobs or targets. The only way to add a new external target is by editing directly the information in MongoDB, which is read by OSM prometheus sidecar to update the scrape_configs
list in prometheus.yml
.
This feature will revisit the way OSM prometheus sidecar is updating the list of scraping targets and will enable alternative administrator-friendly mechanisms rather than updating MongoDB directly, for instance, by adding those additional external targets to OSM Prometheus in the OSM Prometheus ConfigMap.
Demo or definition of done
A demo will be showcased, where an additional target will be added and the metrics from that target will appear in Prometheus.