feat: garage metrics coop-cloud/garage#8 #22
Reference in New Issue
Block a user
No description provided.
Delete Branch "garage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.