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)
Issue
Scrape jobs may require more fields, e.g.
authorization
or custom labels for specific targetsSolution
If the metrics endpoint passed to
COSAgentProvider
has ascrape_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