Prometheus Integration

Forward Prometheus metrics to Qorrelate

Overview

Send Prometheus metrics to Qorrelate using remote write. Use Qorrelate as a long-term storage backend while using familiar PromQL queries.

Remote Write Endpoint

Endpointhttps://qorrelate.io/api/v1/write
AuthenticationBearer token in Authorization header

Prometheus Configuration

global:
  scrape_interval: 15s

remote_write:
  - url: "https://qorrelate.io/api/v1/write"
    authorization:
      credentials: "YOUR_API_KEY"
    headers:
      X-Organization-Id: "YOUR_ORG_ID"

scrape_configs:
  - job_name: 'my-app'
    static_configs:
      - targets: ['my-app:8080']

Using OpenTelemetry Collector

receivers:
  prometheus:
    config:
      scrape_configs:
        - job_name: 'my-app'
          scrape_interval: 15s
          static_configs:
            - targets: ['my-app:8080']

exporters:
  prometheusremotewrite:
    endpoint: "https://qorrelate.io/api/v1/write"
    headers:
      Authorization: "Bearer ${QORRELATE_API_KEY}"
      X-Organization-Id: "${QORRELATE_ORG_ID}"

service:
  pipelines:
    metrics:
      receivers: [prometheus]
      exporters: [prometheusremotewrite]

PromQL Queries in Qorrelate

# Request rate
rate(http_requests_total[5m])

# Error rate
sum(rate(http_requests_total{status=~"5.."}[5m])) / sum(rate(http_requests_total[5m]))

# 95th percentile latency
histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m]))

💡 Pro Tip

Use relabeling to add consistent labels like environment to all metrics.