diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-09-22 21:47:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 21:47:57 +0300 |
commit | 56ddaaf4243b4c8c4f3cf9968bf92a742eddb9a6 (patch) | |
tree | 4746a004164c3f4bb413c36264da63946d9e9908 | |
parent | cb6cc6ed216c56d0756e4b803b3633f5952324a3 (diff) | |
parent | 33ad691446e212f0cdd31ccf10a24e2e69d9f938 (diff) |
Merge pull request #3992 from ktsaou/graphite-host-tags
push host tags for graphite;
-rw-r--r-- | src/backends.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backends.c b/src/backends.c index 51314f8fe8..1800d35147 100644 --- a/src/backends.c +++ b/src/backends.c @@ -186,11 +186,13 @@ static inline int format_dimension_collected_graphite_plaintext( buffer_sprintf( b - , "%s.%s.%s.%s " COLLECTED_NUMBER_FORMAT " %llu\n" + , "%s.%s.%s.%s%s%s " COLLECTED_NUMBER_FORMAT " %llu\n" , prefix , hostname , chart_name , dimension_name + , (host->tags)?";":"" + , (host->tags)?host->tags:"" , rd->last_collected_value , (unsigned long long)rd->last_collected_time.tv_sec ); @@ -223,11 +225,13 @@ static inline int format_dimension_stored_graphite_plaintext( buffer_sprintf( b - , "%s.%s.%s.%s " CALCULATED_NUMBER_FORMAT " %llu\n" + , "%s.%s.%s.%s%s%s " CALCULATED_NUMBER_FORMAT " %llu\n" , prefix , hostname , chart_name , dimension_name + , (host->tags)?";":"" + , (host->tags)?host->tags:"" , value , (unsigned long long) last_t ); |