Skip to content
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

Adding cos agent relation #127

Merged
merged 11 commits into from
Mar 5, 2024
Merged

Adding cos agent relation #127

merged 11 commits into from
Mar 5, 2024

Conversation

IbraAoad
Copy link
Contributor

@IbraAoad IbraAoad commented Feb 28, 2024

This pull request adds the cos-agent relation, enabling the connection of cos-proxy to a charm requiring the relation, such as grafana-agent. With this relation, cos-proxy can transmit data such as metric rules, Grafana dashboards, and scrape jobs from the charms it's proxying to grafana-agent. This eliminates the need to directly connect cos-proxy to Prometheus, Grafana, etc.

@IbraAoad IbraAoad marked this pull request as ready for review March 1, 2024 01:24
Copy link
Contributor

@mmkay mmkay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Added a few comments but I'd also like someone else from the team to look at it as I don't have the full COS proxy context.

Most of my comments are suggesting a bit of defensive approach around parsing / saving dashboards. If you feel like that's not needed feel free to push back.

requirements.txt Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
lib/charms/prometheus_k8s/v0/prometheus_scrape.py Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
src/charm.py Show resolved Hide resolved
@IbraAoad IbraAoad merged commit 662559b into main Mar 5, 2024
13 checks passed
@IbraAoad IbraAoad deleted the cos_agent branch March 5, 2024 13:03
@IbraAoad IbraAoad linked an issue Mar 5, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the cos-agent relation
3 participants