Multiple prometheus-client relations results in only one having relation data
Bug #1939262 reported by
Xav Paice
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Fix Released
|
High
|
Unassigned |
Bug Description
If I relate Telegraf using the prometheus-client relation (http interface) to more than one application, the first gets 'hostname' and 'port' information in the relation data, but the second (and subsequent) applications do not get these fields filled in.
Potentially caused by the following lines:
@when_
@when_
def configure_
# stuff
set_
This would set the flag after the first relation is joined, and not re-run configure_
Related branches
~xavpaice/charm-telegraf:bug/1939262
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Paul Goins: Approve
- Celia Wang: Approve
- BootStack Reviewers: Pending requested
- James Troup: Pending requested
- Canonical IS Reviewers: Pending requested
-
Diff: 86 lines (+7/-15)4 files modifiedsrc/reactive/telegraf.py (+5/-4)
src/tests/functional/tests/bundles/bionic-monitoring.yaml (+0/-4)
src/tests/functional/tests/bundles/focal-compute.yaml (+0/-2)
src/tests/functional/tests/test_telegraf.py (+2/-5)
Changed in charm-telegraf: | |
status: | Triaged → Fix Released |
milestone: | none → 21.10 |
To post a comment you must log in.
Assigned high priority because this is preventing deployment of the new K8s based Prometheus alongside the existing one, therefore delaying development.