diff --git a/services/grafana/dashboards/nixos-operations.json b/services/grafana/dashboards/nixos-operations.json index 6073c8b..feb35a5 100644 --- a/services/grafana/dashboards/nixos-operations.json +++ b/services/grafana/dashboards/nixos-operations.json @@ -208,7 +208,7 @@ "datasource": {"type": "loki", "uid": "loki"}, "targets": [ { - "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |= \"Done. The new configuration is\" | json | line_format \"{{.MESSAGE}}\" | drop MESSAGE", + "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |= \"Done. The new configuration is\" | json | line_format \"{{.MESSAGE}}\" | keep host", "refId": "A" } ], @@ -231,7 +231,7 @@ "datasource": {"type": "loki", "uid": "loki"}, "targets": [ { - "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |= \"building\" | json | line_format \"{{.MESSAGE}}\" | drop MESSAGE", + "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |= \"building\" | json | line_format \"{{.MESSAGE}}\" | keep host", "refId": "A" } ], @@ -254,7 +254,7 @@ "datasource": {"type": "loki", "uid": "loki"}, "targets": [ { - "expr": "{job=\"bootstrap\", host=~\"$host\"} | json | line_format \"{{.MESSAGE}}\" | drop MESSAGE", + "expr": "{job=\"bootstrap\", host=~\"$host\"}", "refId": "A" } ], @@ -277,7 +277,7 @@ "datasource": {"type": "loki", "uid": "loki"}, "targets": [ { - "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |~ \"(?i)error|failed\" | json | line_format \"{{.MESSAGE}}\" | drop MESSAGE", + "expr": "{systemd_unit=\"nixos-upgrade.service\", host=~\"$host\"} |~ \"(?i)error|failed\" | json | line_format \"{{.MESSAGE}}\" | keep host", "refId": "A" } ],