canonical / prometheus-k8s-operator

This charmed operator automates the operational procedures of running Prometheus, an open-source metrics backend.
https://charmhub.io/prometheus-k8s
Apache License 2.0
21 stars 34 forks source link

feat: remote_write_receiver option #519

Closed Guillaumebeuzeboc closed 11 months ago

Guillaumebeuzeboc commented 1 year ago

Issue

the juju cos setup cannot receive data from the grafana-agent if the grafana-agent is not running inside juju.

Solution

Add a charm option to enable the remote remote_write_receiver feature even when no relation is established.

Context

IoT devices cannot run juju due to resources constraint, so they must run grafana-agent snap standalone. This way the COS stack can be used on servers and snaps can be used on devices to export data.

Notes

This is a draft PR as a suggestion as I am exploring the usage of COS for robots. The PR is based on my recent learning of Juju/Charm and COS.

dstathis commented 12 months ago

This seems like a good idea. What do you think @simskij?

simskij commented 12 months ago

@Guillaumebeuzeboc would you mind squashing your commits into a signed commit to allow for merging? Thanks.

Guillaumebeuzeboc commented 11 months ago

@Guillaumebeuzeboc would you mind squashing your commits into a signed commit to allow for merging? Thanks.

Done, let me know if it's all good. Thanks!