Follow this general procedure to directly query the up.time DataStore for retained metrics from one of your Service Monitors.

select * from uptime.erdc__data edd, erdc_parameter ep
where edd.erdc_parameter_id = ep.erdc_parameter_id
and ep.short_description = "" and edd.erdc_instance_id = ;

 

For example, if we wanted to graph the User Connections value from a SQL Server Advanced monitor with an ID of 8, we would use the following query:

select * from uptime.erdc_decimal_data edd, erdc_parameter ep
where edd.erdc_parameter_id = ep.erdc_parameter_id
and ep.short_description = "User connections" and edd.erdc_instance_id = 8;