Skip to main content

Integrating Databrain with SigNoz

This guide explains how to send OpenTelemetry traces, metrics, and logs from your self-hosted Databrain instance to SigNoz, an open-source observability platform.

Why SigNoz?

SigNoz is a great choice for self-hosted observability:
  • 100% Open Source: No vendor lock-in
  • OpenTelemetry Native: Built specifically for OTel
  • All-in-One: Traces, metrics, and logs in a single platform
  • Cost-Effective: Self-hosted means no per-event pricing
  • Easy to Deploy: Docker Compose or Kubernetes deployment

Prerequisites

  • Databrain self-hosted version with OpenTelemetry support
  • Docker and Docker Compose (for SigNoz installation)
  • 4GB+ RAM for SigNoz (8GB recommended for production)

Option 1: SigNoz Cloud (Easiest)

If you prefer a managed solution, use SigNoz Cloud:

1. Sign Up for SigNoz Cloud

  1. Go to https://signoz.io/teams/
  2. Create a free account
  3. Note your ingestion endpoint and ingestion key

2. Configure Databrain

3. Docker Compose Configuration

1. Install SigNoz

Using Docker Compose (Quick Start)

This starts:
  • SigNoz UI: http://localhost:3301
  • OTLP Receiver (gRPC): localhost:4317
  • OTLP Receiver (HTTP): localhost:4318
  • ClickHouse: For data storage
  • Query Service: For querying data

Using Docker Compose (Custom Network)

If Databrain is on the same Docker network:

2. Configure Databrain for Self-Hosted SigNoz

Same Docker Network

Separate Hosts

If SigNoz is on a different host:

3. Kubernetes Deployment

Deploy SigNoz on Kubernetes

Configure Databrain

What Gets Sent to SigNoz

All three are integrated in SigNoz’s unified interface.

Verification

1. Check SigNoz is Running

2. Restart Databrain

3. Generate Test Traffic

4. View in SigNoz UI

  1. Open SigNoz: http://localhost:3301 (or your configured URL)
  2. Go to Services → You should see databrain-api
  3. Click on service to see metrics:
    • Request rate (requests per second)
    • Error rate (%)
    • Latency (p50, p90, p95, p99)
    • Apdex score
  4. Go to Traces → Filter by serviceName=databrain-api
  5. Click on any trace to see the full waterfall view

5. Check Logs

  1. Go to Logs tab
  2. Filter: service_name = databrain-api
  3. Click on any log entry
  4. See Related Traces section for correlated traces

SigNoz Features

1. Service Dashboard

The service dashboard shows:
  • RED metrics: Rate, Errors, Duration
  • Apdex score: User satisfaction metric
  • Operations: Individual endpoint performance
  • Database calls: Query performance breakdown
  • External calls: Downstream service latency

2. Traces Explorer

Advanced trace filtering:
Available filters:
  • Service name
  • Operation name
  • HTTP status code
  • Duration
  • Error status
  • Custom tags (userId, metricId, etc.)

3. Service Map

Visualize service dependencies:
  1. Go to Service Map
  2. See databrain-api and its dependencies:
    • PostgreSQL
    • Redis
    • Hasura
    • Keycloak
    • S3
  3. Click on connections to see request rates and error rates

4. Logs Management

SigNoz provides powerful log querying: Query examples:
Log to trace correlation:
  • Click on any log → see Trace button
  • Jump directly to the trace that generated this log

5. Alerts

Create alerts in SigNoz:

High Error Rate Alert

  1. Go to AlertsNew Alert
  2. Alert Type: Metrics Alert
  3. Metric Query:
  1. Condition: > 5 (5% error rate)
  2. For: 5 minutes
  3. Add notification channel (Slack, email, webhook)

High Latency Alert

  1. Metric Query:
  1. Condition: > 2000 (2 seconds)
  2. For: 5 minutes

6. Dashboards

Create custom dashboards:
  1. Go to DashboardsNew Dashboard
  2. Add panels:
Request Rate Panel:
Error Rate Panel:
Latency Distribution Panel:
Database Query Latency:

Advanced Configuration

Sampling

Add sampling to the OTel collector config:

Resource Attributes

Add custom resource attributes:

Troubleshooting

Debug SigNoz Collector

Debug Databrain Connection

Check ClickHouse

Data Retention

Configure retention in ClickHouse:
Or configure in clickhouse-config.xml:

Performance Tuning

For High Traffic (>10K requests/minute)

  1. Increase ClickHouse resources:
  1. Batch processing:
  1. Use buffer:

Backup and Restore

Backup ClickHouse Data

Restore from Backup

Upgrading SigNoz

Community & Support

For Databrain configuration issues, contact your Databrain support team.