Skip to content
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

Sending system metrics to logstash without starting gmetad.conf daemons #274

Open
berrytchaks opened this issue Feb 1, 2016 · 1 comment

Comments

@berrytchaks
Copy link

Hi All,
I was able to send ganglia metrics to logstash when I configure and start both gmond.conf and gmetad.conf daemons. Now what I want is to configure the gmond.conf daemon ONLY to send metrics to logstash. That is I'm looking for a mean to send ganglia metrics to logstash when gmetad.conf is not started.
In the first, I had configured gmetad.conf and gmond.conf as follows:
In gmetad.conf
case_sensitive_hostnames 0
data_source "my cluster" 60 localhost
In gmond.conf
cluster {
name = "my cluster"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
#mcast_join = 239.2.11.71
host = address_of_logstash_server
port = 8649
ttl = 1
}
tcp_accept_channel {
port = 8649
}
I then restart all the daemons and configured logstash appropriately. By so doing, ganglia metrics where been collected by logstash.

Next I wanted to send my ganglia metrics without starting gmetad.conf. That is directly sending metrics to logstash without passing through gmetad.conf. I have given a try as in the configuration below.
In gmond.conf
cluster {
name = "unspecified"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
udp_send_channel {
#mcast_join = 239.2.11.71
host = address_of_logstash_server
port = 8649
ttl = 1
}
tcp_accept_channel {
host = address_of_logstash_server
port = 8649
}
After stopping the gmetad.conf daemons I had nothing been displayed by logstash. Where am I going wrong.
Any helps will be welcoming.
Thanks.

@berrytchaks berrytchaks changed the title Sendin Sending system metrics to logstash without starting gmetad.conf daemons Feb 1, 2016
@berrytchaks
Copy link
Author

Thanks anyway. But nevertheless I manage to get it work.
The trick was to remove the host attribute in the tag tcp_accept_channel and change the cluster name to "unspecified".
ie
tcp_accept_channel {
port = 8649
}
and
cluster {
name = "unspecified"
owner = "unspecified"
latlong = "unspecified"
url = "unspecified"
}
Hope this helps somebody in the future!!!

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

No branches or pull requests

1 participant