Prometheus
PrometheusTool is a tool to query metrics from prometheus tsdb via natural language. The tool itself is out of box supported by opsmate and added to all the prebuilt contexts.
You can also explicitly add the tool to your session via
opsmate [run|solve|chat|serve] --models PrometheusTool ...
Example usage:
Here is a simple example of how to use the tool (you probably need to zoom in to see the text):
Note that for LLM to come up with the correct promql query, you need to provide enough information about:
- the metrics name
- the labels
In Opsmate you can store the metrics metadata in the vector db and ask LLM to retrieve the metrics semantically on the fly.
See ingest-prometheus-metrics-metadata for more details.