fetep / pencil

Graphite dashboard system
http://fetep.github.com/pencil/
Other
155 stars 14 forks source link

no hosts in dashboard #23

Closed eperdeme closed 11 years ago

eperdeme commented 11 years ago

Hello,

No matter what I do I can not get Pencil to find hosts in the dashboard. It does however know about graph data.

The dashboard shows 2 hosts of RX and TX which are not the hosts, but the metric data.

I am using the latest rewrite version and the config is as follows;

pencil.yaml :metric_format: "%h.%m" #%m metric, %c cluster, %h host

svrs1.yml


title: Bastion01X overview graphs:

network.graph

-- mode: ruby --

title 'network traffic'

field :network_in, :alias => "bits in", :color => 'green', :scale => 8, :data => "interface-eth0.if_octets.rx"

field :network_out, :alias => "bits out", :color => 'blue', :scale => 8, :data => "interface-eth0.if_octets.tx"

http://localhost/metrics/expand/?leavesOnly=1&query=bastion0*.interface-eth0.if_octets.rx

{"results": ["bastion01a_mail_X_net_uk.interface-eth0.if_octets.rx", "bastion01b_mail_X_net_uk.interface-eth0.if_octets.rx", "bastion01c_mail_X_net_uk.interface-eth0.if_octets.rx", "bastion01d_mail_X_net_uk.interface-eth0.if_octets.rx"]}

whd commented 11 years ago

Try 7756429 of the rewrite branch. I think that should fix it.

eperdeme commented 11 years ago

Initial testing shows an immediate fix to the issue.

I have not tried extensively but its found all my dissociated hosts and associated hosts so think its working great.

Will try a bit more testing and if all good will close the ticket :)

eperdeme commented 11 years ago

Works great. Really enjoying the graphs I can produce with very little code :)