conversion to sketch with too many bins #20619
Labels
domain: metrics
Anything related to Vector's metrics events
source: datadog_agent
Anything `datadog_agent` source related
type: bug
A code related bug.
A note for the community
Problem
Vector appears to have an issue converting some histograms / sketches.
Here is the first few bytes of a single metric, the full file we captured was 4MB for a single line.
Configuration
Version
vector 0.38.0 (x86_64-unknown-linux-gnu ea0ec6f 2024-05-07 14:34:39.794027186)
Debug Output
Example Data
I've included a reproducer here in the following gist. It includes an app which serves metrics as captured from one of our environments, a simplified opentelemetry collector config equivalent to what we run, and a basic vector config to receive the data.
To run it, in 3 separate terminal sessions:
go run .
otelcol-contrib --config=file:otelcol.yaml --feature-gates=-exporter.datadogexporter.metricexportnativeclient
vector --config vector.yaml
After the 2nd / 3rd scrape, vector should start logging a sketch with a lot of 0 bins
https://gist.github.com/seankhliao/954665498b0ad3ca37335d6fbae41758
Additional Context
We run the opentelemetry collector to scrape services with prometheus metrics declared as ServiceMonitor / PodMonitor objects.
The collector then sends the metrics to vector for additional transforms and final submission into datadog.
We identified an issue in our environments where vector stops sending any metrics at all, filling up its buffer. This was isolated to metrics from this service.
References
No response
The text was updated successfully, but these errors were encountered: