We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9905dca + 3df7ac7 commit 34886afCopy full SHA for 34886af
Dockerfile
@@ -8,8 +8,6 @@ RUN make deps build
8
9
FROM gcr.io/distroless/base
10
COPY --from=builder /go/src/github.com/raffis/mongodb-query-exporter/mongodb-query-exporter /bin/mongodb-query-exporter
11
-
12
-ENV MDBEXPORTER_CONFIG /etc/mongodb-query-exporter/config.yaml
13
USER 1000:1000
14
15
EXPOSE 9412
cmd/main.go
@@ -157,6 +157,7 @@ func initConfig() {
157
}
158
159
// System wide config
160
+ viper.AddConfigPath("/etc/mongodb-query-exporter")
161
viper.AddConfigPath("/etc/mongodb_query_exporter")
162
163
0 commit comments