-
Notifications
You must be signed in to change notification settings - Fork 138
EV-6493: Update Prometheus metrics docs for operator metrics #2629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,10 +10,38 @@ import License from '@site/calico-enterprise/_includes/content/_license.mdx'; | |||||
|
|
||||||
| Review options for tracking $[prodname] license expiration. | ||||||
|
|
||||||
| ## Concepts | ||||||
|
|
||||||
| We highly recommend using the [license agent using Prometheus](monitor/metrics/license-agent.mdx) to get alerts on your $[prodname] license expiration day to avoid disruption to services. Regardless of whether you using the alerting feature, here are some things you should know. | ||||||
|
|
||||||
| ### FAQ | ||||||
|
|
||||||
| <License /> | ||||||
|
|
||||||
| ## License metrics | ||||||
|
|
||||||
| The $[prodname] operator automatically exposes license metrics through its Prometheus metrics endpoint. No additional components need to be installed. The following metrics are available: | ||||||
|
|
||||||
| | Metric | Description | | ||||||
| |---|---| | ||||||
| | `tigera_operator_license_expiry_timestamp_seconds` | Unix timestamp of license expiration | | ||||||
| | `tigera_operator_license_valid` | Whether the license is valid (`1`) or not (`0`) | | ||||||
|
|
||||||
| These metrics are scraped by the built-in Prometheus instance via the `tigera-operator-metrics` ServiceMonitor. | ||||||
|
|
||||||
| ### Built-in alerts | ||||||
|
|
||||||
| $[prodname] installs PrometheusRule resources with alerting rules for license expiration. You can view them with: | ||||||
|
|
||||||
| ```bash | ||||||
| kubectl -n tigera-prometheus get prometheusrule calico-prometheus-dp-rate -o yaml | ||||||
| ``` | ||||||
|
|
||||||
| The built-in rules include: | ||||||
|
|
||||||
| - **LicenseExpiringWarning**: fires when the license expires in less than 30 days | ||||||
| - **LicenseExpiringCritical**: fires when the license expires in less than 7 days, or is invalid | ||||||
|
|
||||||
| To route these alerts, see [Configure Alertmanager](monitor/prometheus/alertmanager.mdx). | ||||||
|
|
||||||
| ## Additional resources | ||||||
|
|
||||||
| - [LicenseKey resource](../../reference/resources/licensekey.mdx) | ||||||
|
||||||
| - [LicenseKey resource](../../reference/resources/licensekey.mdx) | |
| - [LicenseKey resource](../reference/resources/licensekey.mdx) |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command references
calico-prometheus-dp-rate, which is the denied-packets PrometheusRule example used in the Prometheus configuration docs, not a license-expiration rule. It will mislead readers trying to inspect license alert rules; update the example to reference the actual license PrometheusRule name (or show how to discover it, e.g., by listing PrometheusRules and filtering for license-related ones).