diff --git a/keep/providers/grafana_provider/grafana_provider.py b/keep/providers/grafana_provider/grafana_provider.py index ad7ffa370..e8ab77287 100644 --- a/keep/providers/grafana_provider/grafana_provider.py +++ b/keep/providers/grafana_provider/grafana_provider.py @@ -214,6 +214,16 @@ def _format_alert( environment = labels.get( "deployment_environment", labels.get("environment", "unknown") ) + + extra = {} + + annotations = alert.get("annotations", {}) + if annotations: + extra["annotations"] = annotations + values = alert.get("values", {}) + if values: + extra["values"] = values + alert_dto = AlertDto( id=alert.get("fingerprint"), fingerprint=fingerprint, @@ -227,6 +237,7 @@ def _format_alert( description=alert.get("annotations", {}).get("summary", ""), source=["grafana"], labels=labels, + **extra, # add annotations and values ) # enrich extra payload with labels for label in labels: diff --git a/pyproject.toml b/pyproject.toml index 8c766f55b..f8d595770 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "keep" -version = "0.33.8" +version = "0.33.9" description = "Alerting. for developers, by developers." authors = ["Keep Alerting LTD"] packages = [{include = "keep"}]