Skip to content

Tomcat metrics definitions updated in JMX Scraper #1754

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

Conversation

robsunday
Copy link
Contributor

Relates to #1748
This is the first part of Tomcat metrics definition to make them aligned with semconv. If these changes are accepted then tha same changes will be done in JMX Metrics Gatherer component.

OTel reference documentation I used:

@@ -14,7 +14,7 @@ rules:
mapping:
activeSessions:
metric: tomcat.sessions
type: gauge
type: updowncounter
Copy link
Contributor Author

@robsunday robsunday Feb 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be a better fit here. UpDownCounter is also used here in tomcat.yaml from opentelemetry-java-instrumentation project

type: counter
unit: "{request}"
desc: The total requests
maxTime:
metric: max_time
metric: request.duration.max
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request.duration is is taken from HTTP semconv

type: counter
unit: By
desc: The number of bytes transmitted and received
metric: &metric network.io
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yaml anchors and references used to improve maintainability

@robsunday robsunday closed this Feb 20, 2025
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.

3 participants