canonical / grafana-cloud-integrator

https://charmhub.io/grafana-cloud-integrator
Apache License 2.0
1 stars 1 forks source link

generalize charm to work with any prom and loki url #6

Closed lucabello closed 1 year ago

lucabello commented 1 year ago

Issue

The charm needs to be able to work with any prometheus-url and loki-url, be it authenticated or not.

Solution

Remove the checks that make credentials compulsory.

Context

Being able to write metrics and logs to multiple backends through grafana-agent.

Testing Instructions

juju deploy ./grafana-agent.charm
juju deploy prometheus
juju deploy ./grafana-cloud-integrator.charm

juju config grafana-cloud-integrator prometheus-url=<prometheus-url>
juju relate grafana-agent:grafana-cloud-config grafana-cloud-integrator

Metrics will appear in Prometheus.