SolarWinds alerting
You can use the SolarWinds data source with Grafana Alerting to create alert rules based on your SolarWinds data. Use alert rules to get notified when infrastructure metrics cross a threshold, such as high CPU load, low free disk space, or a growing number of active alerts.
Before you begin
Ensure you have:
- Configured the SolarWinds data source.
- Familiarity with Grafana Alerting.
Write SWQL queries for alerting
The SolarWinds data source returns point-in-time tabular results from your SWQL query rather than a historical time series. To alert on these results, write a query that returns a numeric column, then add expressions that reduce the result to a single value and compare it against a threshold.
Follow these guidelines when you write a SWQL query for an alert rule:
- Return a numeric column to evaluate, such as
CPULoador aCOUNTaggregate. - Filter to the specific entity you want to monitor, for example a single node, so the query returns one row.
- Keep the result small. A query that returns many rows produces a separate alert instance for each row.
Create an alert rule
The SolarWinds data source supports Grafana-managed alert rules, which evaluate the SWQL query and expressions in Grafana. It doesn’t support data source-managed alert rules.
To create an alert rule that uses the SolarWinds data source:
- Navigate to Alerting > Alert rules in the left-side menu.
- Click New alert rule.
- In the query section, select your SolarWinds data source.
- Enter a SWQL query that returns a numeric value.
- Add a Reduce expression to convert the query result to a single value. Use Last for a point-in-time value.
- Add a Threshold expression that triggers when the value crosses your limit.
- Configure the evaluation behavior, labels, and notifications.
- Click Save rule.
For detailed instructions, refer to Create Grafana-managed alert rules.
Alert examples
The following examples show SWQL queries you can use as the basis for an alert rule.
Alert on a high number of active alerts
To receive an alert when the number of active alerts in SolarWinds exceeds a threshold:
Create a new alert rule and select the SolarWinds data source.
Enter the following query:
SELECT COUNT(AlertActiveID) AS ActiveAlerts FROM Orion.AlertActiveAdd a Reduce expression set to Last.
Add a Threshold expression that triggers when the value is above your limit, for example
> 0.Configure notifications and save.
Alert on high CPU load
To receive an alert when a node’s CPU load is too high:
Create a new alert rule and select the SolarWinds data source.
Enter the following query, replacing the caption with your node:
SELECT CPULoad FROM Orion.Nodes WHERE Caption = '<NODE_CAPTION>'Add a Reduce expression set to Last.
Add a Threshold expression that triggers when the value is above your limit, for example
> 90.Configure notifications and save.
Alert on low free disk space
To receive an alert when a volume is running low on free space:
Create a new alert rule and select the SolarWinds data source.
Enter the following query, replacing the caption with your volume:
SELECT VolumePercentUsed FROM Orion.Volumes WHERE Caption = '<VOLUME_CAPTION>'Add a Reduce expression set to Last.
Add a Threshold expression that triggers when the value is above your limit, for example
> 85.Configure notifications and save.


