Comments (4)
Pinging code owners:
- exporter/prometheus: @Aneurysm9
See Adding Labels via Comments if you do not have permissions to add labels yourself.
from opentelemetry-collector-contrib.
Hi, I tried it with the following config, and the native histograms are exposed just like they are exposed by my app:
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9001']
exporters:
prometheus:
endpoint: "localhost:9010"
const_labels:
test_name: v1
service:
pipelines:
metrics:
receivers: [prometheus]
exporters: [prometheus]
telemetry:
logs:
level: debug
Native histogram metrics exposed by my app:
golang_native_histogram_bucket{address="0.0.0.0",port="9001",le="+Inf"} 1523
golang_native_histogram_sum{address="0.0.0.0",port="9001"} 773369.1551833635
golang_native_histogram_count{address="0.0.0.0",port="9001"} 1523
Native histogram metrics exposed by the prometheus exporter:
golang_native_histogram_bucket{address="0.0.0.0",instance="localhost:9001",job="otel-collector",port="9001",test_name="v1",le="+Inf"} 1284
golang_native_histogram_sum{address="0.0.0.0",instance="localhost:9001",job="otel-collector",port="9001",test_name="v1"} 656156.1718255163
golang_native_histogram_count{address="0.0.0.0",instance="localhost:9001",job="otel-collector",port="9001",test_name="v1"} 1284
Could you share your full setup?
from opentelemetry-collector-contrib.
Are you sure these are native histograms? They look like regular ones to me. The required options are seemingly missing from your receiver config: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/prometheusreceiver/README.md#prometheus-native-histograms, so my guess is that you're falling back to the legacy ones here.
EDIT: I added them to the original post, so it's easier to reproduce.
from opentelemetry-collector-contrib.
Ah you are right, I was missing the scape_protocols, I can reproduce it now, thanks :)
from opentelemetry-collector-contrib.
Related Issues (20)
- Question about env variables in Windows Server HOT 4
- [pkg/ottl] Support community ID network flow HOT 1
- `jsonlogencoding` only handles the first log record's body of the pdata logs payload HOT 1
- Minimal viable statsdreceiver not working HOT 1
- Content Matching in httpcheck receiver HOT 2
- Metric Filter using include/exclude syntax not filtering properly using metric labels/attributes HOT 1
- [Processor/k8sattributes] Pod/Node attributes are not attaching with metrics generated by Kubeletstats receiver HOT 1
- [pkg/ottl] Add murmur3 HOT 1
- [processor/tailsampling] invert_match precedence HOT 1
- Weekly Report: 2024-07-09 - 2024-07-16
- Otel agent service start stop script not provided for RHEL 6 version
- RemoteTap Extension: a new start HOT 2
- Distinguish Tail Sampling Policies in Metrics by Prefixing Processor Name HOT 3
- [pkg/ottl] Add an ottl function that allows for the trimming of whitespaces or other specified symbols from an attribute HOT 1
- Exclude Dimension Setting in Span Metrics Connector Does Not Apply to Non-Default Dimensions HOT 1
- Exclude Dimension Setting in Span Metrics Connector Does Not Apply to Non-Default Dimensions HOT 1
- Killed pod metrics still presenting on the Prometheus Exporter HOT 1
- New component: Log deduplication processor
- Replace pattern Issues with Transform processor HOT 1
- Issue in calls_total metric of spanmetric connector HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-collector-contrib.