Prometheus
Prometheus metrics, PromQL queries, targets, rules, status, and firing alerts
Tools
| Name | Description |
|---|---|
instant_queryRun a PromQL instant query through the stable /api/v1/query endpoint. | Run a PromQL instant query through the stable /api/v1/query endpoint. |
range_queryRun a PromQL range query through the stable /api/v1/query_range endpoint. | Run a PromQL range query through the stable /api/v1/query_range endpoint. |
list_alertsList active Prometheus alerts from /api/v1/alerts. | List active Prometheus alerts from /api/v1/alerts. |
list_rulesList alerting and recording rules, optionally filtered by rule type and file. | List alerting and recording rules, optionally filtered by rule type and file. |
list_targetsList scrape targets and health state from /api/v1/targets. | List scrape targets and health state from /api/v1/targets. |
get_statusRead Prometheus status endpoints such as runtime info, build info, config, flags, and TSDB stats. | Read Prometheus status endpoints such as runtime info, build info, config, flags, and TSDB stats. |
list_seriesFind metric series matching one or more Prometheus selectors. | Find metric series matching one or more Prometheus selectors. |
Triggers
| Name | Description |
|---|---|
firing_alertPoll Prometheus for newly firing alerts. | Poll Prometheus for newly firing alerts. |
Quick Start
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.
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.