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

Investigate implementing metrics using a single global array #272

Open
swlynch99 opened this issue Nov 21, 2019 · 1 comment
Open

Investigate implementing metrics using a single global array #272

swlynch99 opened this issue Nov 21, 2019 · 1 comment

Comments

@swlynch99
Copy link
Contributor

Currently, any pelikan server needs to create a large struct containing all the metrics individual systems need in order for the majority of the metrics functionality to work. It would be convenient if new metrics could be registered in a more distributed fashion so that main doesn't need to know about every metrics type.

On the other hand, main and other places - such as the admin server - still need to have a way to see all the metrics.

However, if all the relevant metrics are in rust then it should be possible to use the linkme crate to build a distributed array while still letting individual implementations access metrics as-if they were globals.

@alaymodi
Copy link

is this issue still open? I am not too familiar with rust but I think this would be interesting to look into.

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

No branches or pull requests

2 participants