Skip to main content

Data usage metrics

Data usage metrics turn your data usage into three Prometheus metrics. Once they exist, your consumption is queryable like any other metric, so you can chart it on a custom dashboard, alert before you burn through a daily quota, and attribute spend to an application, a subsystem, or a TCO priority.

The Usage & Quota page: the CX units and AI Units tabs, an overview of daily quota left, blocked days and units, and maximum, minimum and average daily usage, above a counted units per day chart stacked by pillar and priority against the quota line

What you need​

Three things have to be in place before usage data appears. The product checks all three and tells you which is missing when you open the Usage & Quota page.

RequirementWhy
An S3 metrics bucketUsage data is stored there. Without it, the metrics toggle stays disabled. See Connect an S3 archive.
Data usage metrics enabledProduces the three metrics. See Data Usage settings panel.
The Coralogix System Monitoring extensionProvides the Data Usage dashboard that charts the metrics. See Extensions.

You can use the metrics without the extension by building your own dashboards and alerts. The extension matters when you want the ready-made Data Usage dashboard rather than starting from an empty one.

Note

Enabling metrics starts an auto-populate process covering the previous 24 hours. It can take up to two hours before data appears.

The metrics​

MetricWhat it reports
cx_data_usage_unitsUnits consumed
cx_data_usage_bytes_totalBytes sent
cx_data_plan_units_per_dayThe daily quota your plan allows

The third is what makes the other two actionable: comparing consumption against the quota is how you express "percentage of today's quota used" in a query.

What enabling it costs​

The three metrics count towards your metrics quota like any other metric, so turning them on is not free.

The cost scales with cardinality, which means it depends on how many distinct combinations of the labels below your traffic produces. An account sending logs from a handful of applications generates far fewer series than one sending from hundreds.

As a rule of thumb, 30 GB of metrics consumes 1 GB of quota. In practice the three metrics typically consume well under 100 MB of quota per day.

Note

These figures are a guide rather than a commitment. To see the real cost for your account, enable the metrics and check your metrics usage after a full day.

Enable data usage metrics​

Select Settings, then Usage & Quota under Subscriptions. Select Settings on that page, then turn on Enable metrics.

The toggle is unavailable when no S3 metrics bucket is configured, or when you lack the permission to manage data usage. For the full procedure, the permission it needs, and the related dataplan.usage_events dataset, see Data Usage settings panel.

View your usage​

The Coralogix System Monitoring extension includes a Data Usage dashboard built on these metrics. It highlights your top data-sending applications and makes usage spikes visible without you building anything. To open it, select the more actions menu in the Usage & Quota header, then View Data Usage Dashboard.

The Usage & Quota page itself charts your counted units per day against your quota, broken down by pillar and priority, with an Aggregation control for Daily, Weekly, or Monthly buckets. Reach for the metrics when you need something that page does not give you: a panel beside your own service metrics, a custom grouping, or an alert. Chart them on a custom dashboard.

Alert on your usage​

Because the quota is a metric, you can alert on consumption as a proportion of it rather than on a fixed number. A metric threshold alert on this expression fires when the team passes a share of today's quota:

sum(cx_data_usage_units) / max(cx_data_plan_units_per_day) * 100

To catch a sudden spike rather than a gradual climb, alert on the rate of increase instead:

increase(cx_data_usage_units[30m])

For hard limits rather than notifications, see Quota rules.

Labels​

Every data point carries the labels below. They are what you group and filter by when attributing usage.

LabelDescription
pillarType of traffic (logs, spans, metrics) in each data point
subsystem_nameSubsystem that generated the traffic, used by the logs and spans pillars
application_nameApplication that generated the traffic, used by the logs and spans pillars
priorityTCO priority (high, medium, low, blocked)
severityLog severity (critical, error, warn, info, debug, trace), used by the logs pillar
blocking_reason_typeWhy traffic was blocked. The value is either tco_policy or parsing_rule.
blocking_reason_nameThe name of the TCO policy or parsing rule blocking the traffic
Note

Traffic that reaches Coralogix without an application or subsystem is reported under cx_default or cx_null rather than being dropped. Account for those values when you filter or group by application_name, or a dashboard filtered to named applications will understate your usage.

Troubleshooting​

What you seeWhat to check
The metrics toggle is unavailableNo S3 metrics bucket is configured, or you lack permission to manage data usage
You cannot find the toggleIt is behind Settings on the Usage & Quota page, not on the page itself
The toggle is on but no data appearsThe auto-populate process takes up to two hours after enabling
The Data Usage dashboard is emptyThe Coralogix System Monitoring extension is not deployed
A dashboard filtered by application shows less than you expectTraffic with no application is reported as cx_default or cx_null
Last updated on