Skip to content

Commit

Permalink
use as_dict() because label_matcher_dict excludes unit
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuelodelanada committed Mar 6, 2024
1 parent 10868a4 commit 776857a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/grafana_agent/v0/cos_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def metrics_jobs(self) -> List[Dict]:
static_config["labels"] = {
# Be sure to keep labels from static_config
**static_config.get("labels", {}),
**topology.label_matcher_dict,
**topology.as_dict(excluded_keys=["charm_name"]),
}

scrape_jobs.append(job)
Expand Down

0 comments on commit 776857a

Please sign in to comment.