-
Notifications
You must be signed in to change notification settings - Fork 19
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
Relating several applications only stores dashboards and alerts from first relation #158
Comments
I think the issue is: the first application you relate to gagent will deploy gagent (which becomes leader. In the screenshot above, it was probably zookeeper. You did juju relate grafana-agent zookeeper first --> the grafana-agent unit that gets assigned to zookeeper (#15) becomes leader. |
a similar effort for other pieces of the data was done over https://github.com/canonical/grafana-agent-k8s-operator/pull/142/files |
Here's a summary of my findings re relation data accessibility. Deployment
Relation viewTechnically, relations are between charms, not between units (same as in k8s). graph LR
principal ---|" juju-info:0 "| agent
another ---|" juju-info:3 "| agent
Machine view
graph TD
subgraph machine/0
principal/0
agent/1
end
subgraph machine/1
principal/1
agent/0*
end
subgraph machine/2
another/0*
agent/2
end
Can a subordinate unit access another subordinate unit's data?Hook tools
|
Per previous comment, @PietroPasotti is right because a subord (leader or not) does not see rel data from all other units. Seems like we need to use a peer relation. |
Bug Description
Relating several applications to grafana-agent will partially fail. Only the dashboards and alerts from the first relation will be sent over to COS.
Logs and metrics seem fine, I can see them from both applications.
To Reproduce
Environment
grafana-agent: channel edge, revision 4
zookeeper: https://github.com/canonical/zookeeper-operator/tree/feature/grafana_agent_integration
kafka: https://github.com/deusebio/kafka-operator/tree/wip-logs-integration
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: