Skip to content
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

Updated Camel rules adding route.started rooute.added and thread pool… #12763

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

luigidemasi
Copy link
Contributor

…s' pool.core_size

@luigidemasi luigidemasi requested a review from a team as a code owner November 21, 2024 09:23
@trask
Copy link
Member

trask commented Nov 21, 2024

StartedRoutes:
metric: route.started
type: updowncounter
unit: "{routes}"
Copy link
Contributor

Choose a reason for hiding this comment

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

The semantic conventions for metric units recommend using singular form, so {route} rather than {routes}.

@@ -246,6 +260,11 @@ rules:
type: updowncounter
unit: "{threads}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be {thread}, according to the semantic conventions.

- bean: org.apache.camel:context=*,type=context,name=*
prefix: camel.context.
metricAttribute:
context: param(context)
camelVersion: beanattr(CamelVersion)
packageScanClassResolver: beanattr(PackageScanClassResolver)
Copy link
Contributor

Choose a reason for hiding this comment

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

The semantic conventions for metric attributes suggest using underscores to separate individual words, so these apparently should rather be camel_version and package_scan_class_resolver. But, given that you merely copy the MBean attributes here, I'm not sure what is more user-friendly.

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