discovery: Rename file SD mtime metric (#3723)

- "timestamp" -> "mtime" to be in line with node exporter and clearer.
- add unit suffix
This commit is contained in:
Julius Volz 2018-01-22 14:02:24 +01:00 committed by GitHub
parent 84e462ae24
commit 09e460a647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ func (t *TimestampCollector) removeDiscoverer(disc *Discovery) {
func NewTimestampCollector() *TimestampCollector { func NewTimestampCollector() *TimestampCollector {
return &TimestampCollector{ return &TimestampCollector{
Description: prometheus.NewDesc( 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.", "Timestamp (mtime) of files read by FileSD. Timestamp is set at read time.",
[]string{"filename"}, []string{"filename"},
nil, nil,