Weavz
Prometheus

Prometheus

Prometheus metrics, PromQL queries, targets, rules, status, and firing alerts

7 tools
1 trigger
Use withChatGPTClaudeClaude CodeCursorCodexMCP clientsSetup guide

Tools

Name
instant_query

Run a PromQL instant query through the stable /api/v1/query endpoint.

range_query

Run a PromQL range query through the stable /api/v1/query_range endpoint.

list_alerts

List active Prometheus alerts from /api/v1/alerts.

list_rules

List alerting and recording rules, optionally filtered by rule type and file.

list_targets

List scrape targets and health state from /api/v1/targets.

get_status

Read Prometheus status endpoints such as runtime info, build info, config, flags, and TSDB stats.

list_series

Find metric series matching one or more Prometheus selectors.

Triggers

Name
firing_alert

Poll Prometheus for newly firing alerts.

Quick Start

TypeScript
import { WeavzClient } from '@weavz-io/sdk'

const weavz = new WeavzClient({ apiKey: 'wvz_...' })

const result = await weavz.actions.execute('prometheus', 'instant_query', {
  workspaceId: '550e8400-e29b-41d4-a716-446655440000',
  integrationAlias: 'prometheus',
  input: { /* ... */ },
})

Related Integrations

Works well with

Frequently Asked Questions

How do I connect Prometheus to my app?

Use Weavz Hosted Connect for Custom authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.

What tools does Prometheus support?

Prometheus supports 7 tools including Instant Query, Range Query, List Alerts, List Rules, List Targets, and more.

Can I use Prometheus with AI agents?

Yes. Add Prometheus to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.

How do I connect Prometheus to ChatGPT or Claude?

Open the Weavz connector setup, sign in, choose a workspace, and add Prometheus as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped Prometheus tools exposed by that workspace.

Does Prometheus work with Claude Code, Cursor, Codex, and local agents?

Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved Prometheus work, and execute Code Mode workflows from a terminal.

What can I ask an AI agent to do with Prometheus?

Prometheus exposes 7 tools, including Instant Query, Range Query, List Alerts, List Rules, List Targets, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.

Can Prometheus be used in stateful agent workflows?

Yes. Agents can combine Prometheus tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.

What authentication does Prometheus use?

Prometheus uses Custom. Weavz stores credentials securely and uses them for authorized action execution.

How much does the Prometheus integration cost?

The Prometheus integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.

What triggers does Prometheus support?

Prometheus supports 1 triggers including Firing Alert.

Connect Prometheus in minutes

Get 20,000 free action executions every month. No credit card required.