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

nsqadmin: add message rate #143

Merged
merged 2 commits into from
Feb 15, 2013
Merged

nsqadmin: add message rate #143

merged 2 commits into from
Feb 15, 2013

Conversation

jphines
Copy link
Contributor

@jphines jphines commented Jan 30, 2013

Use Graphite to process a per second rate of messages processed by NSQ for the last minute

{{if $g.Enabled}}<td><a href="/topic/{{.TopicName}}"><img width="120" height="20" src="{{.Sparkline $g "depth"}}"></a></td>{{end}}
{{if $g.Enabled}}<td><a href="/topic/{{.TopicName}}"><img width="120" height="20" src="{{.Sparkline $g "message_count"}}"></a></td>{{end}}
<td><a href="/topic/{{.TopicName}}">{{.TopicName}}</a></td>
{{if $g.Enabled}} <!-- Rate -->
<script>{{.Rate $g "message_count"}}</script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of inline script tags, we can add a function to the js.html template that will locate any elements that need their rate information retrieved (and kick off the ajax request)

@jphines
Copy link
Contributor Author

jphines commented Feb 15, 2013

go fmt, rebased & squashed

@mreiferson
Copy link
Member

👍 LGTM

mreiferson added a commit that referenced this pull request Feb 15, 2013
nsqadmin: add message rate
@mreiferson mreiferson merged commit 62ec352 into nsqio:master Feb 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants