Comments (3)
@jatan28 after looking into this a bit I think the use case you're describing may better match resource attributes than labels for individual points. The metric gatherer uses the autoconfigure sdk extension that provides a property for setting these.
Allowing for arbitrary labels for each datapoint would require wrapping the OTel instrument methods to inject them, and this seems undesirable. The label function feature and labels parameter for recording values should already provide the ability to do this where desired in custom script functionality.
Would it be acceptable for me to add a properties
config option in the JMX Receiver that will allow propagating these as system properties?
jmx/service1:
jar_path: /home/opentelemetry-java-contrib-jmx-metrics-0.0.1-SNAPSHOT.jar
endpoint: localhost:9050
target_system: jvm
properties:
- otel.resource.attributes=my.resource.attr=attrvalue,my.other.resource.attr=othervalue
collection_interval: 10s
The Collector's configuration library doesn't support case sensitive map keys, so I think this would need to be an array of strings to reduce the potential for unexpected behavior.
from opentelemetry-java-contrib.
@rmfitzpatrick Yes, this solution would solve the problem in hand. With this and a custom groovy script, we should be able to differentiate the jmx metrics
from opentelemetry-java-contrib.
@jatan28 appears the Collector contrib project has just released a new version with the added functionality in the JMX receiver: https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.28.0
Thanks for your patience, and if you run into any issues using it please don't hesitate to open an issue in that project.
from opentelemetry-java-contrib.
Related Issues (20)
- Why Prometheus exporter not support exponential histogram HOT 3
- extended-tracer module was not published to mvn HOT 2
- Delete prometheus-client-bridge HOT 5
- maven-extension - plexus-component-annotations upgrade has deprecations HOT 11
- License Scan/Remediation Questions HOT 1
- JMXReceiver start up failed with 1.33.0 HOT 5
- Add resource provider for Azure HOT 1
- Opentelemetry-runtime-attach does not export to Jaeger HOT 3
- No context propagation using aws-xray-propagator with AWS Lambdas and provided or java runtimes HOT 1
- Support snappy compressor in CompressorUtil HOT 3
- Maven extensions keeps logging `WARNING: Failed to export metrics` when disabled HOT 12
- JMX: Tomcat only collecting metrics from one listener at a time HOT 3
- [JMX Metric Gatherer] Provide a Docker image
- JMX Gatherer does not seem to respect logging config HOT 6
- Tomcat Version 10.1.19 Spring Boot 3.2.4 Tomcat Bean Name Is Tomcat Not Catalina
- Request for new component: Baggage Span Processor
- Baggage span processor - key predicate HOT 1
- Support encryption on disk
- weblogic support? HOT 2
- proposal to use annotation processor for incubating semconv HOT 4
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-java-contrib.