Cannot enable collect_iptables_metrics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm trying to enable `collect_
It looks maybe to be with this bit of code:
| @hook("
| def update_status():
| changed = charms.
| "detect_changes", get_base_inputs(), hash_type="sha256"
| )
| if changed:
| clear_flag(
| clear_flag(
| clear_flag(
| ...
So when you run `juju config telegraf-u-r-c collect_
2023-05-12 05:58:08 DEBUG unit.telegraf-
I think the logic should really change to rather than `update-status` to:
| @reactive.
| def config_changed():
| clear_flag(
| clear_flag(
| clear_flag(
| ....
|
|
| @hook("
| def update_status():
| if is_flag_
| service = get_service()
| if not host.service_
| hookenv.
| else:
| hookenv.status_set(
| "active",
| "Monitoring {}{}".format(
It also reduces the time from making a `juju config` change to when it's live.
Changed in charm-telegraf: | |
status: | New → Invalid |