mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -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 {
|
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,
|
||||||
|
|
Loading…
Reference in a new issue