The Prometheus Scrape Target operator supports metrics aggregation from applications outside any Juju model. This facilitates using the Canonical Observability Stack even for use cases where the metrics endpoints do not originate from other charmed operators.
# Deploy prometheus, scrape target charms and relate them
$ juju deploy prometheus-k8s
$ juju deploy prometheus-scrape-target-k8s
$ juju relate prometheus-k8s prometheus-scrape-target-k8s
# Setup http://192.168.5.2:7000 as an external target
juju config prometheus-scrape-target targets="192.168.5.2:7000"- Prometheus The scrape target
charm only supports relations with a metrics consumer charm using the
metrics-endpointrelation and theprometheus_scrapeinterface.