Blog  /  Engineering

New features in the ServiceNow plugin for Grafana: table query, annotations, and more!

1 Oct 2020 2 min read

Greetings! This is Eldin reporting from the Solutions Engineering team at Grafana Labs. In previous posts, you might have read about announcing ObservabilityCON or our release of Grafana 7.2. In this week’s post, I am introducing Dave Frankel, who will be covering our updated ServiceNow plugin. – Eldin

In a previous post we announced the release of our Enterprise ServiceNow plugin. Our first release was focused around incident and change management based on the feedback we received.

Since then, we have been heads down revamping it, and now we’re ready to resurface to announce some major updates.

First thing we have is the ability to query any table!

What does that mean? Let us show you:

There are a couple things to note from this image. Most obviously, we can easily query any table in ServiceNow to show additional insights from your ServiceNow instance. In this example, we’re gathering records from the Problems table. As you would expect, table-specific fields are available in the query editor dropdowns for field selection and filters. Additionally, when the selected table was changed from Incidents to Custom Table, the query editor was cleared. This new functionality extends to changes to the Query type field as well.

Next up, annotations! Visualize your Incidents, Changes, or data from any other table as annotations in your panels.

Note the URL links in the ServiceNow Incidents table. Pro tip: You can use the following data link override to redirect to individual ServiceNow incidents:${__data.fields[number]}

Lastly, you can now leverage ServiceNow as an alert notification channel.

From your ServiceNow Data Source config, simply supply a Grafana username and password under the Alert (Beta) header. This will create a notification channel to be used in Alert configs to seamlessly create Incidents in ServiceNow as a result of a Grafana Alert triggering.

Install the ServiceNow plugin today! If you’re more of a ditch-the-UI kind of user, here is how you would provision the ServiceNow plugin with a config file:

  - name: servicenow
    type: grafana-servicenow-datasource
    access: proxy
    editable: true
    enabled: true
    url: https://<your-instance>
    basicAuth: true
    basicAuthUser: <servicenow-user>
      advancedOptions: true
      basicAuthUser: <servicenow-user>
      fieldSearchType: quick
      internalFieldsFiltration: true
      tlsSkipVerify: true
      basicAuthPassword: <servicenow-password>
    version: 1
    isDefault: false

We hope you enjoyed today’s post. Keep an eye out for some great new updates coming soon to our plugins — you won’t want to miss it!

Find out more about Grafana Enterprise here.