Expose stub_status for telegraf plugin
Bug #1916078 reported by
Haw Loeung
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Content Cache Charm |
Fix Released
|
High
|
Haw Loeung |
Bug Description
Hi,
We currently don't seem to have metrics for no. of Nginx's active worker connections. This is exposed with the stub_status module[1] (active connections - accepts and handled). The charm should configure a vhost listening on localhost exposing this. We could then use something like the telegraf plugin fragment below[2]:
| [[inputs.nginx]]
| urls = ["http://
[1]http://
[2]https:/
Related branches
~hloeung/content-cache-charm:metrics
- Stuart Bishop (community): Approve
- Content Cache Charmers: Pending requested
-
Diff: 178 lines (+38/-12)6 files modifiedconfig.yaml (+6/-1)
lib/nginx.py (+7/-2)
reactive/content_cache.py (+4/-3)
templates/nginx_metrics_cfg.tmpl (+6/-2)
tests/unit/test_content_cache.py (+6/-1)
tests/unit/test_nginx.py (+9/-3)
Changed in content-cache-charm: | |
status: | In Progress → Fix Committed |
Changed in content-cache-charm: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Referencing LP:1891262. This will let us switch the HAProxy layer to use this endpoint for health checks to ensure the caching layer is up.