Monitoring
A self-hosted IDV Platform installs no monitoring tool. It exports its telemetry in standard formats — OpenTelemetry (OTLP), Prometheus endpoints and stdout logs — to a destination you choose, so retention, dashboards, alerting and SIEM forwarding stay in your own observability stack. With no destination configured, nothing is exported.
There are two ways to connect it:
| Path | When to use it | Pages |
|---|---|---|
| OTLP to your observability tool | Your operations team runs Grafana Cloud, Instana, Elastic (ELK) or Dynatrace. The platform pushes everything to one OTLP endpoint inside the cluster. | OpenTelemetry Gateway, Grafana Cloud, Instana, ELK, Dynatrace |
| Prometheus Operator | The cluster runs Prometheus with the Prometheus Operator (for example kube-prometheus-stack). The chart creates the scrape targets and the alert rules as Operator objects. | Prometheus Operator below |
The alert rules are the same in both paths.
Telemetry leaves the platform for the tool you choose. Choose a vendor region that meets your data-residency requirements (or a backend you host yourself), restrict access to the tool, and set a retention period.
What the platform exports
Every component uses one or more of these channels:
| Channel | What | Turned on by |
|---|---|---|
| OTLP push | Traces of every component that can trace; metrics of the Temporal workers and the document search component; and, through the bundled collectors, every Prometheus metric and (optionally) the pod logs. | global.observability.otlpEndpoint (OTLP/HTTP) and global.observability.otlpGrpcEndpoint (OTLP/gRPC, used by DIS and the Temporal server). |
| Prometheus endpoints | Metrics of the platform services, the workflow engine, the identity provider, DIS, the API gateway, the face search component (LFIS) and the vector database (Qdrant). | The bundled collector idv-otel-metrics scrapes them and pushes them over OTLP — or your Prometheus scrapes them through the Prometheus Operator objects. |
| stdout logs | Every component logs to stdout. | Your cluster's log agent (Fluent Bit, CloudWatch Container Insights, the vendor's agent…), or the optional bundled DaemonSet idv-otel-logs. |
Per component:
| Component | Traces | Metrics |
|---|---|---|
| Platform services (BFF, configuration, dashboard and onboarding services) | OTLP/HTTP | Prometheus, scraped |
| Real-time channel (websocket) | — | Prometheus, scraped |
| Temporal workers | OTLP/HTTP | OTLP push; Prometheus endpoint for the Prometheus Operator path |
| Document search (DoTIS) | OTLP/HTTP | OTLP push |
| Face search (LFIS) | OTLP/HTTP | Prometheus, scraped |
| Identity provider (Keycloak) | OTLP/HTTP, without custom headers | Prometheus, scraped |
| DIS (biometric engine) | OTLP/gRPC only, without custom headers | Prometheus, scraped |
| Temporal server | OTLP/gRPC only | Prometheus, scraped |
| API gateway (authz-proxy) | — | Prometheus, scraped |
| Vector database (Qdrant) and its re-replication controller | — | Prometheus, scraped |
| Hosted capture UI and dashboard (frontends) | — | — |
Logs come from stdout for every component. The face search database migration Job and the Temporal UI export no telemetry.
Choose a tool
| Grafana Cloud | Instana | ELK | Dynatrace | |
|---|---|---|---|---|
| Where the data lives | Grafana Cloud stack (Mimir, Loki, Tempo) | Instana backend (SaaS or self-hosted) | Elasticsearch (Elastic Cloud or your own cluster) | Dynatrace environment (SaaS or Managed) |
| In the cluster | Grafana Alloy | Instana agent (DaemonSet) | OpenTelemetry Gateway + Elastic Agent | OpenTelemetry Gateway + Dynatrace Operator (optional) |
| Platform metrics | OTLP through Alloy | OTLP to the agent | OTLP through the gateway | OTLP through the gateway, converted to delta |
| Traces | Tempo | Instana | Elastic APM | Dynatrace |
| Logs | Optional bundled log collector, to Loki | Optional bundled log collector | Elastic Agent (recommended) or the bundled log collector | Optional bundled log collector |
| Kubernetes and nodes | Not included (add the Grafana Cloud Kubernetes Monitoring integration) | The agent, automatically | Elastic Agent, Kubernetes integration | Dynatrace Operator |
| Platform alert rules | Load into Mimir, or recreate in Grafana Alerting | Recreate as Smart Alerts | Recreate as Kibana rules | Recreate as metric events |
- One destination at a time. The platform has one OTLP destination, so it exports to one tool. To feed two backends, point the platform at the gateway (or Alloy) and give the gateway two exporters.
- Pick the tool your operations team already runs. Grafana Cloud is also a quick choice for development and test environments.
Configure the platform's OTLP settings
Every tool page ends with the same change to the platform. Write observability-values.yaml:
global:
observability:
otlpEndpoint: http://<gateway-or-agent>:4318 # OTLP/HTTP base URL, no /v1/... path
otlpGrpcEndpoint: http://<gateway-or-agent>:4317 # DIS and Temporal server traces
collector:
logs:
enabled: false # true: the bundled DaemonSet idv-otel-logs sends the pod logs (see below)
Each tool page gives the two endpoints. Both point at a receiver inside the cluster (Grafana Alloy, the Instana agent or the OpenTelemetry Gateway), which holds the tool's credential — the platform needs none.
If your receiver requires headers (for example an API key), store them in your secret store as one entry in the form key1=value1,key2=value2, with URL-encoded values (for example Authorization=Api-Token%20<token>), and reference the entry:
global:
observability:
otlpHeaders:
remoteKey: <secret-store-entry>
Keycloak and DIS do not send these headers, so a receiver that requires them still needs to accept those two components — another reason to keep the receiver inside the cluster.
The optional log collector
idv-otel-logs tails the pod log files of the platform namespace from each node and sends them over OTLP. It runs as UID 0 without capabilities and mounts /var/log/pods read-only from the node, so:
-
A namespace that enforces the
baselineorrestrictedPod Security Standard rejects it. Do not relax the platform namespace to run it; collect the logs with your cluster's or vendor's log agent instead. Check the labels first:kubectl get ns <idv-namespace> --show-labels | grep -o 'pod-security[^,]*' || echo "no Pod Security labels" -
It runs only on nodes it tolerates. If you taint the DIS node, add that taint to
global.tolerationsas well, or the DIS logs are not collected. -
It covers the platform namespace only, starts at the end of each log file and keeps no checkpoint: lines written while it restarts are not sent.
-
It needs the metrics collector on and
otlpEndpointset.
Apply the change
Run the helm upgrade of your installation again with -f observability-values.yaml after your other values files, and keep the file in every later upgrade:
helm upgrade <release> <chart> --version <chart-version> -n <idv-namespace> \
-f <your-values>.yaml -f observability-values.yaml --wait --wait-for-jobs --timeout 30m
Use your own values files rather than an export of the running release (helm get values): an export also freezes one-off --set overrides and older image paths into every later upgrade.
The upgrade restarts the platform services, DIS, Keycloak and the collectors. The Temporal server reads the gRPC endpoint without restarting, so restart it yourself:
kubectl -n <idv-namespace> rollout restart deploy -l app.kubernetes.io/name=temporal
kubectl -n <idv-namespace> get pods | grep -E 'idv-otel|temporal'
Done when idv-otel-metrics (and, when enabled, idv-otel-logs on every node it tolerates) is Running, and its log shows no export error:
kubectl -n <idv-namespace> logs deploy/idv-otel-metrics --tail=50 | grep -i -E 'error|refused|denied' || echo "no export errors"
Stop exporting
Set both endpoints to "" (and logs.enabled: false) and upgrade. Removing observability-values.yaml from the command is enough only when no other values file carries the settings.
Secure the telemetry path
The OTLP receivers inside the cluster accept plain-text, unauthenticated OTLP. Limit who can reach them:
-
Admit only the platform namespace. Put the gateway or Alloy in its own namespace (the tool pages use
idv-monitoring) with a NetworkPolicy that admits ports 4317 and 4318 from the platform namespace only. Enforcing it needs a CNI with NetworkPolicy support (on EKS, turn on the VPC CNI's network policy support).apiVersion: networking.k8s.io/v1kind: NetworkPolicymetadata:name: otlp-from-idvnamespace: idv-monitoringspec:podSelector: {}policyTypes: [Ingress]ingress:- from:- namespaceSelector:matchLabels: {kubernetes.io/metadata.name: <idv-namespace>}ports:- {port: 4317, protocol: TCP}- {port: 4318, protocol: TCP}This also keeps the Alloy UI (port 12345) closed;
kubectl port-forwardstill reaches it. -
Encryption in transit. Traffic to the receiver is plain text inside the cluster. If your policy requires encryption on the pod network, rely on encryption at the network layer (for example a service mesh with mTLS or encrypted node-to-node traffic).
-
Limit egress. The gateway needs only DNS and the vendor's ingest host on port 443 (or a private endpoint).
-
Scope the secret store. The tool pages store the vendor token in the same secret store as the platform. If that store is a ClusterSecretStore, any namespace allowed to create an ExternalSecret can read every entry it can reach. Restrict the store to the namespaces that need it (
spec.conditions[].namespaces), or give the monitoring namespace its own SecretStore with a separate prefix and its own access role.
Prometheus Operator
For a Prometheus that runs the Prometheus Operator, the chart creates the scrape targets and the alert rules itself, instead of (or next to) the bundled collector:
global:
monitoring:
podMonitors:
enabled: true
labels: {release: kube-prometheus-stack} # match your Prometheus podMonitorSelector
prometheusRules:
enabled: true
labels: {release: kube-prometheus-stack} # match your Prometheus ruleSelector
networkPolicies:
monitoringFrom: # admit Prometheus to the metrics ports
- namespaceSelector:
matchLabels: {kubernetes.io/metadata.name: <prometheus-namespace>}
observability:
collector:
enabled: false # optional: Prometheus scrapes instead
podMonitorscreates PodMonitors for every component with a Prometheus endpoint; LFIS and Qdrant get ServiceMonitors.prometheusRulescreates the PrometheusRuleidv-platform-alerts; the Qdrant rules come with the vector database. See Alert Rules.monitoringFromadmits Prometheus to the metrics ports that the platform's NetworkPolicies protect (LFIS, Qdrant). While it is empty, those scrapes are blocked and the LFIS and Qdrant monitors and the Qdrant rules are not created.- The pod-restart rule needs kube-state-metrics.
- Turning either switch on requires the
monitoring.coreos.com/v1API in the cluster; the installation stops with an error otherwise.
Traces still need an OTLP endpoint (for example an OpenTelemetry Collector or Grafana Tempo in the cluster).
See also
- Self-hosted Installation
- Alert Rules
- Usage Reporting — what the platform reports to Innovatrics