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.
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.