Use these examples to configure common cost monitoring scenarios with meter alerts.
Examples
Example 1: Alert for Monthly Log Costs Exceeding $500
- Go to the billing section to find your per-GB log price, which may vary based on your retention settings.

-
In the query builder, select the
signoz.meter.log.sizemeter metric and settimeAggregationtoIncreaseto sum the total log usage. -
Use a formula to convert usage to cost:
(A / 1e9) * (cost per GB).

-
Set the alert threshold on this formula with
In Totalaggregation. -
Choose a
Cumulativewindow alert with time range set toCurrent Month, and ensure the start date matches your billing cycle as specified on the billing page. -
For accuracy, set the evaluation window to start at
00:00:00UTC (since billing is calculated in UTC), or pick the corresponding time window in your local timezone.

- Select your preferred notification channel and save the alert.
Example 2: Alert for Monthly Total Costs Exceeding $1000
- On the billing page, identify the per-GB price for logs and spans, and the per-million data point price for metrics.

-
In the query builder, select
signoz.meter.log.sizewithtimeAggregationset toIncrease. -
Additionally, add queries for
signoz.meter.span.sizeandsignoz.meter.metric.datapoint.countwith the same aggregation. -
Combine these with a formula to calculate total cost:
- Logs:
(A / 1e9) * (cost per GB of logs) - Spans:
(B / 1e9) * (cost per GB of spans) - Metrics:
(C / 1e6) * (cost per million data points) - Total: Sum all three components.
- Logs:

-
Apply the formula as the threshold condition with
In Totalaggregation. -
Use a
Cumulativewindow alert, selectCurrent Monthas the time range, and set the start date based on your billing cycle. -
Make sure the evaluation window aligns with
00:00:00UTC, or select the appropriate range for your timezone.

- Choose a notification channel and save the alert.
Example 3: Alert When an Ingestion Key Is Nearing Its Daily Quota
-
Go to the ingestion keys page and expand the key you want to monitor.
-
Click the
bellicon next to the daily limit for the relevant signal type.

- You will be redirected to the alerts page with a pre-filled query that includes all the necessary fields.

- Give the alert a meaningful name, choose a notification channel, and save.
Example 4: Alert When Any Service Ingests Over 1 Million Spans in a Day
- Select the
signoz.meter.span.countmetric, and add agroup byforservice.nameto monitor spans per service.

-
Set the threshold to 1,000,000 spans, using
In Totalaggregation. -
Set the evaluation window to
Cumulativeand pickCurrent Daysince we are interested in daily usage limits.

- Configure notifications and save the alert.