diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-09 00:26:15 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-06-09 00:26:15 +0300 |
commit | 6bd9fe43cf00d9522ca5437f1b13e91e3a718621 (patch) | |
tree | a758ba7305463fec405e5ec66b7c086f89fbefd3 /src/rrd2json.c | |
parent | 928e9b0d813c3288b193d80eec47d70d28f89c24 (diff) |
remove duplicate chart name from chart title when streaming metrics; #2276
Diffstat (limited to 'src/rrd2json.c')
-rw-r--r-- | src/rrd2json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rrd2json.c b/src/rrd2json.c index 23cef0f50b..ec79cb6172 100644 --- a/src/rrd2json.c +++ b/src/rrd2json.c @@ -11,7 +11,7 @@ void rrd_stats_api_v1_chart_with_data(RRDSET *st, BUFFER *wb, size_t *dimensions "\t\t\t\"type\": \"%s\",\n" "\t\t\t\"family\": \"%s\",\n" "\t\t\t\"context\": \"%s\",\n" - "\t\t\t\"title\": \"%s\",\n" + "\t\t\t\"title\": \"%s (%s)\",\n" "\t\t\t\"priority\": %ld,\n" "\t\t\t\"enabled\": %s,\n" "\t\t\t\"units\": \"%s\",\n" @@ -27,7 +27,7 @@ void rrd_stats_api_v1_chart_with_data(RRDSET *st, BUFFER *wb, size_t *dimensions , st->type , st->family , st->context - , st->title + , st->title, st->name , st->priority , rrdset_flag_check(st, RRDSET_FLAG_ENABLED)?"true":"false" , st->units |