-
Notifications
You must be signed in to change notification settings - Fork 18
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
Remote write 2 #17
Remote write 2 #17
Conversation
ce753ad
to
d816a5d
Compare
718f872
to
82d6084
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that both prom libs have PRs in review.
d18d237
to
465ac83
Compare
For debugging purposes, we should annotate the Grafana Agent config with YAML comments how the IPs of the prometheus instances we remote-write to maps to their Juju identity:
|
In local testing, the Grafana Agent built from this PR is failing to push downstream to Prometheus the alert rules from the Cassandra charm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re itest failing: I see similar errors too elsewhere.
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alert rule propagation from a prometheus_scrape
relation over a prometheus_remote_write
one does not seem to work in the following scenario:
juju add-model cos
juju deploy cos-lite --channel=edge --trust
juju offer prometheus:receive-remote-write prw
juju add-model agent
juju deploy ./*.charm grafana-agent --resource agent-image='grafana/agent:v0.20.1'
juju deploy spring-music --channel=edge
juju relate spring-music:metrics-endpoint grafana-agent
juju consume cos.prw prometheus
juju relate grafana-agent prometheus
Then open the Prometheus ui, go to the alert rules, despair: metrics from Spring Music come in, alert rules for Spring Music do not, while the alert rules for Grafana Agent itself do.
@mmanciop I tried this and it's working just fine for me. Could you possibly do it again and copy paste the exact commands? |
I think I found the PBCAK. I was building the agent from the wrong commit. |
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
073a3af
to
9c5dc2d
Compare
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
Libraries are not up to date with their remote counterparts. If this was stdout
stderr
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are solid, love seeing the mocking gone, rewrite rule is nice.
Feel free to just resolve any of my comments if you don't expect another push. They're not critical in any way.
Clean up the implementation of Prometheus Remote Write in Grafana Agent.