You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The discovery.dockerswarm component fails to refresh targets for just the "service" role with minimal configuration. The same discovery.dockerswarm component (as shown in config file below) is able to export targets successfully for the roles tasks and nodes on the same host/docker-daemon.
I have several stack/services running on this single node docker swarm manager. The error from the logs makes me think there is some variable "default" is missing when calling the downstream prometheus swarm service discovery under the hood.
Steps to reproduce
Initialize a single node docker swarm manager on Ubuntu 20.04 LTS
Write configuration file to /home/automation/applications/alloy/dev/config/config.alloy
Deploy Alloy container as a swarm service using this docker-compose.yaml file with the docker stack deploy command. Since alloy is a service we should be able to get a target for itself, although you may want to deploy other random stacks/services on the node to ensure other service targets are available.
tomdaley92
changed the title
discovery.dockerswarm "service" role Unable to refresh target groups
discovery.dockerswarm "service" role unable to refresh target groups
Oct 31, 2024
tomdaley92
changed the title
discovery.dockerswarm "service" role unable to refresh target groups
discovery.dockerswarm unable to refresh target groups for "services" role
Oct 31, 2024
What's wrong?
The
discovery.dockerswarm
component fails to refresh targets for just the "service" role with minimal configuration. The samediscovery.dockerswarm
component (as shown in config file below) is able to export targets successfully for the rolestasks
andnodes
on the same host/docker-daemon.I have several stack/services running on this single node docker swarm manager. The error from the logs makes me think there is some variable "default" is missing when calling the downstream
prometheus swarm service discovery
under the hood.Steps to reproduce
/home/automation/applications/alloy/dev/config/config.alloy
docker stack deploy
command. Since alloy is a service we should be able to get a target for itself, although you may want to deploy other random stacks/services on the node to ensure other service targets are available.System information
Ubuntu 20.04.6 LTS, Docker Engine 25.0.4
Software version
grafana/alloy:v1.4.3
Configuration
Logs
The text was updated successfully, but these errors were encountered: