Skip to content

Commit

Permalink
Add holmes generate alertmanager-tests command (#56)
Browse files Browse the repository at this point in the history
and add flags to `holmes investigate alertmanager` to use that data
instead of connecting to a live alertmanager
  • Loading branch information
aantn authored Jun 23, 2024
1 parent 05d6ead commit a96123a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holmes/plugins/sources/prometheus/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def fetch_issues(self) -> List[Issue]:
id=alert.unique_id,
name=alert.name,
source_type="prometheus",
source_instance_id=self.url,
source_instance_id=self.filepath if self.filepath else self.url,
url=alert.generatorURL,
presentation_key_metadata=f"*Severity*: {alert.labels['severity']}\n*Start Time*: {alert.startsAt.strftime('%Y-%m-%d %H:%M:%S UTC')}\n*Duration*: {humanize.naturaldelta(alert.duration)}",
presentation_all_metadata=self.__format_issue_metadata(alert),
Expand Down

0 comments on commit a96123a

Please sign in to comment.