From 09e460a64725dcc4b93551f2cd7722cfdbb6682c Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Mon, 22 Jan 2018 14:02:24 +0100 Subject: [PATCH] discovery: Rename file SD mtime metric (#3723) - "timestamp" -> "mtime" to be in line with node exporter and clearer. - add unit suffix --- discovery/file/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discovery/file/file.go b/discovery/file/file.go index 5de5814afe..5e10c1a549 100644 --- a/discovery/file/file.go +++ b/discovery/file/file.go @@ -127,7 +127,7 @@ func (t *TimestampCollector) removeDiscoverer(disc *Discovery) { func NewTimestampCollector() *TimestampCollector { return &TimestampCollector{ Description: prometheus.NewDesc( - "prometheus_sd_file_timestamp", + "prometheus_sd_file_mtime_seconds", "Timestamp (mtime) of files read by FileSD. Timestamp is set at read time.", []string{"filename"}, nil,