-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated jobs for logs when using log_slots
#56
Comments
Define multiple source in same slots is also not working.
This somehow block the scenario that that user want to collect multiple service log in the same snap. |
What is the snap you are using? |
Hi @Abuelodelanada , I don't have the bundle to reproduce the situation, since we developing and building the charm locally. However, I created a simple snap and simple charm to reproduce it: https://github.com/chanchiwai-ray/grafana-agent-k8s-operator/tree/issue/234/grafana_agent_234. Following the "README.md" you should be able to reproduce the duplicated log configs. |
The Postgresql VM charm also seems to be affected by this. We have multiple sources in the logging slot:
We only get a single job in
And the contents of It should be reproducible by deploying postgresql from channel |
|
The MySQL and MySQLRouter VM charms are also affected by this bug. SImilar to postgres above:
In
The code is in PR form, but will soon be merged to release for |
## Issue We need to introduce COS support for MySQLRouter ## Solution 1. Introduce COS support for MySQLRouter 2. Introduce the scaffolding for secrets to be able to store the monitoring password in the juju secrets backend ## Prerequisites 1. We need to merge the [snap PR](canonical/charmed-mysql-snap#41) that adds the COS machinery to the snap. After, we need to update the snap revision in the `snap.py` file 2. We need to import the secrets lib after the [following secrets PR in data-platform-libs](canonical/data-platform-libs#117) is merged ## TODO 1. ~~Determine why the `All Connections Information` and `Route byte to/from server` sections on the dashboard are not populated when more than 1 routers are deployed~~ (see #93 (comment)) 2. ~~Test router log collection (via Loki) when [the following issue is resolved](canonical/grafana-agent-operator#56 (see #93 (comment)) ## Demo ![image](https://github.com/canonical/mysql-router-operator/assets/99665202/e2173939-c2e8-4de2-a007-bb0dbb2269d4)
Bug Description
When I am trying to use the
log_slots
for a snap that provides two slots, for example,and in the charm, I used the slots:
The
logs
section of/etc/grafana-agent.yaml
contains duplicated jobs:To Reproduce
See bug description
Environment
N/A
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: