open-telemetry / open-telemetry/opentelemetry-cpp

Prometheus Exporter HTTP Server Support

Open
#138 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:exporter:prometheus do-not-stale priority:p2 release:after-ga
Dominant language
C++
Stars
1.4k
Forks
632
Avg merge
1d 13h
Merged PRs (30d)
75

Description

Is your feature request related to a problem?
Yes. Currently, Java and Python do not implement an HTTP server in their language’s Prometheus exporter while node.js and Go do implement a server. For the C++ implementation, we have a choice between implementing the HTTP server or not implementing it. Benefits of implementing the HTTP service include that it is user friendly and conforms to the Prometheus exporter structure (Java and Python split it up into two pieces). Cons of implementing the HTTP service include this implementation could be the extra work that comes with creating it, managing it, and closing it.

Describe the solution you'd like
Implementing the HTTP server would make use of the C++ Prometheus exporter easier for end users. It also would make it easier for members in the future to contribute when working on related features.

Describe alternatives you've considered
Alternatively, not implementing the HTTP server would still be a feasible option. Java and Python both don’t implement an HTTP server in their exporter, instead opting to split up the implementation into two separate pieces.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the existing C++ Prometheus exporter and comparing the server approaches described for the node.js, Go, Java, and Python implementations. Done means the project has a decided HTTP-server approach with its lifecycle and user-facing behavior defined and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, prometheus
Domain
observability-sre
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.