@cryptotaxi247 / netdata-1 / commits / 93affcf88

prometheus: help lines at the top merged to one line

Costa Tsaousis (ktsaou) committed Jul 9, 2017 at 21:40 UTC 93affcf8881cdab5da5e0d9a453aa1f58e3a1349
1 file changed +3 -3
src/backend_prometheus.c
+3 -3
@@ -197,7 +197,7 @@ static inline time_t prometheus_preparation(RRDHOST *host, BUFFER *wb, uint32_t
197 else
198 mode = "unknown";
199
200 - buffer_sprintf(wb, "# HELP netdata \"%s\" to %sprometheus \"%s\", source \"%s\", last seen %lu %s\n"
200 + buffer_sprintf(wb, "# HELP netdata \"%s\" to %sprometheus \"%s\", source \"%s\", last seen %lu %s"
201 , host->hostname
202 , (first_seen)?"FIRST SEEN ":""
203 , server
@@ -207,9 +207,9 @@ static inline time_t prometheus_preparation(RRDHOST *host, BUFFER *wb, uint32_t
207 );
208
209 if(show_range)
210 - buffer_sprintf(wb, "# HELP netdata values for time range %lu to %lu\n", (unsigned long)after, (unsigned long)now);
210 + buffer_sprintf(wb, ", values for time range %lu to %lu", (unsigned long)after, (unsigned long)now);
211
212 - buffer_strcat(wb, "\n");
212 + buffer_strcat(wb, "\n\n");
213 }
214
215 return after;