Monitoring with Instana
The Instana agent runs as a DaemonSet, one pod per node. It monitors the cluster, the nodes and the containers by itself and receives OTLP on the node it runs on. The platform sends its traces, its metrics (through the bundled collector idv-otel-metrics) and, optionally, its logs to the agent; no gateway is needed.
Before you start
- An Instana tenant (SaaS or self-hosted), with the agent key and the agent endpoint (host and port). In the Instana UI, Deploy Agent → Kubernetes → Helm chart shows both. For SaaS, choose a region that meets your data-residency requirements.
- The nodes reach the agent endpoint on port 443, or the self-hosted backend inside your network.
- With a private registry: the agent images mirrored to it, and the chart's image settings pointed at them.
The Instana agent is a privileged DaemonSet that sees every process on the node and, by default, instruments supported runtimes automatically — including the Java components of the platform (DIS and Keycloak). Unless your security team approves it, turn off automatic instrumentation for the platform namespace and rely on the platform's OTLP data, and configure Instana's secret masking.
Step 1. Store the agent key
With AWS Secrets Manager, and the store named in global.secrets.secretStore of your platform values (or a store for monitoring only — see Secure the telemetry path):
read -rs -p 'Instana agent key: ' K; echo
printf '%s' "$K" | aws secretsmanager create-secret --region <region> --name <prefix>/instana-agent-key \
--secret-string file:///dev/stdin --query Name --output text; unset K
kubectl create namespace instana-agent --dry-run=client -o yaml | kubectl apply -f -
kubectl apply -f - <<'EOF'
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: instana-agent-keys
namespace: instana-agent
spec:
refreshInterval: 1h
secretStoreRef: {kind: ClusterSecretStore, name: <store-name>}
target: {name: instana-agent-keys}
data:
- secretKey: key
remoteRef: {key: <prefix>/instana-agent-key}
EOF
kubectl -n instana-agent get externalsecret instana-agent-keys
Done when STATUS is SecretSynced.
Step 2. Install the agent
Write instana-agent-values.yaml:
agent:
keysSecret: instana-agent-keys # Secret with the key `key` (step 1)
endpointHost: <agent-endpoint-host> # from the Instana UI
endpointPort: "443"
pod:
tolerations: # also run on the nodes you taint, for example the DIS node
- {key: <your-dis-taint-key>, operator: Exists, effect: NoSchedule}
cluster:
name: idv-<environment> # how the cluster appears in Instana
zone:
name: idv-<environment>
service:
create: true # Service instana-agent: OTLP 4317 (gRPC) / 4318 (HTTP), to the agent on the same node
opentelemetry:
grpc: {enabled: true}
http: {enabled: true}
Use the taint you gave the DIS node in your installation (the dis.tolerations of your platform values); drop the toleration if you taint no node.
helm repo add instana https://agents.instana.io/helm
helm repo update
helm search repo instana/instana-agent # pin the version shown
helm show values instana/instana-agent --version <pinned-version> | grep -n -E 'keysSecret|endpointHost|opentelemetry|tolerations|service:'
helm install instana-agent instana/instana-agent --version <pinned-version> \
-n instana-agent -f instana-agent-values.yaml --wait
kubectl -n instana-agent get pods -o wide
kubectl -n instana-agent get svc instana-agent
The helm show values line checks that the keys above exist in the version you pinned; the chart has renamed some over time.
Done when one agent pod runs on every node, the tainted ones included, and the Service instana-agent lists ports 4317 and 4318. The cluster idv-<environment> appears in Instana under Platforms → Kubernetes within a few minutes.
Step 3. Send the platform's telemetry to the agent
In observability-values.yaml (Configure the platform's OTLP settings):
global:
observability:
otlpEndpoint: http://instana-agent.instana-agent:4318
otlpGrpcEndpoint: http://instana-agent.instana-agent:4317
collector:
logs:
enabled: false # true: pod logs to Instana (read "The optional log collector" first)
Run the upgrade and the checks of Apply the change. The Service sends each pod to the agent on its own node, so every node that runs platform pods needs an agent pod.
Done when, in Instana:
- Applications → Services lists the platform services (
bff,onboarding-service,temporal-workflows,keycloak,dot-digital-identity-service…) with calls and latency. - Analytics → Infrastructure finds the Prometheus metrics, for example
dis_license_expiration_remaining_days. - Analytics → Logs shows lines of the platform namespace, when logs are on.
Step 4. Alerts
Instana raises its own events for the cluster, nodes and pods (restarts, pods not ready, node pressure). For the platform-specific conditions, create Smart Alerts (or custom events) on the metrics in Alert Rules.
Remove
-
Set the platform's endpoints to
""and upgrade (Stop exporting). -
Remove the agent and the secret sync:
helm uninstall instana-agent -n instana-agentkubectl -n instana-agent delete externalsecret instana-agent-keyskubectl delete namespace instana-agent -
Rotate or revoke the agent key in Instana and delete its secret-store entry.
-
Data already sent stays in Instana until its retention period ends.