aboutsummaryrefslogtreecommitdiff
path: root/collector/textfile_test.go
diff options
context:
space:
mode:
authorJulius Volz <julius.volz@gmail.com>2018-02-28 01:43:38 +0700
committerBen Kochie <superq@gmail.com>2018-02-27 19:43:38 +0100
commit864a6ee93578f22843d276d008d83a2c82af5f1d (patch)
tree257c0aef9147c1eebd98d59ba5c54530593d6aa4 /collector/textfile_test.go
parentc504c7e2649aec533678cc83d65230f4237a0c04 (diff)
downloadprometheus_node_collector-864a6ee93578f22843d276d008d83a2c82af5f1d.tar.bz2
prometheus_node_collector-864a6ee93578f22843d276d008d83a2c82af5f1d.tar.xz
prometheus_node_collector-864a6ee93578f22843d276d008d83a2c82af5f1d.zip
Treat custom textfile metric timestamps as errors (#769)
This is clearer behavior and users will notice and fix their textfiles faster than if we just output a warning.
Diffstat (limited to 'collector/textfile_test.go')
-rw-r--r--collector/textfile_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/collector/textfile_test.go b/collector/textfile_test.go
index 47e1832..fb1a700 100644
--- a/collector/textfile_test.go
+++ b/collector/textfile_test.go
@@ -63,6 +63,10 @@ func TestTextfileCollector(t *testing.T) {
63 out: "fixtures/textfile/nonexistent_path.out", 63 out: "fixtures/textfile/nonexistent_path.out",
64 }, 64 },
65 { 65 {
66 path: "fixtures/textfile/client_side_timestamp",
67 out: "fixtures/textfile/client_side_timestamp.out",
68 },
69 {
66 path: "fixtures/textfile/different_metric_types", 70 path: "fixtures/textfile/different_metric_types",
67 out: "fixtures/textfile/different_metric_types.out", 71 out: "fixtures/textfile/different_metric_types.out",
68 }, 72 },