Merge pull request #7302 from influxdata/er-field-stat-1.0

Emit fieldsCreated stat in shard measurement
pull/7280/head
Edd Robinson 2016-09-13 16:59:08 +01:00 committed by GitHub
commit b2aee0a2d7
2 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,7 @@
- [#7271](https://github.com/influxdata/influxdb/issues/7271): Fixing typo within example configuration file. Thanks @andyfeller!
- [#7270](https://github.com/influxdata/influxdb/issues/7270): Implement time math for lazy time literals.
- [#7272](https://github.com/influxdata/influxdb/issues/7272): Report cmdline and memstats in /debug/vars.
- [#7299](https://github.com/influxdata/influxdb/ssues/7299): Ensure fieldsCreated stat available in shard measurement.
## v1.0.0 [2016-09-07]

View File

@ -191,6 +191,7 @@ func (s *Shard) Statistics(tags map[string]string) []models.Statistic {
statWriteReqOK: atomic.LoadInt64(&s.stats.WriteReqOK),
statWriteReqErr: atomic.LoadInt64(&s.stats.WriteReqErr),
statSeriesCreate: seriesN,
statFieldsCreate: atomic.LoadInt64(&s.stats.FieldsCreated),
statWritePointsErr: atomic.LoadInt64(&s.stats.WritePointsErr),
statWritePointsOK: atomic.LoadInt64(&s.stats.WritePointsOK),
statWriteBytes: atomic.LoadInt64(&s.stats.BytesWritten),