Getting the max value of the day from the datapoint in table widget for capacity planning
Hi, I am trying the display max value of the day (last 24 hours) from the datapoints in a table widget in the dashboard, but its showing current datapoint value. Is there any method to achieve this? Like to understand any other widget display max value of the day in dashboard.
Jnana
Posted 6 years ago·Last reply 6 years ago
6 comments
Mike Moniz
·6 years agoWhile not in a table but if it helps you can use the Gauge widget to show the current value and also show a Peak value for a particular period, including 24 hours.
https://www.logicmonitor.com/support/dashboards-and-widgets/widgets/which-widget-should-i-use/gauge-widget/#id:peak-time-range-selection
Cole McDonald
·6 years agoSo... I'm on windows, your response came in as I was getting all of that code in there :)/emoticons/smile@2x.png 2x" title=":)" width="20"> It'll be functionally similar for Linux. Not sure if it will work, but you may be able to install the Powershell core on your Linux collector to see if that will work there. (Free from Microsoft: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-6 )
(I don't know Groovy Script yet :)/emoticons/smile@2x.png 2x" title=":)" width="20"> )
Cole McDonald
·6 years agoTo find the ID Numbers, you can build out the $resourcePath for the last few bits until you come across the pieces you need. I develop in PowerShell ISE to allow me to explore the date more easily once I've populated it.
Jnana
OP6 years agoThanks Cole, I am trying to collect these max values of datapoints from linux host, could you please share groovy script or any alternative method if you have any to achieve this.
Cole McDonald
·6 years agoYou can grab historical data for an dataSource instance using the REST API. Once you've got the time range you want to evaluate, finding the Max should be relatively simple. Let me fish up a thread with how to grab those counters for you...
I found my thread for tokenizing the return using powershell, but apparently, didn't include the data grab portion of the code in the thread
/topic/2281-rest-api-raw-data-processing-using-powershell/