grafana: fix llama-cpp annotation query format for Grafana 12
All checks were successful
Build and Deploy / deploy (push) Successful in 2m42s

Grafana 12 expects Prometheus annotation queries wrapped in a 'target'
object with datasource, expr, refId, and range fields. The previous
format had expr/step as top-level fields which Grafana silently ignored.
This commit is contained in:
2026-04-09 22:19:21 -04:00
parent 7ee55eca6b
commit dad3867144

View File

@@ -53,8 +53,13 @@ let
datasource = promDs;
enable = true;
iconColor = "purple";
expr = "llamacpp:requests_processing > 0";
step = "10s";
target = {
datasource = promDs;
expr = "llamacpp:requests_processing > 0";
instant = false;
range = true;
refId = "A";
};
titleFormat = "LLM inference";
}
];