I have had a request to be able to monitor the total number of “unique” and concurrent users logging into a particular system. There is an inactivity timer of 15 minutes for these accounts. I am considering using the session table and using the userid (which I can pull out of the XML calls)as the session key.
The first time we see the login we add the session key for that user. Each subsequent request we check to see if there is a matching entry in the session table if not we add the entry. When we see a specific log out we then remove the entry from the session table.
I have a couple of questions.
I want to be able to visualize this in three ways.
1.Histogram showing the number of users logged in concurrently over time
2.Average number of users logged in during the time period
3.Maximum number of users logged in during the time period
I was initially thinking of setting the session expire time to be 15 minutes BUT if I want to see a histogram I am thinking I need to set this to a smaller number to get more granular recording of the metric? Am I correct in this thought?
As far as visualizing I can use a standard dashboard to choose how I want to display the metrics. Is there anything specific I need to do with the trigger to create the metrics for a device or would it be easier to create a network or application based metric?