summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorVladimir Kobal <vlad@prokk.net>2019-12-24 13:00:02 +0200
committerGitHub <noreply@github.com>2019-12-24 13:00:02 +0200
commit6aac1b76aea6e92b37e20349041c4370d9fc045b (patch)
tree5da798a1382f01017898f2ee18b1195013b9474d /backends
parent51c8239bed1e75988295c4a74100383b59f41608 (diff)
Fix a warning in prometheus remote write backend (#7609)
* Change deprecated method to a new one * Change the minimum required version of protobuf
Diffstat (limited to 'backends')
-rw-r--r--backends/prometheus/remote_write/remote_write.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/prometheus/remote_write/remote_write.cc b/backends/prometheus/remote_write/remote_write.cc
index 91d4305ba7..aacfb10cf4 100644
--- a/backends/prometheus/remote_write/remote_write.cc
+++ b/backends/prometheus/remote_write/remote_write.cc
@@ -98,7 +98,7 @@ void add_metric(const char *name, const char *chart, const char *family, const c
}
size_t get_write_request_size(){
- size_t size = (size_t)snappy::MaxCompressedLength(write_request->ByteSize());
+ size_t size = (size_t)snappy::MaxCompressedLength(write_request->ByteSizeLong());
return (size < INT_MAX)?size:0;
}