Application Health Service Dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:52 PM
Hi All,
We are looking some OOB feature which shows the information about the uptime of an Application Services. We wanted to know for how long the service is up or down. Please share your inputs.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 05:18 AM - edited 06-21-2023 05:19 AM
The community post is about the usage time of application services. We want the system to tell how long a particular service is up/down
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 05:35 AM
Hi @Suve3 ,
I trust you are doing great.
To implement this solution, we need to perform the following steps:
Set up Service Monitoring in ServiceNow: a. Go to the ServiceNow instance. b. Navigate to Service Administration > Service Monitoring. c. Create a new Service Monitoring profile and specify the name and URL of the application service you want to monitor.
Configure monitoring settings: a. Specify the frequency at which the system should check the service availability. b. Set the response time threshold to determine when the service is considered down. c. Configure additional settings based on your requirements.
Create a ServiceNow scheduled job: a. Go to System Scheduler > Scheduled Jobs in ServiceNow. b. Create a new scheduled job with a script that queries the Service Monitoring data and retrieves the uptime information.
// Query the Service Monitoring data
var serviceMonitors = new GlideRecord('service_monitor');
serviceMonitors.addQuery('name', '<service_name>'); // Replace <service_name> with the name of the application service
serviceMonitors.query();
// Check if any records match the query
if (serviceMonitors.next()) {
var uptime = serviceMonitors.u_uptime;
gs.info('Uptime of the service: ' + uptime);
} else {
gs.info('No uptime information found for the service.');
}
- Schedule the job: a. Specify the desired schedule for the job, such as running it every hour or day. b. Save the scheduled job.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi