-
Notifications
You must be signed in to change notification settings - Fork 6
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 data exporting #235
Conversation
Deploying with Cloudflare Pages
|
It is really basic and it will throw really bad errors sometimes but for now this is already worth committing
If only I had known about this earlier ;w;
ad46fc8
to
6831719
Compare
There was a slight mismatch between the forward declaration and the actual type, which clang said could cause link errors on Windows.
It is global and dimensions based. There's also version info in the export now.
Some ideas of data to export:
|
cubic-server/Server.cpp
Outdated
@@ -165,32 +156,20 @@ void Server::launch(const configuration::ConfigHandler &config) | |||
|
|||
_writeThread = std::thread(&Server::_writeLoop, this); | |||
|
|||
#if PROMETHEUS_SUPPORT == 1 | |||
if (CONFIG["monitoring-prometheus-enable"].as<bool>()) { | |||
_prometheusExporter = std::make_unique<PrometheusExporter>("0.0.0.0:4242"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really the default port for prometheus ? :')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be 8080 by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bruh I forgot to make it a config xd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lemme fix that real quick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
No description provided.