-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Track stats for number of series, measurements #5816
Conversation
691625b
to
a29c88c
Compare
} | ||
|
||
// NewDatabaseIndex returns a new initialized DatabaseIndex. | ||
func NewDatabaseIndex() *DatabaseIndex { | ||
func NewDatabaseIndex(databaseName string) *DatabaseIndex { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is NewDatabaseIndex
, name
will suffice for the argument.
just a couple of small questions. |
Per database: track number of series and measurements Per measurement: track number of series
a29c88c
to
fb83374
Compare
@e-dard variable renamed as requested; other question is a non-issue, I believe. Good to merge on green? |
@mark-rushakoff needs another review from Core. |
@mark-rushakoff can you add these stats (number of series, measurements) to the |
👍 |
Track stats for number of series, measurements
@panda87 any stats (i.e. anything tracked via |
This is awesome, thanks |
@mark-rushakoff, I see that you use the trick Sorry to ask this here. |
@adrianlzt a good place to ask questions like that is https://community.influxdata.com |
Sorry to revive this merge, but was it fully committed? I'm interested in getting numSeries totals for each measurement in each database, which from the last example in the original posting looks like it should be possible?
But _internal.."measurement" doesn't seem to exist on my system (Influx 1.2.2) and I don't see any other measurement in _internal that would have series counts at a db/measurement level. Any info would be greatly appreciated. Thanks! |
@Codelica the measurement name that holds the
|
@e-dard thanks. I did find that, but doesn't include a measurement tag, so it's only possible to get the total series count per db. I looked to see if it might be some config option, but didn't see anything. I'm trying to get down to the per measurement level to monitor serveral measurements within our db's that have the potential to grow quickly. It just seems like the per measurement capabilities described by @mark-rushakoff in the original post here got trimmed somewhere along the way? Thanks again. |
@jwilder Thanks.. that clears up my mystery. 👍 Wish it could have been left as an option for those of us without a large number of measurements, but I understand. One related question and I'm out of everyone's hair. :) The only way I've been able to track this is with an external script executing "SHOW SERIES FROM XXX" and then processing the output to a count. (which actually seems to randomly kill the Influx daemon on large counts) Am I overlooking any other way to do this ? (where a count is returned rather than 150k+ series to count) Thanks again. |
@Codelica While not ideal, you can run |
Thanks for all the info... 👍 |
Track stats for number of series, measurements
Per database: track number of series and measurements
Per measurement: track number of series
Now you can run queries like: