Skip to content

Commit

Permalink
Merge pull request #191 from mreiferson/counter_last_time_i_swear_191
Browse files Browse the repository at this point in the history
counter page sigh
  • Loading branch information
jehiah committed Apr 29, 2013
2 parents b5a52f2 + c81f64c commit 273510f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nsqadmin/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ func nodesHandler(w http.ResponseWriter, req *http.Request) {

type counterTarget struct{}

func (c counterTarget) Target() (string, string) {
return "nsq.*.topic.*.channel.*.message_count", "green"
func (c counterTarget) Target(key string) (string, string) {
return fmt.Sprintf("nsq.*.topic.*.channel.*.%s", key), "green"
}

func counterHandler(w http.ResponseWriter, req *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion nsqadmin/templates/counter.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<p class="processed">Messages Processed</p>
<p class="messagerate"></p>
<script type="text/javascript">
var large_graph_url = "{{$g.LargeGraph $target "counter"}}";
var large_graph_url = "{{$g.LargeGraph $targ "message_count"}}";
</script>
{{if $g.Enabled}}<img id="big_graph" height="500" src=""/>{{end}}
</div>
Expand Down

0 comments on commit 273510f

Please sign in to comment.