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

Prometheus - Documentations #1735

Closed
jdalia001 opened this issue Mar 5, 2021 · 5 comments
Closed

Prometheus - Documentations #1735

jdalia001 opened this issue Mar 5, 2021 · 5 comments
Labels

Comments

@jdalia001
Copy link

Hello,

I would like to send metrics from my prebid server to prometheus but i don't find any documentation on it.
It just see in the config.go som parameters on this, but what is the configuration to set in prometheus to retrieve datas ?

Thanks

@SyntaxNode
Copy link
Contributor

SyntaxNode commented Mar 5, 2021

Prometheus is a pull based metrics system. The configuration you see in Prebid Server will turn on collection of Prometheus metrics with the app and expose an endpoint on a port of your choosing. You will then configure your Prometheus server to connect to your Prebid Server instances and read the metrics.

I don't know the details on how to configure a Prometheus server. I recommend starting with their FAQ.

The relevant settings in Prebid Server (in environment variable form) are:

// The port of the endpoint you want Prebid Server to host. There is no path. Connecting directly to this port will return a metric result set for Prometheus to consume. I do not recommend exposing this to the internet.
PBS_METRICS_PROMETHEUS_PORT: "9100"

// The main prefix Prometheus will add to the metrics to ensure uniqueness within your cluster.
PBS_METRICS_PROMETHEUS_NAMESPACE: "prebid"

// The secondary prefix Prometheus will add to the metrics to ensure uniqueness within your cluster.
PBS_METRICS_PROMETHEUS_SUBSYSTEM: "server"

// The amount of time Prebid Server will allow for the Prometheus endpoint to respond. You only need to worry about this if you metrics enabled which have high cardinality.
PBS_METRICS_PROMETHEUS_TIMEOUT_MS: "30000"

@jdalia001
Copy link
Author

Thank you for your reply, yes i know how prometheus is working.
Do you know someone who integrate prometheus with pbs ? (Because we need to have a prometheus module to import datas correctly in it)

@jdalia001 jdalia001 reopened this Mar 11, 2021
@SyntaxNode
Copy link
Contributor

Yes. We're using Prometheus at Xandr with PBS. We have a separate team which manages the Prometheus system, so I don't have details to share in that aspect.

Are you able to configure the Prometheus module within PBS using the config I shared earlier?

@bretg
Copy link
Contributor

bretg commented May 26, 2021

With the docs PR open, can we close this @Mouchii ?

@SyntaxNode
Copy link
Contributor

Closing due to inactivity and creation of docs. You are welcomed to re-open this ticket or submit a new issue if you would like to request further action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants