Skip to content

Commit 8e88115

Browse files
committed
promtorture: done
1 parent 3276df4 commit 8e88115

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

testcases/promtorture/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ notes.md
1111
promtorture-tmp-*
1212
promtorture-metrics-*
1313
.gitignore
14+
metrics/

testcases/promtorture/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ promtool
44
notes.md
55
promtorture-metrics-*
66
promtorture-tmp-*
7+
metrics/

testcases/promtorture/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,14 @@ scripts/promcmd promtool query instant http://localhost:9090 'up{job="monitoring
102102
```
103103

104104
Other tips in `scripts/promcmd` comments.
105+
106+
# Notes
107+
108+
The apparent inability to force Prometheus to eagerly checkpoint its HEAD or to
109+
force a compaction is a bit of a pain; we can't easily analyse behaviour with
110+
querying data back from TSDB without waiting a couple of hours. We can force a
111+
snapshot, but that doesn't actually flush the HEAD.
112+
113+
# See also
114+
115+
* [prometheus docs on storage](https://github.com/juliusv/prometheus-docs/blob/master/content/docs/operating/storage.md)

testcases/promtorture/scripts/grab-metrics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ set -e -u -o pipefail -x
1212

1313
source scripts/config
1414

15-
tmpdir="promtorture-metrics-$(date -Isec)"
16-
mkdir "$tmpdir"
15+
tmpdir="metrics/promtorture-metrics-$(date -Isec)"
16+
mkdir -p "$tmpdir"
1717

1818
echo 1>&2 "Dumping metrics to $tmpdir"
1919

0 commit comments

Comments
 (0)