-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Răzvan Burlăcioiu
committed
Mar 6, 2022
1 parent
912dc9d
commit 7632362
Showing
5 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,12 @@ services: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | ||
- /etc/machine-id:/etc/machine-id:ro | ||
- /var/lib/dbus/machine-id:/var/lib/dbus/machine-id:ro | ||
mongodb-exporter: | ||
build: ./monitoring/mongodb_exporter/ | ||
command: ./mongodb_exporter-linux-amd64 -logtostderr -mongodb.uri mongodb://root:[email protected]:27017 -groups.enabled 'asserts,durability,background_flusshing,connections,extra_info,global_lock,index_counters,network,op_counters,op_counters_repl,memory,locks,metrics' | ||
restart: always | ||
ports: | ||
- 9001:9001 | ||
loki: | ||
image: grafana/loki:2.4.1 | ||
ports: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM alpine | ||
|
||
#RUN apk update && apk add wget && \ | ||
# wget https://github.com/dcu/mongodb_exporter/releases/download/v1.0.0/mongodb_exporter-linux-amd64 | ||
|
||
# this is a big no no :) - don't commit binaries in git. | ||
ADD mongodb_exporter-linux-amd64 / | ||
|
||
RUN chmod 755 mongodb_exporter-linux-amd64 | ||
|
||
EXPOSE 9001 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters