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

Current Online Player Names Metric #11

Closed
BlockyBlockling opened this issue Jan 3, 2024 · 1 comment · Fixed by #16
Closed

Current Online Player Names Metric #11

BlockyBlockling opened this issue Jan 3, 2024 · 1 comment · Fixed by #16

Comments

@BlockyBlockling
Copy link

Hey There,
I love your Project. My Problem is that I require another Metric to display the names/ids of the Players that are currently online.
I want to be able to cover the amount of different players online over a Time period.

For that, I require a metric like:
a2s_player_names

That shows the names of the currently online players, either in one value for each player or JSON string.

Would like to help with the implementation if this Project is still maintained.

@armsnyder
Copy link
Owner

Hi @BlockyBlockling. I'm glad you're loving the project. 😄

I've added a new player_info metric for this purpose. The value is 1 and there is a player_name label. This has been released in v0.4.0.

You should be able to get the desired result of seeing each online player with the query sum by(player_name) (a2s_player_info). 😉

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 a pull request may close this issue.

2 participants