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 data exporting #235

Merged
merged 7 commits into from
Nov 9, 2023
Merged

Prometheus data exporting #235

merged 7 commits into from
Nov 9, 2023

Conversation

emneo-dev
Copy link
Contributor

No description provided.

@emneo-dev emneo-dev added the feature When we dev a new feature label Oct 14, 2023
@emneo-dev emneo-dev self-assigned this Oct 14, 2023
Copy link

cloudflare-workers-and-pages bot commented Nov 4, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: fd219be
Status: ✅  Deploy successful!
Preview URL: https://27cd9861.cubic-server.pages.dev
Branch Preview URL: https://analytics-exporting.cubic-server.pages.dev

View logs

Alexandre Flion added 3 commits November 4, 2023 19:14
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;
Alexandre Flion added 3 commits November 9, 2023 14:23
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.
@emneo-dev emneo-dev marked this pull request as ready for review November 9, 2023 14:39
@emneo-dev
Copy link
Contributor Author

Some ideas of data to export:

  • Number of chunks loaded
  • Number of entities loaded
  • MSPT
  • TPS

STMiki
STMiki previously approved these changes Nov 9, 2023
@@ -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");
Copy link
Member

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 ? :')

Copy link
Member

@Trompettesib Trompettesib Nov 9, 2023

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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

@emneo-dev
Copy link
Contributor Author

image
It looks like this now

Copy link
Member

@Trompettesib Trompettesib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@emneo-dev emneo-dev merged commit 0753845 into master Nov 9, 2023
4 checks passed
@emneo-dev emneo-dev deleted the analytics-exporting branch November 9, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature When we dev a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants