Skip to main content

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 folder files/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​

RuleSeverityFires whenMetric
IdvScrapeTargetDowncriticalA component's metrics endpoint does not answer for 5 min.up == 0
IdvPodRestartStormwarningA container restarts more than 3 times in 15 min.kube_pod_container_status_restarts_total (kube-state-metrics)
IdvDisLicenseExpiringSooncriticalThe DIS licence expires in less than 30 days (held for 1 h).dis_license_expiration_remaining_days
IdvS3ErasureExhaustedcriticalAn 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
IdvS3ErasureBacklogGrowingwarningErasures of stored images are still pending after 6 h.idv_s3_erasure_backlog{state="pending"} > 0
IdvOneNBlocklistLinkGivenUpcriticalA 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
IdvOneNSideEffectGivenUpwarningAnother 1:N watchlist update gave up.one_n_side_effect_failed_total (other side_effect values) increases
IdvOneNRedriveFailedwarningA retry of a failed 1:N watchlist update failed again.one_n_redrive_total{outcome=~"failed|unrecoverable"} increases
IdvCustomerEnrolTemplateUnavailablecriticalA 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
IdvBlocklistEnrolUnavailablecriticalA blocklisted face could not be enrolled to the blocklist watchlist.enroll_customer_template_source_total{source="unavailable", watchlist="blocklist"} increases
IdvLfisEraseFailedwarningRemoving a face or palm template from the face search failed during anonymization.idv_lfis_erase_failures_total increases
IdvLfisOperatorEnrolSkippedwarningAn operator action on a record could not be applied to the face search.idv_lfis_operator_enrol_total{result=~"unwired|unavailable"} increases
IdvQdrantCollectionTopologyMismatchwarningA vector database collection does not have the expected shard layout (held for 15 min).sf_qdrant_collection_topology_mismatch > 0
IdvOneNWatchlistMemberMissinginfoMore than 5 watchlist members per hour were expected but not found (held for 15 min).one_n_watchlist_member_missing_total
IdvLfisWatchlistMemberMissinginfoSame, 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:

RuleSeverityFires when
QdrantInstanceUnavailablewarningA Qdrant peer is unavailable for 2 min.
QdrantShardsBelowReplicationcriticalShards 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​

ToolWhereNotes
Grafana CloudLoad the rule files into Mimir, or recreate them in Grafana AlertingSee Grafana Cloud → Alerts.
InstanaSmart Alerts (or custom events) on the metricsInstana raises its own events for pods, restarts and nodes; recreate only the platform-specific rules.
ELKKibana alerting rules (metric threshold or Elasticsearch query)The Kubernetes integration and the APM app cover pod health, error rates and latency.
DynatraceMetric 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 _total may be added), Elastic as fields of metric documents, Dynatrace as metric keys.
  • Counters. In Prometheus, Grafana Cloud, Instana and Elastic the ..._total counters 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 namespace label. The metrics the bundled collector scrapes carry the namespace as the resource attribute k8s.namespace.name (in Grafana Cloud, the label k8s_namespace_name); the metrics the Temporal workers push carry none. Rewrite or drop the namespace filter of each expression accordingly.
  • Component down in a tool without the up metric: 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.