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

Expose metrics to Prometheus #82

Closed
astefanutti opened this issue Sep 17, 2018 · 6 comments
Closed

Expose metrics to Prometheus #82

astefanutti opened this issue Sep 17, 2018 · 6 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@astefanutti
Copy link
Member

astefanutti commented Sep 17, 2018

A common set of Camel-K related metrics could be exposed to Prometheus for monitoring purpose.

Besides, It would be cool if it'd be possible to define some custom Prometheus metrics, directly in the custom resource.

Problably the JMX Prometheus Java agent would have to be enabled (configurably) and fragments would look like:

rules:
  - pattern: 'fis.metrics<name=os.(.*)><>(.+):'
    name: os_$1
    help: some help

  - pattern: 'org.apache.camel<context=camel, type=routes, name=\"(.*)\"><>LastProcessingTime'
    name: camel_last_processing_time
    help: Last Processing Time [milliseconds]
    type: GAUGE
    labels:
      route: $1
@lburgazzoli lburgazzoli added the help wanted Extra attention is needed label Jan 15, 2019
@lburgazzoli
Copy link
Contributor

@astefanutti do you want to help ?

@astefanutti
Copy link
Member Author

@lburgazzoli for sure. I need to get into the codeline. If you have some direction or guidelines already, I'd be happy to follow your lead!

@lburgazzoli
Copy link
Contributor

I think you can try following the readme and the docs so we can also see what's missing there, then if you need help ping us on gitter

@lburgazzoli
Copy link
Contributor

I think it would be to leverage traits to configure Prometheus/Jolokia

@astefanutti
Copy link
Member Author

Agreed. That's what I had in mind a priori.

@astefanutti
Copy link
Member Author

The Prometheus trait has been created and should be available in next release (a priori 0.3.0).

phantomjinx pushed a commit to phantomjinx/camel-k that referenced this issue Feb 24, 2022
Fix rhi version to 2022.Q1 (metering label)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants