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

Active streaming users #14

Open
Kybeer opened this issue Jul 4, 2023 · 4 comments
Open

Active streaming users #14

Kybeer opened this issue Jul 4, 2023 · 4 comments

Comments

@Kybeer
Copy link

Kybeer commented Jul 4, 2023

Hi,
Is there any way to get the current active users from the available metrics? I was thinking with 'plays_total' but I'm unsure for to transform the result in an actual Grafana panel.

@Animosity022
Copy link

That's the same thing I was looking for as I was trying to replace Varken and stumbled here.

I've started playing around with it and it does produce the stats in plays_total, but I need to figure out how to remove the dupes for the query range.

I'll see what I can figure out as it looks like the data is there, but it does depend on the scrape interval so there is some lag, but seems promising:

image

@Kybeer
Copy link
Author

Kybeer commented Oct 17, 2023

I've started playing around with it and it does produce the stats in plays_total, but I need to figure out how to remove the dupes for the query range.

Nice, could you share the PromQL query?

@Animosity022
Copy link

I think I'm closer as I almost like this:

Instant seems to grab the 'latest:

image

and I used a transform to rename/hide some stuff:

image

image

Not sure if that's the best but seems to do what I want (I think).

@Kybeer
Copy link
Author

Kybeer commented Oct 21, 2023

Nice, it's perfect!

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