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.
7 functions 7 read 0 write API token auth
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.
Machine-Readable Metadata
- integration_slug
prometheus- route_slug
prometheus- package
prometheus- auth_strategy
api_tokenAPI token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Prometheus CLIHeadless setup and direct function calls. Prometheus MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Prometheus MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Prometheus.
Claude Code Prometheus MCP setup for Claude Code. Cursor Prometheus MCP setup for Cursor. Codex Prometheus MCP setup for Codex. OpenAI Agents Prometheus MCP setup for OpenAI Agents SDK. Claude Agent SDK Prometheus MCP setup for Claude Agent SDK. Vercel AI SDK Prometheus MCP setup for Vercel AI SDK. LangChain Prometheus MCP setup for LangChain. LangGraph Prometheus MCP setup for LangGraph. CrewAI Prometheus MCP setup for CrewAI. MCP clients Prometheus MCP setup for Generic MCP Clients.
Prometheus CLI Matrix
Use these pages for direct Prometheus CLI workflows in scripts, CI, cron, and agent wrappers.
CI Prometheus CLI for CI. Cron Jobs Prometheus CLI for cron jobs. Shell Scripts Prometheus CLI for shell scripts. Headless Automation Prometheus CLI for headless automation. Coding Agents Prometheus CLI for coding agents.
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. |