Integrations
Prometheus
Query metrics from Prometheus
Query metrics and check alerts from your Prometheus server.
What Stalar can do
| Tool | Description |
|---|---|
| Query instant | Execute PromQL queries for current values |
| Query range | Execute PromQL queries over time ranges |
| List metrics | Discover available metrics |
| Get alerts | Check firing and pending alerts |
| Get targets | View scrape targets and their health |
Configuration
Required
| Field | Description |
|---|---|
url | Prometheus server URL |
Optional
| Field | Description |
|---|---|
username | Basic auth username |
password | Basic auth password |
bearerToken | OAuth 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?"