Skip to content

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:

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

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