Ticket creation rate
When a major incident unfolds, alerts tell you something is wrong. Tickets tell you how fast it’s spreading. Customer complaints increase. Support queues grow. Related issues begin to surface. The question becomes, "Is the situation accelerating, stabilizing, or contained?"
This tile visualizes ticket creation over time, turning raw incident data into a momentum signal. It doesn’t just show volume, it shows trajectory.
Before you start
This article is part of the building a major incidents dashboard tutorial series. It works best alongside the alert volume tile, giving you the ability to correlate alert spikes with ticket spikes.
Configuring the tile
- Data Source: Select ServiceNow.
- Data Stream: Select Table Query.
- Parameters:
- Table name: Select Incident.
- Filter query: Enter
active=true.
Timeframe: Select the timeframe you want to track. Note that after adding a monitor or configuring a KPI the Use dashboard timeframe option is disabled.
- SQL Analytics: Enable the toggle, then configure the following:
- SQL > Query: Enter a query such as the following then click Execute. This example generates a timeline of tickets being raised, building a complete hourly ticket-creation timeline for the current dashboard timeframe (including hours where no tickets were created).
WITH hours AS ( SELECT UNNEST( generate_series( DATE_TRUNC('hour', CAST('{{timeframe.start}}' AS TIMESTAMP)), DATE_TRUNC('hour', CAST('{{timeframe.end}}' AS TIMESTAMP)), INTERVAL 1 HOUR ) ) AS hour ), ticket_counts AS ( SELECT DATE_TRUNC('hour', CAST(opened_at AS TIMESTAMP)) AS hour, COUNT(*) AS ticket_count FROM dataset1 WHERE CAST(opened_at AS TIMESTAMP) BETWEEN CAST('{{timeframe.start}}' AS TIMESTAMP) AND CAST('{{timeframe.end}}' AS TIMESTAMP) GROUP BY 1 ) SELECT hours.hour, COALESCE(ticket_counts.ticket_count, 0) AS ticket_count FROM hours LEFT JOIN ticket_counts ON hours.hour = ticket_counts.hour ORDER BY hours.hour;
- SQL > Query: Enter a query such as the following then click Execute. This example generates a timeline of tickets being raised, building a complete hourly ticket-creation timeline for the current dashboard timeframe (including hours where no tickets were created).
- Visualization: Select Line.
- Mapping > X-Axis: Select Hour.
- Y-Axis: Select Ticket Count.
- X-Axis: Enable the toggle and enter Date time.
- Y-Axis: Enable the toggle and enter Tickets raised.
- Options: Enable the following toggles:
- Shading
- Grid lines
- Click Save.
Adding a monitor
This tile is an ideal candidate for monitoring because changes in overall ticket rate are often gradual and easy to miss in day-to-day operations.
With a baseline of two tickets per hour, we trigger a warning when the volume increases by roughly 50-70%, and an error when it doubles. This keeps the monitor sensitive to meaningful change without reacting to normal fluctuation.
Configuration
Configure the following in the tile editor:
- Monitoring: Enable the Monitoring toggle.
- Type: Select Threshold.
- Value: Select Top.
- Column: Select Ticket Count.
- Evaluate by: Select Hour.
- Conditions:
- Error: Enable the toggle, then configure as greater than and then supply an appropriate value. For our example we'll enter 3.
- Warning: Enable the toggle, then configure as greater than and then supply an appropriate value. For our example we'll enter 2.
- Click Save.