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

[JUJU-1688] Prometheus integration for Juju #20

Closed
wants to merge 11 commits into from
Closed

[JUJU-1688] Prometheus integration for Juju #20

wants to merge 11 commits into from

Conversation

barrettj12
Copy link
Contributor

@barrettj12 barrettj12 commented Mar 29, 2023

Companion to juju/juju#15319.

This adds Prometheus integration to the controller charm using MetricsEndpointProvider in the prometheus-k8s library.

The controller charm needs to:

TODO

  • Check HA works
  • Handle multiple Prometheus relations correctly
  • Add new GitHub integration tests

- add metrics-endpoint relation
- configure MetricsEndpointProvider

TODO: add user on relation-joined, remove on relation-departed
- log introspect command
- set scrape config to [] on relation_departed
Store user credentials for Prometheus in stored state, so we can
generate the correct scrape config on hook invocations
@barrettj12 barrettj12 changed the base branch from master to 3.3 May 9, 2023 05:32
- don't log full introspection command - don't want to log passwords
@jnsgruk
Copy link
Member

jnsgruk commented Sep 5, 2023

Just stumbled across this again, glad to see it :) Probably worth making sure we're using the latest version of the prometheus_scrape lib, which i think means you can drop the juju_topology lib from memory :)

@barrettj12
Copy link
Contributor Author

Thanks @jnsgruk, all done :)

All units in a Prometheus app will share the same credentials.
@barrettj12
Copy link
Contributor Author

Closing in favour of #28

@barrettj12 barrettj12 closed this Sep 26, 2023
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.

2 participants