Stalar
Integrations

Prometheus

Query metrics from Prometheus

Query metrics and check alerts from your Prometheus server.

What Stalar can do

ToolDescription
Query instantExecute PromQL queries for current values
Query rangeExecute PromQL queries over time ranges
List metricsDiscover available metrics
Get alertsCheck firing and pending alerts
Get targetsView scrape targets and their health

Configuration

Required

FieldDescription
urlPrometheus server URL

Optional

FieldDescription
usernameBasic auth username
passwordBasic auth password
bearerTokenOAuth bearer token

Config file example

integrations:
  - name: "prometheus-prod"
    type: "prometheus"
    environment: "production"
    config:
      url: "http://prometheus:9090"

  # With basic auth
  - name: "prometheus-secure"
    type: "prometheus"
    environment: "production"
    config:
      url: "https://prometheus.example.com"
      username: "admin"
      password: "${PROMETHEUS_PASSWORD}"

  # With bearer token
  - name: "prometheus-oauth"
    type: "prometheus"
    environment: "production"
    config:
      url: "https://prometheus.example.com"
      bearerToken: "${PROMETHEUS_TOKEN}"

Example queries

  • "What's the CPU usage for the API pods?"
  • "Show me memory trends for the last hour"
  • "Are there any firing alerts?"
  • "What's the p99 latency for the frontend?"