On Thu, Apr 4, 2013 at 9:31 AM, Chandra, Ashish
<ashish.chan...@nttdata.com>wrote:

>   Hi All ;
>
>  I have ganglia monitoring system in place for my OpenStack Swift
> environnment . I am intending to report swift metrics using statsd to
> ganglia. I am using 
> "statsd-ganglia-backend<https://github.com/jbuchbinder/statsd-ganglia-backend>"
> for reporting metrics to ganglia .  I have configured statsd config and it
> looks something like this :
>
>   {
>           port:8125,
>           debug:true,
>           backends: [ "./node_modules/statsd-ganglia-backend"],
>           ganglia:{
>               host:"10.2.3.114",
>               port:8649,
>               useHost:"10.2.3.112",
>               group:"statsdtesting"
>                    }
>          }
>
>
>
>  I have also made changes to respective swift confs(proxy-server ,
> container-server , object-server etc .) to also flush metrics to statsd .
> here are the changes :
>
>  log_statsd_host = 10.2.3.112
> log_statsd_port = 8125
> log_statsd_default_sample_rate = 1.0
> log_statsd_sample_rate_factor = 1.0
> log_statsd_metric_prefix = account_server_115
>
>
>  I believe I am able to get all metrics reported to my statsd host(refer
> statsd log messages below),
>
>  4 Apr 06:05:36 - gmetric.sendMetric
> stats_counts_account_server_115.account-replicator.attempts 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_object_server_115.object-updater.errors 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_counts_object_server_115.object-updater.errors 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_container_server_115.container-updater.no_changes 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_counts_container_server_115.container-updater.no_changes 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_container_server_115.container-auditor.passes 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_counts_container_server_115.container-auditor.passes 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_account_server_115.account-reaper.errors 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_counts_account_server_115.account-reaper.errors 0
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-replicator.partition.update.timing_mean_90
> 23.957893678121078
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-replicator.partition.update.timing_upper_90
> 48.9189624786
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-replicator.partition.update.timing_upper
> 315.312147141
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-replicator.partition.update.timing_lower
> 10.2491378784
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-replicator.partition.update.timing_count
> 311
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-auditor.timing_mean_90
> 23.957893678121078
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-auditor.timing_upper_90 48.9189624786
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-auditor.timing_upper 315.312147141
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-auditor.timing_lower 10.2491378784
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_object_server_115.object-auditor.timing_count 311
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_container_server_115.container-replicator.timing_mean_90
> 23.957893678121078
> 4 Apr 06:05:36 - gmetric.sendMetric
> stats_timers_container_server_115.container-replicator.timing_upper_90
> 48.9189624786
>
>
>  The packets are received at Ganglia server ; but i don't find it in
> ganglia XML .
> (Checked using "telnet 10.2.3.114 8649" ).
>
>  *Received packets at Ganglia Server :*
>
>          Received Meta Packet:
>
> { hostname: '10.2.3.112',
>   name:
> 'stats_timers_container_server_115.container-replicator.timing_lower',
>   spoof: false,
>   type: 'int32',
>   units: 'count',
>   slope: 'both',
>   tmax: 60,
>   dmax: 0,
>   group: 'statsdtesting' }
>
>  Received Data Packet:
> { hostname: '10.2.3.112',
>   name:
> 'stats_timers_container_server_115.container-replicator.timing_lower',
>   spoof: false,
>   value: '9.47093963623' }
>
>
>  Can somebody please guide me where I might be doing wrong ?
>
>  Thanks and Regards
>
>  Ashish Chandra
>
>
Try presenting spoof as an additional option, with the format
"IP:HOSTNAME". That might do the trick for you.

Jeff
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to