func (dbStatList *DatabaseStatList) Export(ch chan<- prometheus.Metric) {
	for _, member := range dbStatList.Members {
		ls := prometheus.Labels{"db": member.Name}
		indexSize.With(ls).Set(float64(member.IndexSize))
		dataSize.With(ls).Set(float64(member.DataSize))
		storageSize.With(ls).Set(float64(member.StorageSize))
		collectionsTotal.With(ls).Set(float64(member.Collections))
		indexesTotal.With(ls).Set(float64(member.Indexes))
		objectsTotal.With(ls).Set(float64(member.Objects))
	}
	indexSize.Collect(ch)
	dataSize.Collect(ch)
	storageSize.Collect(ch)
	collectionsTotal.Collect(ch)
	indexesTotal.Collect(ch)
	objectsTotal.Collect(ch)
}
// Export exports database stats to prometheus
Export exports database stats to prometheus
// Export exports database stats to prometheus
func (dbStatList *DatabaseStatList) Export(ch chan<- prometheus.Metric) {
	for _, member := range dbStatList.Members {
		ls := prometheus.Labels{"db": member.Name}
		indexSize.With(ls).Set(float64(member.IndexSize))
		dataSize.With(ls).Set(float64(member.DataSize))
		storageSize.With(ls).Set(float64(member.StorageSize))
		collectionsTotal.With(ls).Set(float64(member.Collections))
		indexesTotal.With(ls).Set(float64(member.Indexes))
		objectsTotal.With(ls).Set(float64(member.Objects))
	}
	indexSize.Collect(ch)
	dataSize.Collect(ch)
	storageSize.Collect(ch)
	collectionsTotal.Collect(ch)
	indexesTotal.Collect(ch)
	objectsTotal.Collect(ch)
}
func ( dbStatList * DatabaseStatList ) Export ( ch chan <- prometheus . Metric ) { for _ , member := range dbStatList . Members { ls := prometheus . Labels { " " : member . Name } indexSize . With ( ls ) . Set ( float64 ( member . IndexSize ) ) dataSize . With ( ls ) . Set ( float64 ( member . DataSize ) ) storageSize . With ( ls ) . Set ( float64 ( member . StorageSize ) ) collectionsTotal . With ( ls ) . Set ( float64 ( member . Collections ) ) indexesTotal . With ( ls ) . Set ( float64 ( member . Indexes ) ) objectsTotal . With ( ls ) . Set ( float64 ( member . Objects ) ) } indexSize . Collect ( ch ) dataSize . Collect ( ch ) storageSize . Collect ( ch ) collectionsTotal . Collect ( ch ) indexesTotal . Collect ( ch ) objectsTotal . Collect ( ch ) }
Export exports database stats to prometheus
Export exports database stats to prometheus