canonical / grafana-agent-operator

https://charmhub.io/grafana-agent
Apache License 2.0
4 stars 10 forks source link

iterate over fstab entries instead of relation data #66

Closed lucabello closed 7 months ago

lucabello commented 7 months ago

Issue

Closes #56.

Solution

Instead of iterating over log slots in relation data, we iterate over fstab entries; this way, the behavior for 1. multiple logs slots being defined and 2. multiple paths in the same log slot, should be correct.

Testing Instructions

Deploy grafana-agent and relate it to the PostgreSQL charm or a charm with multiple slots.


This has been manually tested with the PostgreSQL charm and it produces all the scrape jobs correctly.