# Monitor a License Using Metrics

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

---
title: Monitor a License Using Metrics
latest-redpanda-tag: v25.1.1
latest-console-tag: v3.7.3
latest-operator-version: v26.1.4
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: April 7, 2026
latest-connect-version: 4.93.0
docname: licensing/check-status/metrics
page-component-name: streaming
page-version: "25.1"
page-component-version: "25.1"
page-component-title: Streaming
page-relative-src-path: licensing/check-status/metrics.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/25.1/modules/get-started/pages/licensing/check-status/metrics.adoc
description: Learn how to monitor the expiration status of your Redpanda Enterprise license using the <code>redpanda_cluster_features_enterprise_license_expiry_sec</code> metric. Set up alerts and integrate dashboards to ensure proactive license management.
page-git-created-date: "2024-12-17"
page-git-modified-date: "2024-12-17"
support-status: past end-of-life
---

<!-- Source: https://docs.redpanda.com/streaming/25.1/get-started/licensing/check-status/metrics.md -->

Redpanda exposes the [`redpanda_cluster_features_enterprise_license_expiry_sec`](https://docs.redpanda.com/streaming/25.1/reference/public-metrics-reference/#redpanda_cluster_features_enterprise_license_expiry_sec) metric to help you track the time remaining before your license expires.

Example metric output

```promql
# HELP redpanda_cluster_features_enterprise_license_expiry_sec Seconds remaining until the enterprise license expires.
# TYPE redpanda_cluster_features_enterprise_license_expiry_sec gauge
redpanda_cluster_features_enterprise_license_expiry_sec 2592000
```

In this example, the metric indicates 2,592,000 seconds (30 days) remaining until the license expires.

## [](#prerequisites)Prerequisites

Redpanda exposes metrics in the [Prometheus exposition format](https://prometheus.io/docs/instrumenting/exposition_formats/) through an HTTP `/metrics` endpoint. For help setting up Prometheus monitoring, see [Monitor Redpanda](https://docs.redpanda.com/streaming/25.1/manage/monitoring/) or [Monitor Redpanda in Kubernetes](https://docs.redpanda.com/streaming/25.1/manage/kubernetes/monitoring/k-monitor-redpanda/).

## [](#set-up-alerts)Set up alerts

To avoid violating the terms of the enterprise license, configure alerts when the expiration time falls below a certain threshold.

For example, to set up alerts with Prometheus:

```yaml
groups:
  - name: Redpanda License Alerts
    rules:
      - alert: RedpandaLicenseExpiringSoon
        expr: redpanda_cluster_features_enterprise_license_expiry_sec < 604800
        for: 1h
        labels:
          severity: warning
        annotations:
          summary: "Redpanda license is expiring in less than 7 days"
          description: "The Redpanda Enterprise license will expire soon. Renew the license to avoid feature restrictions."
```

## [](#integrate-with-dashboards)Integrate with dashboards

Use visualization tools like Grafana to create a dashboard for Redpanda license monitoring:

-   Create a gauge to display the time remaining.

-   Add an alert panel for approaching expiration thresholds.


## [](#suggested-reading)Suggested reading

-   [Generate Grafana dashboard](https://docs.redpanda.com/streaming/25.1/manage/monitoring/#generate-grafana-dashboard).

-   [Generate Grafana dashboard in Kubernetes](https://docs.redpanda.com/streaming/25.1/manage/kubernetes/monitoring/k-monitor-redpanda/#generate-grafana-dashboard).