---
title: "How We Export Metrics to Third-Party Services"
description: "Neon streams Postgres and host metrics to Datadog, New Relic and any OTLP-compatible platform by running a per-project OpenTelemetry Collector colocated with compute pods in each region."
url: "https://swe.quest/articles/how-we-export-metrics-to-third-party-services-3378a3c9ceb725eb"
canonical: "https://neon.com/blog/metrics-open-telemetry"
source: "Neon"
published: "2025-06-24"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["observability","kubernetes","postgres"]
---

# How We Export Metrics to Third-Party Services

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-06-24, 4 min read, Case study. Original: [https://neon.com/blog/metrics-open-telemetry](https://neon.com/blog/metrics-open-telemetry)

## Summary

Neon streams Postgres and host metrics to Datadog, New Relic and any OTLP-compatible platform by running a per-project OpenTelemetry Collector colocated with compute pods in each region. Collectors are provisioned through the OTel Kubernetes Operator via a custom resource. Each one scrapes sql\_exporter and Vector endpoints using Kubernetes pod service discovery filtered by project label, then applies memory limiting and batching before exporting. Per-project placement was chosen over per-user or per-org collectors to avoid cross-region scraping latency and to keep failure domains isolated, and the setup reuses the same scraping model as the internal vmagent/VictoriaMetrics monitoring pipeline.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- Prometheus scraping
- Kubernetes operators and CRDs ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- OpenTelemetry basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

OpenTelemetry Collector, OTLP, Neon, Datadog, VictoriaMetrics, sql\_exporter, Vector, vmagent

## Related posts

- [How We Export Postgres Logs to Third-Party Services](https://swe.quest/articles/how-we-export-postgres-logs-to-third-party-services-bed5372bbc749f83.md): Neon · 2025-06-24 · Medium · 4 min read · Observability, PostgreSQL, Kubernetes
  Neon exports customer Postgres logs by having Postgres write to rsyslogd alongside stderr, with rsyslogd pushing RFC 5424 syslog over TCP to an OpenTelemetry Collector that enriches and forwards them to Datadog or any OTLP-compatible platform.
- [Own Your Observability: Supabase Metrics API](https://swe.quest/articles/own-your-observability-supabase-metrics-api-f7b0d82ff7186f0c.md): Supabase · 2025-12-16 · Medium · 4 min read · Observability, PostgreSQL
  Supabase's Metrics API exposes roughly 200 Postgres health and performance metrics per project in Prometheus exposition format at a privileged endpoint authenticated with service-role Basic Auth, refreshed every minute.
- [OpenTelemetry Basics on Heroku Fir](https://swe.quest/articles/opentelemetry-basics-on-heroku-fir-3ce90275eecb8290.md): Heroku Engineering · 2025-05-27 · Medium · 7 min read · Observability, Cloud platforms
  Heroku's Fir platform has OpenTelemetry built in and acts as the telemetry collector, so apps can forward platform logs, metrics and traces to any OTLP-compatible backend without running their own collector.
- [Migrate Datadog telemetry with the OpenTelemetry Collector](https://swe.quest/articles/migrate-datadog-telemetry-with-the-opentelemetry-collector-3b921608bdac909d.md): ClickHouse · 2026-07-21 · Medium · 9 min read · Observability, Refactoring & migrations
  The OpenTelemetry Collector's Datadog receiver lets existing Datadog agents and SDKs send logs, traces and metrics to a Collector.
- [Ensuring reliable OpenTelemetry ingestion at scale](https://swe.quest/articles/ensuring-reliable-opentelemetry-ingestion-at-scale-ef5f46f7e6587da0.md): ClickHouse · 2026-08-24 · Medium · 12 min read · Observability, Resilience, Data pipelines, Cloud platforms, Kubernetes
  ClickHouse's LogHouse OpenTelemetry pipeline, ingesting 50 million events per second, absorbs database backpressure by failing over to S3 rather than buffering in memory, local WALs or Kafka.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
