Skip to main content

Overview

Query logs, metrics, and traces from SigNoz via the Query Range API. OpenSRE uses POST /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).

Prerequisites

  • A running SigNoz instance (Cloud, self-hosted, or local Docker)
  • A SigNoz service account API key (see Credentials)

Setup

Option 1: Interactive CLI

Setup prompts for SigNoz URL and API key only.

Option 2: Environment variables

Local Docker quick start

If you already run SigNoz, skip to credentials and env setup above.
SigNoz has deprecated its docker-compose.yaml / install.sh install path entirely in favor of a new installer called Foundry — a checked-out signoz repo no longer has a signoz/docker/docker-compose.yaml file at all. Confirmed live against the current SigNoz/signoz repo: deploy/install.sh now just prints a deprecation notice and exits, pointing to signoz.io/docs/install/docker.
Piping a remote script into bash runs whatever that URL currently serves, with your shell’s privileges. If that’s a concern for your environment, download and verify a pinned release instead (SigNoz/foundry on GitHub publishes a checksums file with every release):
Swap darwin_arm64 for your platform (linux_amd64, linux_arm64, etc.) and use sha256sum in place of shasum -a 256 on Linux.
foundryctl cast validates the environment, generates the Docker Compose files under pours/, and starts every container in one step. Serves the UI and API on http://localhost:8080 (not 3301).

Credentials

In SigNoz: Settings → Service Accounts → create a service account → KeysAdd Key. Copy the key (shown once).

Tools

Supported metrics (V1)

You can also pass any raw metric name known to SigNoz. For latency percentiles (p95/p99), prefer query_signoz_traces.

Verify

Expected verify output mentions the SigNoz Query API (/api/v2/metrics, /api/v5/query_range).

Troubleshooting

Security

  • Use a dedicated SigNoz service-account key with the minimum permissions needed for query access.
  • Store SIGNOZ_API_KEY in .env or your secret manager — not in source control.

Extras

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

Local verification recipe

Verified live against a real local SigNoz stack (via Foundry, above). Send some real telemetry first — an empty stack proves connectivity, not that the tools return data:
opensre integrations verify checks a saved store record before env vars, and chat sessions only fall through to env vars when the store has no records at all — any existing record, for any service, blocks env-var resolution entirely. Point OPENSRE_INTEGRATIONS_STORE_PATH at a path inside a fresh empty directory before verifying, so a real saved record can’t shadow the SIGNOZ_* vars above, and your real config is never read or written:
Verify, then ask the agent:
Ask: Why is payment-service-verify erroring? Check SigNoz logs, traces, and metrics. The agent calls query_signoz_logs, query_signoz_traces, and query_signoz_metrics against this exact local stack and finds the seeded failure: a single ERROR log from payment-service-verify reporting connection refused to billing-api, with zero billing-api telemetry across the window — the service is not running. Teardown: