Skip to content

Commit

Permalink
[DPE-5108] All dashboards in sharded cluster on one screen (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu1nness committed Aug 26, 2024
1 parent 267f24d commit 74fd8c4
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 280 deletions.
4 changes: 3 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ def _mongo_scrape_config(self) -> List[Dict]:
"targets": [
f"{self.unit_host(self.unit)}:{Config.Monitoring.MONGODB_EXPORTER_PORT}"
],
"labels": {"cluster": self.app.name, "replication_set": self.app.name},
"labels": {
"cluster": self.get_config_server_name() or self.app.name,
},
}
],
}
Expand Down
Loading

0 comments on commit 74fd8c4

Please sign in to comment.