KosmoKrator

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_token API token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Prometheus MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Prometheus.

Prometheus CLI Matrix

Use these pages for direct Prometheus CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
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.