Improve autotest; fix prometheus node collector

This commit is contained in:
Jérôme Petazzoni
2017-10-31 11:10:39 -07:00
parent 9e5bab1a76
commit 1d5f4330c0
3 changed files with 5 additions and 5 deletions

View File

@@ -164,7 +164,7 @@ while i < len(actions):
print(slide.content.replace(snippet.content, ansi(7)(snippet.content)))
print(hrule())
if interactive:
print("[{}] Shall we execute that snippet above?".format(i))
print("[{}/{}] Shall we execute that snippet above?".format(i, len(actions)))
print("(ENTER to execute, 'c' to continue until next error, N to jump to step #N)")
command = raw_input("> ")
else:

View File

@@ -1006,9 +1006,9 @@ class: prom-manual
--mount type=bind,source=/sys,target=/host/sys \
--mount type=bind,source=/,target=/rootfs \
prom/node-exporter \
-collector.procfs /host/proc \
-collector.sysfs /host/proc \
-collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
--path.procfs /host/proc \
--path.sysfs /host/proc \
--collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
```
]

View File

@@ -10,7 +10,7 @@ services:
node:
image: prom/node-exporter
command: -collector.procfs /host/proc -collector.sysfs /host/proc -collector.filesystem.ignored-mount-points "^(sys|proc|dev|host|etc)($$|/)"
command: --path.procfs /host/proc --path.sysfs /host/proc --collector.filesystem.ignored-mount-points "^(sys|proc|dev|host|etc)($$|/)"
deploy:
mode: global
volumes: