Add mistakenly removed lines
@@ -19,6 +19,7 @@ import (
"github.com/pkg/errors"
"github.com/semi-technologies/weaviate/adapters/repos/db/vector/hnsw/distancer"
"github.com/semi-technologies/weaviate/entities/schema"
+ "github.com/semi-technologies/weaviate/usecases/monitoring"
"github.com/sirupsen/logrus"
)
@@ -33,6 +34,11 @@ type Config struct {
VectorForIDThunk VectorForID
Logger logrus.FieldLogger
DistanceProvider distancer.Provider
+ PrometheusMetrics *monitoring.PrometheusMetrics
+
+ // metadata for monitoring
+ ShardName string
+ ClassName string
}
func (c Config) Validate() error {
