analytics
Prometheus MCP, CLI, and Lua Integration for AI Agents
Prometheus integration docs for AI agents: MCP gateway setup, Prometheus CLI commands, Lua API reference, credentials, and function schemas.Prometheus for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Agent Surfaces
Machine-Readable Metadata
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
prometheus.prometheus_list_alerts | Read read | 2 | List Prometheus alerts. Optionally filter by alert state or label selectors. Returns alert names, states, labels, and annotations. |
prometheus.prometheus_get_alert | Read read | 1 | Get a Prometheus alert by name. Returns the full alert definition including labels, annotations, and state. |
prometheus.prometheus_list_rules | Read read | 1 | List Prometheus alerting and recording rules. Optionally filter by type. Returns rule groups with their rules and states. |
prometheus.prometheus_get_rule | Read read | 1 | Get a Prometheus rule group by name. Returns the full rule group definition including all rules within the group. |
prometheus.prometheus_list_targets | Read read | 1 | List Prometheus scrape targets. Optionally filter by state (active or dropped). Returns target health status, labels, and scrape info. |
prometheus.prometheus_get_target | Read read | 1 | Get a Prometheus target by its instance address. Returns target health, last scrape info, and discovery labels. |
prometheus.prometheus_get_current_user | Read read | 0 | Get the current authenticated Prometheus user info. Useful for verifying authentication and retrieving user details. |