Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry: initial metrics and export via otlpmetrichttp #1664

Merged
merged 7 commits into from
May 6, 2024

Conversation

heavycrystal
Copy link
Contributor

@heavycrystal heavycrystal commented May 3, 2024

flow-worker now exports slotlag and open_connections metrics (both are gauges) for each Postgres peer. Metrics enabled by the environment variable ENABLE_OTEL_METRICS and export endpoint set by the environment variable OTEL_EXPORTER_OTLP_METRICS_ENDPOINT on flow-worker.

Metrics update at the frequency of the RecordSlotSizesWorkflow, which is currently 5 minutes.

flow/shared/otel_metrics.go Outdated Show resolved Hide resolved
@heavycrystal heavycrystal force-pushed the otel-metrics-foundation branch from 526d28a to 6b34cfd Compare May 3, 2024 16:02
@heavycrystal heavycrystal changed the title OpenTelemetry: initial metrics and export via otelmetricshttp OpenTelemetry: initial metrics and export via otlpmetrichttp May 3, 2024
flow/connectors/postgres/postgres.go Show resolved Hide resolved
flow/cmd/worker.go Outdated Show resolved Hide resolved
flow/cmd/worker.go Outdated Show resolved Hide resolved
flow/activities/flowable.go Outdated Show resolved Hide resolved
flow/cmd/worker.go Outdated Show resolved Hide resolved
@heavycrystal heavycrystal force-pushed the otel-metrics-foundation branch from 41d9b3b to 1ae80b2 Compare May 5, 2024 17:17
flow/otel_metrics/otel_manager.go Outdated Show resolved Hide resolved
@heavycrystal heavycrystal force-pushed the otel-metrics-foundation branch from 28c5999 to 1d1a8d0 Compare May 6, 2024 12:40
@heavycrystal heavycrystal merged commit ea58d02 into main May 6, 2024
6 checks passed
@heavycrystal heavycrystal deleted the otel-metrics-foundation branch May 6, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants