canonical / grafana-agent-k8s-operator

https://charmhub.io/grafana-agent-k8s
Apache License 2.0
8 stars 18 forks source link

Allow custom scrape jobs in COSAgentProvider #220

Closed neoaggelos closed 1 year ago

neoaggelos commented 1 year ago

Issue

Scrape jobs may require more fields, e.g. authorization or custom labels for specific targets

Solution

If the metrics endpoint passed to COSAgentProvider has a scrape_job field, then assume that this is a custom job, also added docs (happy to adjust with any recommendation)

Context

Needed for https://github.com/canonical/charm-microk8s/pull/88, also see to #219

Testing Instructions

Release Notes

Allow custom scrape jobs in COSAgentProvider