eyriehq-agent
by eyriehq
EyrieHQ Agent — DaemonSet for host log and metric collection via OTLP
About this chart
eyriehq-agent
DaemonSet chart for the EyrieHQ Monitor Agent. One agent per node, scrapes host metrics + kubelet pod/container metrics and forwards via OTLP.
Quick Start
helm repo add eyriehq https://charts.eyriehq.com
helm repo update
helm install eyriehq-agent eyriehq/eyriehq-agent \
--set agent.clusterName=prod \
--set agent.token=<shared-with-collector>
Kubernetes pod / container metrics
Two parallel pipelines produce k8s.pod.* / k8s.container.* telemetry:
| Pipeline | Receiver | Kubelet API | Works on |
|---|---|---|---|
metrics/k8s | kubeletstats | /stats/summary | Every kubelet that returns a populated pods array. Most real distros. |
metrics/k8s-cadvisor | prometheus (IW-205 v0.3.4+) | /metrics/cadvisor | Every kubelet — /metrics/cadvisor is part of the standard kubelet API. Essential on OrbStack / minimal k3s / KIND minimal where /stats/summary returns pods: []. |
On a "normal" kubelet both pipelines emit data for the same pod. Samples are tagged via the OTel instrumentation scope so ClickHouse queries can dedup:
ScopeName = 'otelcol/kubeletstatsreceiver'→ kubeletstatsScopeName = 'cadvisor'→ prometheus/cadvisor
Resource attributes (k8s.pod.name, k8s.namespace.name, etc.) are identical
on both paths, so the Services dropdown shows one entry per pod regardless of
which source populated it.
Values
All cAdvisor settings live under agent.cadvisor:
agent:
cadvisor:
enabled: true # default: true — leave on for every cluster
collectionInterval: 30s
emitContainerMetrics: false # default: false — see below
agent.cadvisor.enabled
Toggles the whole metrics/k8s-cadvisor pipeline on/off. Leave on by default —
the receiver scrapes an endpoint the kubelet already exposes, adds ~5–10 MB
of agent RSS, and guards against kubelets where /stats/summary is broken.
Disable only if:
- You're running on a cluster where
/stats/summaryis guaranteed healthy AND - You're seeing measurable scrape overhead on large node counts, AND
- You don't need the cAdvisor-sourced
ScopeNamesplit for debugging.
agent.cadvisor.emitContainerMetrics
Default false. When false, the pipeline emits only pod-level metrics:
| Metric | Type |
|---|---|
k8s.pod.cpu.time | Sum (cumulative) |
k8s.pod.memory.working_set | Gauge |
k8s.pod.memory.rss | Gauge |
k8s.pod.memory.usage | Gauge |
k8s.pod.filesystem.usage | Gauge |
k8s.pod.network.io | Sum (attr direction={receive,transmit}) |
Flipping to true ALSO emits per-container equivalents
(k8s.container.cpu.time, k8s.container.memory.*,
k8s.container.filesystem.usage). Enable when:
- You're on KIND / EKS / GKE / any kubelet whose cAdvisor emits per-container rows (OrbStack does NOT — see limitations below).
- The Explorer UI has container-level drill-down (landing post v0.3.4).
Keeping it off for v0.3.4 matches parity across kubelets at launch.
Known limitations
OrbStack — no per-pod network metrics.
OrbStack's cAdvisor build emits network counters only at the node-interface
cgroup level (container_network_{receive,transmit}_bytes_total with
pod="", interface in cni0, eth0, br-*, .orbholder, .orbmirror*).
Per-pod network rows are absent. CPU, memory, and filesystem metrics ARE
available per-pod on OrbStack. Real kubelets (KIND, EKS, GKE, k3s, microk8s
with the standard kubelet build) expose per-pod network.
OrbStack — no per-container metrics.
OrbStack's cAdvisor emits container="" on every per-pod row. Setting
agent.cadvisor.emitContainerMetrics=true has no effect on OrbStack (no
per-container source data to rename). On KIND / EKS / real kubelets the
flag works as documented.
OrbStack — no per-pod filesystem.
OrbStack's container_fs_usage_bytes rows are keyed by host device
(/Users/.../OrbStack, /dev/vdb1, etc.) with pod="" — the scrape
exposes node-level volume usage, not per-pod filesystem usage. These
rows are dropped by filter/cadvisor_drop_nopod since they carry no
pod association. CPU, memory, and filesystem-via-hostmetrics remain
available at the node level. Real kubelets expose per-pod filesystem.
Dual-pipeline row count on KIND/EKS.
When both kubeletstats and cAdvisor produce data, ClickHouse receives ~2x
rows per pod. ScopeName disambiguates. At the 50-pod scale this is
~1.7M rows/day — negligible. Dedup happens in the query layer; we don't
filter at ingestion.
Cluster-scoped metrics (IW-226, chart 0.8.0+)
A separate single-replica Deployment runs k8sclusterreceiver and emits
cluster-scoped metrics by watching the K8s API server. Default: DISABLED.
agent:
clusterStats:
enabled: true # off by default
collectionInterval: 30s
distribution: kubernetes # or "openshift"
metrics: {} # override receiver defaults
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 200m
memory: 192Mi
Metrics emitted (inexhaustive):
| Metric | Feeds |
|---|---|
k8s.pod.phase | Explorer "Pods running" tile |
k8s.container.restarts | Explorer "Restart count" tile |
k8s.deployment.desired / .available | Deployment drift widgets |
k8s.node.condition_ready | Node health status |
k8s.hpa.* | HPA scaling dashboards |
The Deployment uses a separate ClusterRole (*-cluster-stats) — it reads
the full set of workload objects the receiver converts (deployments,
statefulsets, daemonsets, jobs, cronjobs, replicasets, hpa) but drops the
node/kubelet verbs that only the DaemonSet needs. Single-replica is
required; N replicas would emit duplicate cluster-scoped series.
Values reference
Common toggles beyond cAdvisor and cluster-stats:
agent:
image:
repository: eyriehq/agent
tag: "v0.4.0"
pullPolicy: IfNotPresent
clusterName: "" # REQUIRED — sets iw.environment
token: "" # REQUIRED — matches collector.authToken
collectorEndpoint: "eyriehq-collector:4317"
logs:
containerRuntime: "cri" # "cri" | "docker-json" | "auto"
hostMetricsInterval: 60s
kubeletStats:
collectionInterval: 30s
processMetrics: true # requires hostPID + SYS_PTRACE
tolerateAll: false # true to run on control-plane nodes
excludeAnnotation: "eyriehq.io/monitor"
Upgrading
See CHANGELOG for the full release history.
Deploy eyriehq-agent with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has eyriehq-agent on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charteyriehq-agent is pinned at v0.10.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply