Integrations

Prometheus

Connect Castrel to Prometheus for metrics monitoring and alerting.

Overview

  • Connector Name: prometheus
  • Supported API Version: Prometheus HTTP API v1
  • Supported Server Versions: Prometheus v3.0.0 and later
  • Official Documentation: Prometheus Docs

Configuration

To use the Prometheus tools, you need to configure a Connector with the following fields:

FieldRequiredDescription
instance_nameYesInstance name to identify this connector instance.
base_urlYesThe base URL of your Prometheus server (e.g., http://prometheus:9090).
auth_typeYesSet to none or basic.
usernameNoBasic Auth username.
passwordNoBasic Auth password.
verify_sslNoSSL certificate verification (default: true).

Available Tools

The connector provides a comprehensive set of tools for metric analysis and metadata exploration.

  • Metric Querying: Execute PromQL queries (instant and range).
  • Metadata Discovery: List metrics, label names, label values, and series.
  • Alerting: Retrieve active alerts and alerting rules.
  • Target Status: Check the health and status of scraped targets.