It seems it is possible to configure a bearer token for the discovery with docker labels
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:
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=3903" # Garage metrics port
- "prometheus.io/path=/metrics" # optional, /metrics is the default
- "prometheus.io/auth=basic" # optional, uses the basic_auth secret
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=bearer should 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.
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:
```
labels:
- "prometheus.io/scrape=true"
- "prometheus.io/port=3903" # Garage metrics port
- "prometheus.io/path=/metrics" # optional, /metrics is the default
- "prometheus.io/auth=basic" # optional, uses the basic_auth secret
```
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=bearer` should 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.
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