{{define "title"}}Analytics · git-pkgs proxy{{end}} {{define "head"}} {{end}} {{define "content"}}

Analytics

Accumulated download volume and cache composition across {{.Totals.Ecosystems}} ecosystem{{if ne .Totals.Ecosystems 1}}s{{end}}.

{{if .StatsStale}}
Figures may be out of date. The database query is failing, so the download and cache numbers below are the last snapshot that could be read{{if .StatsAge}}, from {{.StatsAge}}{{end}}. Check the proxy logs.
{{end}}

Download size by ecosystem

Bytes served from cache

{{if .Donut.HasSlices}}
{{range .Donut.Slices}} {{.Label}}: {{.Value}} ({{.SharePct}}%) {{end}}
{{.Donut.CenterValue}}
{{.Donut.CenterLabel}}
{{else if .StatsFailed}}
Download figures are unavailable — the database query failed. Check the proxy logs.
{{else}}
Nothing has been served from cache yet
{{end}}
Downloads
{{.Totals.Downloads}}
Cache size
{{.Totals.CacheSize}}
Cached artifacts
{{.Totals.CachedArtifacts}}
Packages
{{.Totals.Packages}}
Versions
{{.Totals.Versions}}
Ecosystems in use
{{.Totals.ActiveEcosystems}} / {{.Totals.Ecosystems}}
{{if .Totals.Amplification}}

The cache has served {{.Totals.Amplification}} the bytes it currently stores.

{{end}}

Per-ecosystem breakdown

Every ecosystem, including any folded into the ring's "Other" slice

{{if .Ecosystems}}
{{range .Ecosystems}} {{end}}
Ecosystem Downloaded Share Downloads Cache size Artifacts Avg size Packages Versions
{{template "ecosystem_badge" .Ecosystem}} {{.Downloaded}} {{.SharePct}}% {{.Downloads}} {{.CacheSize}} {{.Artifacts}} {{.AvgArtifactSize}} {{.Packages}} {{.Versions}}
{{else if .StatsFailed}}
The per-ecosystem query failed, so this table is unavailable. Check the proxy logs.
{{else}}
No packages cached yet
{{end}}

Metadata cache

Cached registry metadata, kept apart from artifacts: the download, cache size and artifact figures above do not include it. {{if not .Metadata.Enabled}}Metadata caching is off; set cache_metadata to enable it.{{end}}

{{if .Metadata.Rows}}
Cached documents
{{.Metadata.Entries}}
Metadata size
{{.Metadata.Size}}
{{range .Metadata.Rows}} {{end}}
Ecosystem Size Share Documents
{{template "ecosystem_badge" .Ecosystem}} {{.Size}} {{.SharePct}}% {{.Entries}}
{{else if .Metadata.Failed}}
The metadata cache query failed, so these figures are unavailable. Check the proxy logs.
{{else}}
No metadata cached yet
{{end}}
{{if .EnrichmentStats.HasVulns}} {{template "security_overview" .EnrichmentStats}} {{end}} {{if .Runtime.Available}} {{template "runtime_metrics" .Runtime}} {{end}}

Every figure on this page is also exported for Prometheus at /metrics. This page shows current state only — nothing here is a time series. For history, trends and alerting, scrape /metrics and use the Grafana dashboard shipped in deploy/grafana/.

{{end}} {{define "scripts"}} {{end}}