Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update Coturn Prometheus Dependency to jelmd/libprom#1585

Open
Neboer wants to merge 1 commit intocoturn:masterfrom
Neboer:libprom
Open

Update Coturn Prometheus Dependency to jelmd/libprom#1585
Neboer wants to merge 1 commit intocoturn:masterfrom
Neboer:libprom

Conversation

@Neboer
Copy link

@Neboer Neboer commented Oct 16, 2024

This PR addresses the following issues related to Coturn’s Prometheus dependency:

  1. Coturn currently relies on digitalocean/prometheus-client-c, a project that has not been maintained for a long time. Issue Prometheus library dependency  #1579 mentions this and suggests switching to jupp0r/prometheus-cpp. However, since prometheus-cpp is a C++ project, it is not an ideal fit for Coturn, which is written in C, making the integration more challenging.

  2. Not only is prometheus-client-c unmaintained, but it also can no longer be successfully built against the latest version of libmicrohttpd. This means some parts of Coturn's code are now outdated and no longer functional with newer dependencies.

  3. The jelmd/libprom project is a fork of prometheus-client-c that includes several updates and supports the latest libmicrohttpd. However, libprom has made some modifications to function names from the original prometheus-client-c. In this PR, I’ve updated Coturn's Prometheus-related code to reflect these changes and ensure compatibility with libprom.

  4. I have tested the changes locally, and the build was successful. The Prometheus functionality works as expected.

I kindly request the maintainers to review and consider merging this update.

@eakraly
Copy link
Collaborator

eakraly commented Oct 17, 2024

Hi @Neboer - thank you for the PR
Pls follow the discussion in #1343 - it takes more than changing the api calls

@alexg-axis
Copy link
Contributor

I have an alternative PR in #1591 that makes the current implementation work again with updated versions of libmicrohttpd. My real end-goal with that PR is to be able to support binding to a specific address rather than being open to all.

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