mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
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:
parent
84e462ae24
commit
09e460a647
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue