-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comunication between exporters in cluster #34
Comments
To collect local metrics(CPU, Memory, Uptime and others) that are not available via Gluster CLI commands. Enable Firewall only for within the cluster communication. I think we can enhance the exporter by disabling the local metrics collection. Let me check the possibility and update here. |
I see it now in the metrics what you mean the metrics These metrics are of the glusterd process on the server, so the exporter should return this only for that server. You will scrape those metrics for others on other exporters. If i have 3 node cluster:
Then in this setup these are 3x3 time series in prometheus in our case. If I do any alert for this then all nodes will be firing and even if the other exporter will be down this metric will disappear from others. To be honest I have never seen behavior like this in any other exporter. Also this should be mentioned README or help message to ease debugging, for people with strict networking policies in place. |
Communication between the nodes added to support exporting all Gluster metrics from one node of the cluster. Gluster CLIs are not very friendly if run from all nodes because of locking and other issues. To export cluster level metrics (Metrics coming from Gluster CLI), leader selection is required if we want to avoid exporting Cluster metrics from all the nodes. That was the issue I faced when worked on https://github.com/gluster/gluster-prometheus project. Configure any one node in Prometheus server to get all the metrics. To get metrics even if the node goes down, you can use virtual IP or nginx based load balancer setup. I will add the details in README. |
Ah, I misunderstood the first time. The locking argument and reduce calls over CLI make sense. When docs are updated, then this is ready to close. Thank you. |
Hi,
why do exporters need to see each other in the cluster? If we had a firewall in place just for our prometheus instance the exporter did not return any metrics and hang, but when I enabled LAN for peer connection exporters started responding.
The text was updated successfully, but these errors were encountered: