Skip to content

Metrics and alerts

For a quick look without any of that, Settings → Status (also the Live sign above the matrix) says whether Goliash itself works and its data is fresh: agents and targets reporting, upstream releases checked, private registries accepting their credentials, SBOMs, OSV and CISA’s catalog current, notifications going out, and whether a newer Goliash is out. Each line names what is wrong and links to where to fix it. The same is GET /api/v1/status for an uptime monitor (alert when state is bad) and the status tool for AI assistants.

Goliash fits next to the observability stack you already have in three ways:

  1. Metrics. /metrics serves what runs where, drift, delivery speed, image hygiene and Goliash’s own health in the Prometheus text format. Prometheus, Grafana Agent/Alloy, VictoriaMetrics and the OpenTelemetry Collector (for SigNoz, Grafana Cloud, Datadog…) all read it.
  2. Dashboards. Ready-made dashboards read those metrics:
    • Grafana dashboard: Prometheus scrape settings, the dashboard, deploy markers on your graphs and the Helm chart’s ServiceMonitor, PrometheusRule and dashboard ConfigMap.
    • SigNoz dashboard: the OpenTelemetry Collector receiver and the dashboard.
  3. Deploys on your graphs. A deploy shows up as a marker on the graphs of the services it may have changed, from the metrics alone or from a Grafana notification channel; see Grafana dashboard.

The quickest way is Settings → Integrations in Goliash: it creates a viewer token with one click and shows the scrape settings for Prometheus and the OpenTelemetry Collector, filled in for your server, next to download links for both dashboards.

/metrics needs an API token with the viewer role. Create one under Settings → Workspace settings → API tokens, or:

Terminal window
goliash token create -name metrics -role viewer

Save the glsh_api_… value in a file the scraper can read, e.g. /etc/prometheus/goliash-token, and send it as a bearer token; the Grafana and SigNoz pages show the scrape settings.

Ready-made Prometheus rules are in deploy/prometheus/goliash-alerts.yaml (also a download on the Integrations page): add the file to rule_files in prometheus.yml. They cover a missing scrape, the background work not running exactly once, stale agents, a growing snapshot queue, failing notifications drift open for more than two weeks, production on a release past its end of life, production behind an available release for 90+ days, an image that grew by a quarter (and 20 MB) in a day, an image over its size budget, a base with a newer build for over a month, an image that lost its signature, SBOM or provenance, an exploited vulnerability running past CISA’s due date, a GitOps application out of sync or unhealthy for an hour, and merged pull requests that have not deployed in two hours. The same queries work in Grafana alerting and SigNoz alerts:

Alert Query
Behind upstream in prod sum(goliash_outdated{environment="prod"}) > 0
Drift open for a week max(goliash_drift_days) > 7
Production past end of life goliash_end_of_life{state="passed"} > 0
Production patched slower than a month max(goliash_exposure_median_days) > 30
A team patches slower than two weeks goliash_team_patch_median_days > 14
A team has upgrades past their deadline goliash_team_past_deadline > 0
Agent stopped reporting goliash_agents{status="stale"} > 0
Goliash falls behind goliash_snapshots_pending > 20 for 10 minutes
Notifications failing goliash_notifications_failing > 0
Background work not running exactly once sum(goliash_leader) != 1
Exploited vulnerability past CISA’s due date goliash_vulnerabilities_past_due > 0
Rollout stuck or service down `goliash_rollout_problem{kind=~“down
GitOps application out of sync or unhealthy goliash_gitops_trouble == 1 for an hour
Merged pull requests not deployed goliash_pull_requests{state="undeployed"} > 0 for 2 hours
Image grew a lot goliash_image_size_bytes > 1.25 * (goliash_image_size_bytes offset 1d)
Image over its size budget goliash_image_size_bytes > on (service) group_left max by (service) (goliash_image_size_budget_bytes)
Base outdated for a month goliash_image_base_behind_days > 30
Image lost its signature, SBOM or provenance goliash_image_evidence == 0 and (goliash_image_evidence offset 1d) == 1

Alerts about versions themselves (new releases, drift, removed services) are better sent by Goliash directly; see Notifications.

On Kubernetes, the Helm chart can create a ServiceMonitor and a PrometheusRule with these alerts; see Grafana dashboard.

Metric Labels Value
goliash_deployed_version_info service, environment, version running replicas
goliash_outdated service, environment 1 when behind upstream by the tracked jump
goliash_drift_days service, environment, kind (and app) how long a drift has been open, in days
goliash_deploys service, environment versions that arrived in the last 30 days
goliash_rollbacks service, environment changes back to an older version in the last 30 days
goliash_lead_time_seconds service, from, to median time a version took to the next environment, last 30 days
goliash_license_packages class, kind (app, os) packages in running images per license class, from their SBOMs
goliash_vulnerabilities environment, severity, exploited known vulnerabilities in running images, from SBOMs and OSV
goliash_vulnerabilities_past_due environment exploited vulnerabilities running past CISA’s due date for fixing them
goliash_exploited_vulnerability_days environment days the longest-running exploited vulnerability has run
goliash_rollout_issues kind (down, stuck, short) workloads whose replicas are not where they should be
goliash_rollout_problem service, environment, target, workload, kind, running, desired 1 for each such workload, while it lasts
goliash_gitops_applications tool (argocd, flux, git) GitOps applications deploying workloads
goliash_gitops_trouble service, environment, target, app, tool, trouble 1 for each application out of sync, degraded or missing, while it lasts
goliash_gitops_sync_blocked service, environment, target, app, tool 1 for each application an Argo CD sync window holds or Flux has suspended
goliash_gitops_manual_sync service, environment, target, app, tool 1 for each Argo CD application without an automated sync policy
goliash_pull_requests state (open, merged, closed, undeployed) pull requests Goliash opened in the last 30 days; undeployed: merged, version not running yet
goliash_pull_request_to_running_seconds median time from opening a pull request to its version running, last 30 days
goliash_merge_to_running_seconds median time from merging it to its version running, last 30 days
goliash_image_hygiene_findings kind images with a moving tag, a tag pushed again, an untrusted registry, an outdated base, a size over budget or no digest
goliash_image_size_bytes service, environment what pulling the service’s image downloads, in bytes (compressed layers and config)
goliash_image_layers service, environment layers in that image
goliash_image_size_budget_bytes service the size budget from the service’s version policy (max_size_mb), in bytes
goliash_image_base_behind_days service, environment days the image’s base tag has had a newer build than the one the image is built on (0: current)
goliash_image_evidence service, environment, kind (signature, sbom, provenance) 1 when every image running there has it, 0 when one lacks it
goliash_exposure_days service, environment (and app) days a service has run behind an available release
goliash_exposure_median_days, goliash_exposure_p90_days environment (production) median and 90th percentile of those days in production
goliash_team_behind, goliash_team_behind_median_days owner, environment (production) a team’s production services behind a newer release, and the median days they have been
goliash_team_past_deadline owner, environment a team’s upgrades past their remediation deadline
goliash_team_patch_median_days owner, environment median days a team’s upgrades deployed in the last 90 days had run behind (its time to patch)
goliash_exposures environment, over_days (30, 90) production services behind an available release that long
goliash_end_of_life environment, state (passed, soon) production services on a release cycle past or near its end of life
goliash_accepted_risk environment production exposures quieted by an acknowledgement
goliash_build_info version 1
goliash_leader 1 on the server that runs the background work
goliash_snapshots_pending snapshots received and not processed yet
goliash_notifications_queued, goliash_notifications_failing notifications not sent yet, and those that failed at least once
goliash_agents status agents online, stale, never connected or revoked
goliash_agent_info agent, version, cloud, account, region, zone, instance_type, os, arch each agent and where it runs (value 1)
goliash_target_info target, platform, environment, agent, cloud, account, region, zone, instance_type, os, arch each target and where it runs (value 1)