Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Monitoring Swarm with multiple masters #115

Open
monsoft opened this issue Aug 21, 2019 · 0 comments
Open

Monitoring Swarm with multiple masters #115

monsoft opened this issue Aug 21, 2019 · 0 comments

Comments

@monsoft
Copy link

monsoft commented Aug 21, 2019

I have simple 3 nodes swarm cluster where each node is master and worker:

        "oxmqs5lze5dk5m6ni0me4msnu *   dock1               Ready               Active              Leader              19.03.1",
        "cwyprb7cxtepai541h58no4as     dock2               Ready               Active              Reachable           19.03.1",
        "o3b2ttd0wxbyfh1e1yovj8rxw     dock3               Ready               Active              Reachable           19.03.1"

So because in current docker-compose.yml file placement for Grafana, Prometheus, Caddy and AlertManager is setup to be deployed on master, I changed it to be deployed only to dock1 using placement

placement:
  constraints:
    - node.hostname == dock1

Unfortunately it didn't work and most of these services went to dock3.
Next try I applied label "Monitoring=true" to dock1 and used placement :

placement:
  constraints:
    - node.labels.Monitoring == true 

but this same situation :(

When I did this same on Swarm node with 1 master only, all placement constraints works correctly.
Does anyone have this same situation like I have ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant