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

Add show stats on server #1470

Closed
pauldix opened this issue Jan 31, 2015 · 9 comments
Closed

Add show stats on server #1470

pauldix opened this issue Jan 31, 2015 · 9 comments
Assignees
Milestone

Comments

@pauldix
Copy link
Member

pauldix commented Jan 31, 2015

Users should be able to show statistics for a given server through the query:

show stats on serverA
-- or
show stats on "129.23.56.2"

The stats should include queries per second, writes per second, values per second (different than writes if they're batching), last heartbeat time, free hd space on the data drive, number of hearbeat failures in the last 5 minutes, and replication delay (last time it received either a heartbeat or write)

I'm sure we'll think of other things to add over time.

@otoolep
Copy link
Contributor

otoolep commented Jan 31, 2015

Let me take on stuff like this.

@otoolep otoolep self-assigned this Feb 2, 2015
@otoolep
Copy link
Contributor

otoolep commented Feb 2, 2015

A design we should consider is that the InfluxDB system has a special database e.g. "internal" into which stats about the Servers themselves are written. This would allow the system to provide historical information about itself. This is a common design in other systems.

@pauldix
Copy link
Member Author

pauldix commented Feb 2, 2015

Yeah, at some point we may want to enable that. For now I just wanted an in
memory structure that could track some of these things.

On Mon, Feb 2, 2015 at 2:10 AM, otoolep notifications@github.com wrote:

A design we should consider is that the InfluxDB system has a special
database e.g. "internal" into which stats about the Servers themselves are
written. This would allow the system to provide historical information
about itself. This is a common design in other systems.


Reply to this email directly or view it on GitHub
#1470 (comment).

@schmurfy
Copy link
Contributor

I like the in-memory approach !
If a self write feature is added later please make it optional, if not used it just become useless work the server is doing.

This was referenced Mar 10, 2015
@beckettsean beckettsean modified the milestones: 0.9.0, Next Release Mar 14, 2015
@toddboom toddboom modified the milestones: Next Point Release, 0.9.0 Mar 14, 2015
@pauldix pauldix modified the milestones: Next Point Release, 0.9.0 Mar 20, 2015
@pauldix
Copy link
Member Author

pauldix commented Mar 20, 2015

Now you can show stats by hitting a specific server. This is lower priority since there are other ways to do it so pushing it out past 0.9.0

@beckettsean beckettsean modified the milestones: Next Point Release, Longer term Aug 6, 2015
@otoolep
Copy link
Contributor

otoolep commented Sep 5, 2015

This is done, the framework is there, just need to add more and more stats as we need them.

The story for accessing across the cluster, from any node, is to query the _internal database. We could expand the syntax in the future to support querying other nodes, but that will require dealing with authentication.

@otoolep otoolep closed this as completed Sep 5, 2015
@pauldix
Copy link
Member Author

pauldix commented Sep 5, 2015

@otoolep what's the retention policy of the _internal database? I'm thinking we should make it 7 days by default and make it configurable.

@otoolep
Copy link
Contributor

otoolep commented Sep 5, 2015

Good idea -- I mean to add that monitor config, but it slipped out of my mind. I'll take care of it.

@otoolep
Copy link
Contributor

otoolep commented Sep 5, 2015

#4015

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

5 participants