grafana: fix llama-cpp annotation query format for Grafana 12
All checks were successful
Build and Deploy / deploy (push) Successful in 2m42s
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:
@@ -53,8 +53,13 @@ let
|
|||||||
datasource = promDs;
|
datasource = promDs;
|
||||||
enable = true;
|
enable = true;
|
||||||
iconColor = "purple";
|
iconColor = "purple";
|
||||||
|
target = {
|
||||||
|
datasource = promDs;
|
||||||
expr = "llamacpp:requests_processing > 0";
|
expr = "llamacpp:requests_processing > 0";
|
||||||
step = "10s";
|
instant = false;
|
||||||
|
range = true;
|
||||||
|
refId = "A";
|
||||||
|
};
|
||||||
titleFormat = "LLM inference";
|
titleFormat = "LLM inference";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user