diff options
author | Julius Volz <julius.volz@gmail.com> | 2017-12-24 11:54:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-24 11:54:33 +0100 |
commit | f536857ac6fe8f4a22598fe048244aed78154a99 (patch) | |
tree | 4a102977479c310f2e54c8c92612b94760a8091e /collector/textfile.go | |
parent | 1f2458f42c958bfc353ffd0e04466cb44241c4ea (diff) | |
download | prometheus_node_collector-f536857ac6fe8f4a22598fe048244aed78154a99.tar.bz2 prometheus_node_collector-f536857ac6fe8f4a22598fe048244aed78154a99.tar.xz prometheus_node_collector-f536857ac6fe8f4a22598fe048244aed78154a99.zip |
Fix e2e tests after textfile custom timestamp removal (#768)
Diffstat (limited to 'collector/textfile.go')
-rw-r--r-- | collector/textfile.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/collector/textfile.go b/collector/textfile.go index 728dbc8..7922000 100644 --- a/collector/textfile.go +++ b/collector/textfile.go | |||
@@ -77,6 +77,10 @@ func convertMetricFamily(metricFamily *dto.MetricFamily, ch chan<- prometheus.Me | |||
77 | } | 77 | } |
78 | 78 | ||
79 | for _, metric := range metricFamily.Metric { | 79 | for _, metric := range metricFamily.Metric { |
80 | if metric.TimestampMs != nil { | ||
81 | log.Warnf("Ignoring unsupported custom timestamp on textfile collector metric %v", metric) | ||
82 | } | ||
83 | |||
80 | labels := metric.GetLabel() | 84 | labels := metric.GetLabel() |
81 | var names []string | 85 | var names []string |
82 | var values []string | 86 | var values []string |