LogDrop
Infrastructure Monitoring

Kubernetes

Install the LogDrop metrics agent in your Kubernetes cluster with the LogDrop Helm chart.

The LogDrop chart runs one agent pod per node for kubelet (and optionally host) metrics, and one pod for the cluster's state. You need the project, the key and the endpoint from Before you start.

1. Store the key

The ingest key with the Metrics signal is the credential the agent sends its data to LogDrop with. The agent runs in its own namespace (here logdrop-system); the key Secret goes there:

kubectl create namespace logdrop-system
printf 'Metrics key (paste it once, then press Enter): ' && read -rs LOGDROP_METRICS_KEY && echo
if [[ $LOGDROP_METRICS_KEY == ldtk_* && ${#LOGDROP_METRICS_KEY} -eq 71 ]]; then
  kubectl -n logdrop-system create secret generic logdrop-metrics-ingest-key \
    --from-literal=metrics-ingest-key="$LOGDROP_METRICS_KEY"
else
  echo 'That is not one ingest key (it starts with ldtk_ and has 71 characters). Paste it once.'
fi
unset LOGDROP_METRICS_KEY

read -rs keeps the key out of your shell history and off the screen, so nothing appears while you paste: paste once. The chart never creates the Secret, and the key never appears in values or pod specs.

2. The image

The image is the program that every agent pod runs. The chart runs LogDrop's build of the OpenTelemetry Collector by default, pinned by digest:

image:
  repository: registry.logdrop.io/logdrop-infrastructure-collector
  digest: sha256:715f4f4f19486ad57bb525e60cc836daafb20bd96e944decae09c083422ddf2c   # 0.158.0-alpha3

You do not need to set it. It pulls anonymously and is built for linux/amd64 only: on clusters with arm64 nodes add kubernetes.io/arch: amd64 to agent.nodeSelector, cluster.nodeSelector and prometheus.nodeSelector. To pull through your own registry, mirror the image and set only image.repository; keep the digest.

ImageWhat it can do
registry.logdrop.io/logdrop-infrastructure-collector (the chart default)Host, kubelet and cluster metrics, the Prometheus scrape, pod requests and limits with node capacity (resourceCapacity), receiver evidence and entity events (step 5)
otel/opentelemetry-collector-contrib 0.158.0Host, kubelet and cluster metrics and the Prometheus scrape only

Keep the LogDrop image unless you have a reason not to: without it, infrastructure alerts and service levels cannot tell missing data from an outage. Like the Java agent, it is signed with LogDrop's cosign key and carries an SBOM attestation (Verify what you install):

curl -fsSLO https://artifactory.logdrop.io/repository/logdrop-public/keys/cosign.pub
cosign verify --key cosign.pub --insecure-ignore-tlog=true \
  registry.logdrop.io/logdrop-infrastructure-collector@sha256:715f4f4f19486ad57bb525e60cc836daafb20bd96e944decae09c083422ddf2c
cosign verify-attestation --key cosign.pub --insecure-ignore-tlog=true --type cyclonedx \
  registry.logdrop.io/logdrop-infrastructure-collector@sha256:715f4f4f19486ad57bb525e60cc836daafb20bd96e944decae09c083422ddf2c
cosign verify --key cosign.pub --insecure-ignore-tlog=true registry.logdrop.io/charts/logdrop-infrastructure:0.1.1-alpha15

3. Install the chart

The values file turns on the agent and its receivers, and tells it where to send its data and which addresses it may reach.

logdrop-metrics-values.yaml, a complete setup:

enabled: true
clusterName: <a name for this cluster, for example shop-prod>
export:
  endpoint: https://otel.logdrop.io
  existingSecret: logdrop-metrics-ingest-key   # key name in the Secret: metrics-ingest-key
agent:
  hostmetrics:
    enabled: true
    machineIdPath: /etc/machine-id        # a reviewed node file; gives each host a stable ID
  kubeletstats:
    enabled: true
    resourceCapacity: true
    nodeCIDRs: [<node address range>]
cluster:
  enabled: true
entityEvents:
  enabled: true
receiverPublication:
  enabled: true
networkPolicy:
  exportCIDRs: [<metrics endpoint address>/32]
  apiServerCIDRs: [<API server address>/32]
helm upgrade --install logdrop oci://registry.logdrop.io/charts/logdrop-infrastructure --version 0.1.1-alpha15 \
  --namespace logdrop-system -f logdrop-metrics-values.yaml

Find the addresses with:

kubectl get endpointslices -n default -l kubernetes.io/service-name=kubernetes \
  -o jsonpath='{.items[*].endpoints[*].addresses[*]}'                                     # API server address
kubectl get nodes -o jsonpath='{range .items[*]}{.status.addresses[?(@.type=="InternalIP")].address}{"\n"}{end}'   # node addresses
dig +short otel.logdrop.io                                                                # metrics endpoint address

Nothing is installed until enabled: true, and every receiver is off until you turn it on. The chart checks your values when it renders and refuses combinations that cannot work, naming the value to fix.

ValueDefaultMeaning
export.endpointnoneMetrics endpoint, HTTPS, without path, query or credentials. The agent sends to <endpoint>/v1/metrics
export.existingSecret, export.ingestKeySecretKeynone, metrics-ingest-keyThe Secret with the metrics key, in the release namespace
export.caSecretemptyA private CA, only for a self-hosted gateway
collectionInterval30s10, 15, 20, 30 or 60 seconds
clusterNameemptyCluster name shown in the panel and on traces
networkPolicy.exportCIDRsnoneRequired while networkPolicy.enabled (the default): the endpoint's addresses
networkPolicy.apiServerCIDRsnoneRequired for the kubelet and cluster receivers: the API server address after service DNAT
agent.kubeletstats.nodeCIDRsnoneRequired for the kubelet receiver: where the kubelets listen (port 10250)
agent.kubeletstats.endpointhttps://${env:K8S_NODE_NAME}:10250How the agent reaches its node's kubelet. Use https://${env:K8S_NODE_IP}:10250 where node names do not resolve in cluster DNS

DigitalOcean Kubernetes

Node names do not resolve in cluster DNS on DigitalOcean, so set agent.kubeletstats.endpoint: "https://${env:K8S_NODE_IP}:10250"; the kubelet's certificate carries the node IP. Without it the agent logs lookup <node name> … no such host and sends no kubelet metrics.

Already tracing with the same chart?

Add these values to the same logdrop release instead of installing a second one. A cluster runs one release of the chart: two host agents on one node cannot start (their own metrics port, 127.0.0.1:8886, is taken).

To link traces to the cluster as well, keep cluster.uid from the tracing values. The chart accepts cluster.uid only in namespace mode, so list the namespaces in cluster.namespaces (step 4): the namespaces you trace, plus logdrop-system when receiver evidence is on. In cluster-wide mode the agent finds the cluster's identity itself and cluster.uid must stay empty. Traces then carry no cluster identity, and their Cluster row matches through the trace's pod, like Node and Workload (see Check it).

4. The receivers

A receiver is the part of the agent that collects one kind of data: from the node, from its kubelet, from the Kubernetes API or from a Prometheus endpoint. Each one is off until you turn it on, and each section below says which panel pages it feeds.

Host metrics: agent.hostmetrics

CPU, memory, file system and network of each node, read from the node itself. File systems and network interfaces are allowlists: agent.hostmetrics.filesystemMountPoints (default [/]) and agent.hostmetrics.networkInterfaces (default [eth0]); processes and command lines are never collected. Set machineIdPath to the node's machine-id file to give each host a stable ID; without it hosts have no host ID.

The agent then runs with the host network and a read-only mount of the node's root file system, as user 0 without any added privileges. Host-network pods are not covered by NetworkPolicy on most network plugins; see Network and disk before production.

Feeds: Inventory (hosts and nodes), Metrics & capacity and infrastructure alerts.

Kubelet metrics: agent.kubeletstats

The kubelet is the Kubernetes process on each node that runs the node's pods and measures their usage. CPU, memory (working set, as kubectl top shows it) and network of every node, pod and container, from each node's kubelet. agent.kubeletstats.namespaces limits pod and container data to a list of namespaces; node data stays.

resourceCapacity: true (LogDrop image only) adds each pod's CPU and memory requests and limits and each node's allocatable CPU and memory, so the panel can show usage against what was asked for and what fits. Pods without a budget show none; nothing is guessed.

Feeds: Inventory (nodes, pods, containers), Metrics & capacity and resource usage, infrastructure alerts, and the link from a trace to its pod and container.

Cluster state: cluster

One pod reads the Kubernetes API: node conditions, pod phases and readiness, container restarts, configured limits, and the inventory of namespaces, workloads, pods and nodes. cluster.workloadMetrics: true adds desired and available counts for deployments, replica sets, stateful sets and daemon sets. Its queue is a 256Mi PVC (cluster.queue).

  • Cluster-wide (default): reads all namespaces and finds the cluster's identity itself.
  • Namespace mode: cluster.namespaces: [<namespace>, …] limits it to those namespaces with Roles instead of ClusterRoles. Node and namespace metrics are then not available, and you must give the cluster's identity yourself: cluster.uid, the UID of the kube-system namespace (kubectl get namespace kube-system -o jsonpath='{.metadata.uid}'). Include the chart's own namespace when receiver evidence is on.

Feeds: Inventory (cluster, namespaces, workloads, pod states), infrastructure alerts, and the cluster identity that joins host, kubelet and trace data from the same nodes.

Prometheus endpoints (optional): prometheus

A Prometheus endpoint is an address where a program publishes its own metrics for collectors to read. Use this receiver when you want such metrics in the panel's metric history. A separate pod scrapes up to ten static HTTPS targets you approve. You list the targets, the metric names to keep (prometheus.metricNames, and the names they get in OTLP, prometheus.otelMetricNames), the labels to keep (prometheus.labelNames) and the allowed addresses (prometheus.scrapeCIDRs), plus a jobName and an approvalReference (your review of the source). Limits: 1,000 samples, 14 labels and 256 KB per scrape. There is no target discovery. Its queue is a PVC of its own.

Feeds: Metrics & capacity (metric history). Prometheus data is not part of the inventory and carries no cluster identity.

5. Receiver evidence and entity events

Two more lanes make the infrastructure data trustworthy:

  • Receiver evidence (receiverPublication): each receiver reports every collection attempt, successful or not. Without it, a minute without data is just a gap: infrastructure alerts and service levels cannot tell "nothing happened" from "the agent was down" and must show those minutes as Unknown instead of healthy or failed.
  • Entity events (entityEvents): pods, containers, nodes and hosts as they appear and are deleted. Without them, LogDrop sees a deleted pod only as one that stopped reporting.

Both need the LogDrop image, the chart default (step 2). Receiver evidence also needs agent.hostmetrics, agent.kubeletstats, cluster and entityEvents on, and in namespace mode the chart's namespace in cluster.namespaces.

They use the same metrics key as the metrics export: the agent posts to <export.endpoint>/v1/infrastructure/receiver/… with the key from export.existingSecret, and LogDrop takes the project from the key. Leave endpoint, merchantId and projectId of both lanes empty; they reuse export.endpoint, export.caSecret and networkPolicy.exportCIDRs. Both lanes must use the same auth (default ingestKey).

Each lane keeps its own small queue on the node (about 32 MiB per receiver at most). Upgrading from 0.1.1-alpha8: values that still set merchantId or projectId are refused at render time; remove them.

Check it

Check that the agent pods run and log no errors, then look for your cluster in the panel:

kubectl -n logdrop-system get pods -l app.kubernetes.io/instance=logdrop
kubectl -n logdrop-system logs daemonset/logdrop-logdrop-infrastructure-agent | grep -i -E 'error|fail' | tail

One agent pod per node and one cluster pod should be running. Within a few minutes the panel's Infrastructure → Inventory lists your cluster, nodes and pods and shows how many of your monitored nodes are in use; Metrics & capacity shows their usage. A resource whose last measurement is more than 15 minutes old shows as stale.

Send a request to a traced service, open it in Trace Explorer and look at its Infrastructure section: the cluster, node, workload and pod it ran on show as Matched. A trace names its node and workload but cannot carry their stable identity, and LogDrop never matches by name. It reaches them through the trace's pod instead: the kubelet metrics of that pod carry the node and the owning workload by UID, and a pod never moves to another node. So Node and Workload match when kubelet metrics (agent.kubeletstats) cover the pod's namespace.

The agent's own counters show whether LogDrop accepts its data:

kubectl -n logdrop-system port-forward pod/<agent pod> 8886 &
curl -s localhost:8886/metrics | grep -E 'otelcol_exporter_(sent|send_failed)_metric_points|otelcol_exporter_queue_size'

send_failed should stay at 0 and the queue near empty (the cluster pod serves the same on port 8887). Every refused request is also a log line Exporting failed with LogDrop's answer.

Upgrade

Run the same helm upgrade --install with the new --version. With Helm 4 on DigitalOcean Kubernetes, an upgrade can stop with conflict with "Go-http-client" … .webhooks[name="trace-injector.logdrop.io"].objectSelector: the platform adds its own rule to the trace injector's webhook. Run the upgrade again with --server-side=true --force-conflicts.

Rotate the key

Rotating replaces the metrics key with a new one, for example before the old key expires. The agent reads the key at start, so a new key needs a restart; the queues on disk keep data across it.

  1. Create a second key with the Metrics signal in the panel. Do not use Rotate: it revokes the old key at once.
  2. Update the Secret: run the command in step 1 with --dry-run=client -o yaml | kubectl apply -f - added to kubectl create secret.
  3. kubectl -n logdrop-system rollout restart daemonset/logdrop-logdrop-infrastructure-agent deployment/logdrop-logdrop-infrastructure-cluster (and the Prometheus pod if you use it).
  4. When the old key's Last used stops moving (it updates at most every 5 minutes), revoke it.

Limits

What LogDrop accepts from the agent. Check them when the agent's log shows a refused request.

LimitValue
Request size256 KiB compressed and uncompressed; the agent sends 64 to 192 KiB requests of at most 256 points
Points per request5,000, at most 1,000 per metric
Point timeat most 3 hours old and 5 minutes ahead; older points are refused for good, so an outage longer than 3 hours loses its oldest data
Attributes32 on the resource, 32 per data point; keys up to 128 bytes, text values up to 2,048 bytes
Requestsper key at least 600 and per project at least 3,000 per minute, growing with your monitored nodes (30 and 60 per node and minute)

The agent retries a refused request without a time limit until LogDrop accepts it or refuses it for good.

Troubleshooting

Messages from the chart, the agent's log and the panel, and what to do about them.

You seeDo this
The chart refuses to render with a messageFix the named value. For example: export.endpoint must be an HTTPS base URL; networkPolicy.exportCIDRs, apiServerCIDRs and kubeletstats.nodeCIDRs must list real addresses; cluster.uid needs cluster.namespaces; receiver evidence needs the host, kubelet, cluster and entity event receivers and, in namespace mode, the chart's namespace; merchantId/projectId belong to the old token mode
401 in the agent logThe key is wrong, revoked or expired, or it has no Metrics signal (a traces-only key). Create a key with the Metrics signal; signals cannot be added to an existing key
403The project's plan has no infrastructure monitoring
429 rate_limitedMore requests than the key's or project's limit, often several clusters sharing one key. Use one key per cluster; the agent retries
503 metrics_ingestion_unavailableLogDrop cannot take metrics for this project right now. The agent keeps retrying; if it lasts, contact LogDrop support. Points older than 3 hours are then lost
400A point older than 3 hours, a value or attribute over the limits, or a malformed request; that request is dropped
lookup <node name> … no such hostNode names do not resolve in cluster DNS: set agent.kubeletstats.endpoint: "https://${env:K8S_NODE_IP}:10250"
dial tcp <node IP>:10250: i/o timeout with agent.hostmetrics offThe agent runs in the pod network and its NetworkPolicy blocks the kubelets. On Cilium an ipBlock does not match node addresses; allow egress to the host and remote-node entities on port 10250 with a CiliumNetworkPolicy (Network and disk)
The agent restarts with bind: address already in use on 127.0.0.1:8886Another host-network agent of the chart runs on the node. Use one release per cluster
Pods run but Infrastructure stays emptyThe key belongs to another project than the one you are looking at, the plan has no monitored-node allowance, or egress to the endpoint is blocked (Exporting failed with a connection error)
A trace's Cluster or Pod row shows Not matchedTraces and metrics go to different projects, the Cluster row needs cluster.uid (namespace mode), the pod is in a namespace that agent.kubeletstats.namespaces or cluster.namespaces leaves out, or its metrics are outside the window
A trace's Node or Workload row shows Not matched while its Pod matchesThey match through the pod's kubelet metrics: turn on agent.kubeletstats and include the pod's namespace in agent.kubeletstats.namespaces. A trace that names another node or workload than the pod's metrics never matches them
The agent pod restarts with a receiver publication error after an upgradeThe image is older than the ingestKey mode; remove your image override (or mirror the chart's default digest) to run the LogDrop image of this chart's release

On this page