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

Native support for sidecar container process #692

Closed
jaystarshot opened this issue Jan 22, 2024 · 1 comment
Closed

Native support for sidecar container process #692

jaystarshot opened this issue Jan 22, 2024 · 1 comment

Comments

@jaystarshot
Copy link

jaystarshot commented Jan 22, 2024

Background: I am considering using this library for presto/velox. prestodb/presto#21753 is my intial PR.

I am wondering if there is any work going on or any POCs to provide a complete sidecar which can attach to a main container running a cpp program. Because a sidecar can help isolate resources, also provide more metrics during container crashes etc.

eg: In the java world https://github.com/prometheus/jmx_exporter Jmx exporter can be attached to a sidecar jvm

@gjasny
Copy link
Collaborator

gjasny commented Mar 2, 2024

Hello,

the prometheus-cpp library cannot work in a sidecar. In your example JMX is used as an intermediate representation which is then converted into prometheus compatible metrics. This conversion could happen in a sidecar container.

For C++ there is no such "native" representation. This library is meant to define and populate the metrics. It is used directly within the source code of an C++ application where the developer decides what conditions to observe.

Thanks,
Gregor

@gjasny gjasny closed this as completed Mar 2, 2024
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

No branches or pull requests

2 participants