Skip to content

Commit

Permalink
Add octopus server tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah-witt committed Dec 27, 2024
1 parent 69d8d13 commit caac3f6
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 81 deletions.
4 changes: 3 additions & 1 deletion octopus_deploy/datadog_checks/octopus_deploy/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ def __init__(self, name, init_config, instances):
self._environments_cache = {}
self._deployments_cache = TTLCache(maxsize=TTL_CACHE_MAXSIZE, ttl=TTL_CACHE_TTL)
self._releases_cache = TTLCache(maxsize=TTL_CACHE_MAXSIZE, ttl=TTL_CACHE_TTL)
self._base_tags = self.instance.get("tags", [])
endpoint = self.instance.get("octopus_endpoint")
octopus_server_tag = [f"octopus_server:{endpoint}"]
self._base_tags = self.instance.get("tags", []) + octopus_server_tag
self.collect_events = self.instance.get("collect_events", False)

def check(self, _):
Expand Down
Loading

0 comments on commit caac3f6

Please sign in to comment.