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

Include WHAT in the exported #73

Open
krisla opened this issue Sep 26, 2022 · 2 comments
Open

Include WHAT in the exported #73

krisla opened this issue Sep 26, 2022 · 2 comments

Comments

@krisla
Copy link

krisla commented Sep 26, 2022

Hello,

Is it possible to include WHAT from w command in metric what_user_sessions_currently_active
Currently, I'm only seeing the user.

It would be very nice if we can parse results from column WHAT, so we can trace remote SSH sessions from given bastion host:

USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
user     pts/3    0.0.0.0 14:53    2:19   0.03s  0.00s ssh user@server.example.com

Kind regards,

@stfsy
Copy link
Owner

stfsy commented Sep 26, 2022

Hi @krisla sounds like a good idea. Currently the exported metric is the sum of sessions of each user. We'd probably have to add another metric then if we want to know more about each users sessions. What do you think?

@krisla
Copy link
Author

krisla commented Sep 26, 2022

Sure, as long as it's possible since I'm not proficient in GO language.
I'm currently trying to implement a solution with Bash/PushGateway and I'm stuck on creating the metric as no value is needed just the current records matching remote sessions.

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