feat: garage metrics coop-cloud/garage#8 #22
Closed
fauno
wants to merge 3 commits from
garage into alloy
pull from: garage
merge into: :alloy
:main
:renovate/grafana-alloy-1.x
:renovate/prom-pushgateway-1.x
:renovate/docker-29.x
:renovate/prom-prometheus-3.x
:renovate/grafana-loki-3.x
:renovate/grafana-monorepo
:apdex-alert
:loki-debugging
:monitoring.sutty.abyaya.la
:fix-matrix-template
:renovate/metio-matrix-alertmanager-receiver-2026.x
:loki-improvements
:maintainers
:access-log
:mimir
:smartctl
:scrape-docker-events
:split-image-tags
:map-coopcloud-labels
:improve-dashboards
:optional-disk-metric
:alloy
:ammar/fix-scrape-config
:alloy-updates
:testing
:forgejo
:garage
:configurable-alerts
:restic-exporter
:cleanup-docs
:fix/BackupBotAlerts
:backup-alerts
:backup-dashboard
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
BornDeleuze (Born Deleuze)
Brooke
cas (Cassowary)
coopcloud
dannygroenewegen (Danny Groenewegen)
decentral1se (d1)
fauno (fauno)
jjsfunhouse
kawaiipunk (KawaiiPunk)
knoflook
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1 (p4u1)
renovate-bot (Comrade Renovate Bot)
simon
stevensting (stevensting)
trav (Trav Fryer)
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/monitoring-ng#22
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
since metrics by default are protected by a token, they can't be exported locally like we're discussing at #20
How would I scrape multiple garage instances?
https://grafana.com/docs/alloy/latest/reference/components/discovery/discovery.docker/
It seems it is possible to configure a bearer token for the discovery with docker labels
I was thinking about a label-based approach, see the alloy-updates branch commit
e247677433. Discovering the targets that have to be scraped dynamically based on container labels. I haven't tested this yet.Any container can opt in to being scraped by adding Docker labels:
Alloy then discovers all containers, filters to those with prometheus.io/scrape=true, and scrapes them automatically. I've only added noauth and basic auth, so for Garage,
prometheus.io/auth=bearershould probably be added. Multiple Garage instances on the same host would each be picked up as separate targets by their service name. Alloy just needs to be configured with all needed types of auth and other possible parameters, and then the container labels do the rest. No need to add every app we want to scrape into monitoring-ng.already implemented metrics discovery
Pull request closed