Metrics

The Prometheus metrics of the server and the simulator, with type, labels and help text.

This page is generated from the metric definitions in the Go sources by make docs-gen. Do not edit it by hand: make docs-check fails when it differs from the code.

Endpoints

  • myriarchd serves /metrics in the Prometheus text format. The address is server.metricsListenAddr (default ":9090"). When it is empty, /metrics is served on server.listenAddr, which is what myriarchd dev does. telemetry.metrics switches the endpoint off. The endpoint has no authentication: restrict access to it with a network policy or a firewall. The Helm chart exposes it as the service port metrics (9090) and creates a ServiceMonitor when serviceMonitor.enabled is true.
  • myriarch-sim serves its metrics on the address of the flag --metrics-listen; without the flag it serves none.
  • myriarch-updater and myrctl serve no metrics.
  • The gauges myriarch_agents and myriarch_config_sync are computed by the leader replica only. Aggregate them across replicas with max().

myriarchd

MetricTypeLabelsPackageDescription
myriarch_agentsgaugestatus, kindopampAgents by status and kind (refreshed by the leader).
myriarch_artifact_downloads_totalcounterresultartifactArtifact downloads served to agents by result.
myriarch_assignment_duration_secondshistogramresultassignmentDuration of fleet matching and rendering for one agent. Buckets: 0.001, 0.0025, 0.005, 0.01, 0.02, 0.05, 0.1, 0.25, 1. Series: _bucket, _sum, _count.
myriarch_auth_agent_requests_totalcounterresultauthnAgent (OpAMP) authentication results.
myriarch_auth_logins_totalcountermethod, resultauthnUser login attempts by method and result.
myriarch_auth_token_failures_totalcounterreasonauthnRejected API token authentications by reason.
myriarch_config_syncgaugestateopampAgents by config sync state (refreshed by the leader).
myriarch_eventbus_dropped_totalcountersubscribereventbus/pgbusEvents dropped because a local subscriber was too slow.
myriarch_gitops_last_success_timestamp_secondsgaugegitopsUnix time of the last successfully applied or confirmed GitOps sync.
myriarch_gitops_sync_totalcounterresultgitopsGitOps sync attempts by result (applied, unchanged, invalid, error).
myriarch_housekeeping_deleted_totalcounterjobhousekeepingRows deleted by housekeeping jobs.
myriarch_housekeeping_failures_totalcounterjobhousekeepingFailed housekeeping job runs.
myriarch_housekeeping_last_run_timestamp_secondsgaugehousekeepingUnix time of the last completed housekeeping run.
myriarch_http_request_duration_secondshistogramroute, methodhttpserverHTTP request duration by route and method. Buckets: 0.001, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10, 30. Series: _bucket, _sum, _count.
myriarch_http_requests_totalcounterroute, method, codehttpserverHTTP requests by route, method and status code.
myriarch_install_bundle_downloads_totalcounterresultfleetapiRequests for an installer bundle by result (ok, unauthorized, rate_limited, not_found, preparing, failed, unavailable, disabled, error).
myriarch_install_plans_totalcounterresultfleetapiRequests for an install plan by result (ok, a refusal reason such as fleet_mismatch or preparing, unauthorized, rate_limited, invalid_request).
myriarch_job_cycle_duration_secondshistogramjobmetricsDuration of one cycle of a leader job (rollout tick/plan, GitOps sync, release poll, artifact prefetch). Buckets: 0.05, 0.25, 1, 5, 15, 30, 60, 120, 300, 600. Series: _bucket, _sum, _count.
myriarch_leadergaugeleader/pglock1 while this replica holds the leader lock, else 0.
myriarch_notifications_totalcounterchannel, resultnotify/channelsNotification deliveries by channel and result.
myriarch_opamp_config_reoffers_totalcounterreasonopampRemote configs offered to an agent again although it reported the hash, by reason (stale_applying: the agent kept reporting APPLYING after a reconnect or restart).
myriarch_opamp_connect_rejected_totalcounterreasonopampRejected OpAMP connection attempts by reason.
myriarch_opamp_connectionsgaugetransportopampLive OpAMP connections on this replica by transport.
myriarch_opamp_dropped_totalcounterqueueopampInternal queue overflows (events, bus publications, pushes).
myriarch_opamp_message_duration_secondshistogramopampProcessing time of one AgentToServer message. Buckets: 0.0005, 0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1, 2.5, 5, 10. Series: _bucket, _sum, _count.
myriarch_opamp_messages_totalcounterdirectionopampOpAMP messages by direction (in: from agents, out: replies and pushes).
myriarch_opamp_push_errors_totalcounteropampFailed or timed out pushes to agents.
myriarch_release_latest_infogaugedistribution, versionreleaseLatest stable upstream release per distribution (value 1).
myriarch_release_polls_totalcounterresultreleaseRelease tracker polls by result (ok, not_modified, error, rate_limited).
myriarch_rollout_targetsgaugestatusrolloutRollout targets of active rollouts by status.
myriarch_rollout_transitions_totalcountertorolloutRollout status transitions by new status.
myriarch_rollouts_activegaugekindrolloutNumber of active (non-terminal) rollouts by kind.

myriarch-sim

MetricTypeLabelsPackageDescription
myriarch_sim_agents_connectedgaugesimSimulated OpAMP connections currently established (collectors and updaters).
myriarch_sim_agents_totalgaugesimNumber of simulated collectors.
myriarch_sim_configs_applied_totalcountersimRemote configs applied (APPLIED).
myriarch_sim_configs_failed_totalcountersimRemote configs that failed (FAILED).
myriarch_sim_connect_failures_totalcountersimFailed connection attempts.
myriarch_sim_restarts_totalcountersimSimulated collector restarts (command, upgrade, failed update).
myriarch_sim_updaters_connectedgaugesimSimulated myriarch-updater connections currently established.
myriarch_sim_updates_totalcounterresultsimSimulated package installs by result (installed|failed).

Runtime metrics

The registries of myriarchd and myriarch-sim also contain the Go runtime collector (go_*) and the process collector (process_*) of the Prometheus Go client. They are not listed here.