Alert Rules
The self-hosted installation ships a set of Prometheus alert rules for the conditions an operator of the platform must act on: components that stop answering, an expiring biometric licence, 1:N watchlist updates that could not be applied, and erasures that could not be completed.
- With the Prometheus Operator, the installation creates them for you as the PrometheusRule
idv-platform-alerts(see Monitoring → Prometheus Operator). The rule files are also in the chart, in the folderfiles/alerts/, with the platform namespace written as__IDV_NAMESPACE__. - With another tool, recreate the rules you need from the table below in that tool's alerting.
Platform rules
| Rule | Severity | Fires when | Metric |
|---|---|---|---|
IdvScrapeTargetDown | critical | A component's metrics endpoint does not answer for 5 min. | up == 0 |
IdvPodRestartStorm | warning | A container restarts more than 3 times in 15 min. | kube_pod_container_status_restarts_total (kube-state-metrics) |
IdvDisLicenseExpiringSoon | critical | The DIS licence expires in less than 30 days (held for 1 h). | dis_license_expiration_remaining_days |
IdvS3ErasureExhausted | critical | An erasure of stored images gave up after its retries (held for 5 min). Personal data may remain in object storage. | idv_s3_erasure_backlog{state="exhausted"} > 0 |
IdvS3ErasureBacklogGrowing | warning | Erasures of stored images are still pending after 6 h. | idv_s3_erasure_backlog{state="pending"} > 0 |
IdvOneNBlocklistLinkGivenUp | critical | A face could not be added to the blocklist watchlist, so future matches against it are missed. | one_n_side_effect_failed_total{side_effect="blocklist_link"} increases |
IdvOneNSideEffectGivenUp | warning | Another 1:N watchlist update gave up. | one_n_side_effect_failed_total (other side_effect values) increases |
IdvOneNRedriveFailed | warning | A retry of a failed 1:N watchlist update failed again. | one_n_redrive_total{outcome=~"failed|unrecoverable"} increases |
IdvCustomerEnrolTemplateUnavailable | critical | A Customer's face could not be enrolled to the face search because its template was unavailable. | enroll_customer_template_source_total{source="unavailable", watchlist=""} increases |
IdvBlocklistEnrolUnavailable | critical | A blocklisted face could not be enrolled to the blocklist watchlist. | enroll_customer_template_source_total{source="unavailable", watchlist="blocklist"} increases |
IdvLfisEraseFailed | warning | Removing a face or palm template from the face search failed during anonymization. | idv_lfis_erase_failures_total increases |
IdvLfisOperatorEnrolSkipped | warning | An operator action on a record could not be applied to the face search. | idv_lfis_operator_enrol_total{result=~"unwired|unavailable"} increases |
IdvQdrantCollectionTopologyMismatch | warning | A vector database collection does not have the expected shard layout (held for 15 min). | sf_qdrant_collection_topology_mismatch > 0 |
IdvOneNWatchlistMemberMissing | info | More than 5 watchlist members per hour were expected but not found (held for 15 min). | one_n_watchlist_member_missing_total |
IdvLfisWatchlistMemberMissing | info | Same, seen by the face search. | idv_lfis_watchlist_member_missing_total |
"Increases" means any increase within 15 minutes, including a counter that appears for the first time in that window; these rules fire after 1 minute.
Vector database rules
The vector database (Qdrant) brings its own rules, created with the Prometheus Operator when its metrics port is admitted (global.networkPolicies.monitoringFrom). The two to recreate first in another tool:
| Rule | Severity | Fires when |
|---|---|---|
QdrantInstanceUnavailable | warning | A Qdrant peer is unavailable for 2 min. |
QdrantShardsBelowReplication | critical | Shards have fewer copies than the replication factor for 5 min. |
The others cover recovery mode, a volume filling up, cluster membership, the consensus backlog and leader changes.
Recreating the rules in another tool
| Tool | Where | Notes |
|---|---|---|
| Grafana Cloud | Load the rule files into Mimir, or recreate them in Grafana Alerting | See Grafana Cloud → Alerts. |
| Instana | Smart Alerts (or custom events) on the metrics | Instana raises its own events for pods, restarts and nodes; recreate only the platform-specific rules. |
| ELK | Kibana alerting rules (metric threshold or Elasticsearch query) | The Kubernetes integration and the APM app cover pod health, error rates and latency. |
| Dynatrace | Metric events (Anomaly detection) | Davis raises its own problems for services, pods and nodes. |
Things to check when recreating a rule:
- Find each metric in the tool first. Tools store the names differently: Grafana Cloud with Prometheus naming (dots become underscores, units and
_totalmay be added), Elastic as fields of metric documents, Dynatrace as metric keys. - Counters. In Prometheus, Grafana Cloud, Instana and Elastic the
..._totalcounters are cumulative: alert on their increase or rate. In Dynatrace they arrive as deltas (the gateway converts them): alert on the sum over the window. - The namespace filter. Metrics that arrive over OTLP carry no
namespacelabel. The metrics the bundled collector scrapes carry the namespace as the resource attributek8s.namespace.name(in Grafana Cloud, the labelk8s_namespace_name); the metrics the Temporal workers push carry none. Rewrite or drop thenamespacefilter of each expression accordingly. - Component down in a tool without the
upmetric: alert on the tool's own pod readiness for 5 min. - Notifications. Add a contact point or notification channel; otherwise the alerts fire without notifying anyone.