Documentation Index
Fetch the complete documentation index at: https://opensre.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
SigNoz Integration
Query logs, metrics, and traces from SigNoz via the Query Range API. OpenSRE usesPOST /api/v5/query_range for query_signoz_logs, query_signoz_metrics, and
query_signoz_traces. Configure SIGNOZ_URL and SIGNOZ_API_KEY (service account key).
Quick Start
If you already run SigNoz, skip to env setup below. If you want a local stack, use the official SigNoz Docker setup (or the thin wrappers ininfra/scripts/signoz/):
1. Create an API key
In SigNoz: Settings → Service Accounts → create a service account → Keys → Add Key. Copy the key (shown once).2. Configure environment variables
3. Verify connectivity
/api/v2/metrics, /api/v5/query_range).
4. Live smoke test (optional)
5. Use the tools
Whenalert_source is signoz, the agent auto-seeds three tools before the ReAct loop:
query_signoz_logs— Search logs by service, severity, and time window.query_signoz_metrics— Query CPU, memory, and request-rate signals.query_signoz_traces— Query error spans, latency percentiles, and dependencies.
Webhook Configuration
SigNoz emits Prometheus-style webhook payloads. To trigger OpenSRE investigations automatically:- In SigNoz, go to Settings → Notification Channels.
- Create a Webhook channel pointing at your OpenSRE instance:
- The agent will detect
alert_source: signozfrom the payload and auto-query logs, metrics, and traces.
CLI Setup
Supported Metrics (V1)
| Alias | Actual SigNoz Metric |
|---|---|
cpu_usage | system_cpu_usage |
memory_usage | system_memory_usage |
request_rate | signoz_calls_total |
query_signoz_traces.
API reference
- Endpoint:
POST {SIGNOZ_URL}/api/v5/query_range - Auth header:
SigNoz-Api-Key: <YOUR_API_KEY> - Validation probe:
GET {SIGNOZ_URL}/api/v2/metrics
Example Investigation
Troubleshooting
| Symptom | Fix |
|---|---|
SigNoz configuration is incomplete | Set both SIGNOZ_URL and SIGNOZ_API_KEY. |
HTTP 401 on verify | Regenerate the service account key; check URL (local Docker: port 8080). |
No logs returned | Confirm telemetry exists in SigNoz and filter fields match (service.name for logs). |
No metrics returned | Verify the metric name in SigNoz Metrics Explorer; empty results return a warning for unknown metrics. |
Tracer