Expose prometheus metrics
Bug #1824568 reported by
Tom Haddon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Content Cache Charm |
Fix Released
|
Medium
|
Nick Moffitt |
Bug Description
Per [1] HAProxy supports exposing a prometheus metrics endpoint. We should look into this and see if it's feasible to do this for the content-cache charm.
[1] https:/
Related branches
~nick-moffitt/content-cache-charm:monitoring
- Tom Haddon: Approve
-
Diff: 215 lines (+84/-4)8 files modifiedlib/haproxy.py (+15/-1)
metadata.yaml (+3/-0)
reactive/content_cache.py (+26/-1)
templates/haproxy_cfg.tmpl (+12/-0)
tests/unit/files/content_cache_rendered_haproxy_test_output.txt (+12/-0)
tests/unit/files/haproxy_config_rendered_test_output.txt (+12/-0)
tests/unit/test_content_cache.py (+2/-1)
tests/unit/test_haproxy.py (+2/-1)
Changed in content-cache-charm: | |
assignee: | nobody → Nick Moffitt (nick-moffitt) |
To post a comment you must log in.
It seems like this is only supported in the 2.x series, which is due for release this summer, so this won't be suitable yet.
However, we should see if https:/ /github. com/prometheus/ haproxy_ exporter is a good option, or whether there's a telegraf plugin for HAProxy that supports similar metrics.