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.
This commit is contained in:
parent
c504c7e264
commit
864a6ee935
5 changed files with 30 additions and 8 deletions
3
collector/fixtures/textfile/client_side_timestamp.out
Normal file
3
collector/fixtures/textfile/client_side_timestamp.out
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# HELP node_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise
|
||||
# TYPE node_textfile_scrape_error gauge
|
||||
node_textfile_scrape_error 1
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
metric_with_custom_timestamp 1 1441205977284
|
||||
normal_metric 2
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
testmetric2_1{foo="bar"} 30 1441205977284
|
||||
testmetric2_2{foo="baz"} 40 1441205977284
|
||||
testmetric2_1{foo="bar"} 30
|
||||
testmetric2_2{foo="baz"} 40
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue