From 9b671ce68fc7f46cad8a4c258536d217290d6d19 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Mon, 11 Dec 2023 16:06:28 +0100 Subject: [PATCH] Add comment about precision requirement for cc-metric-store --- sinks/httpSink.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sinks/httpSink.md b/sinks/httpSink.md index ee1de5e..7d77ddf 100644 --- a/sinks/httpSink.md +++ b/sinks/httpSink.md @@ -35,4 +35,8 @@ The `http` sink uses POST requests to a HTTP server to submit the metrics in the - `idle_connection_timeout`: Timeout for idle connections (default '120s'). Should be larger than the measurement interval to keep the connection open - `flush_delay`: Batch all writes arriving in during this duration (default '1s', batching can be disabled by setting it to 0) - `batch_size`: Maximal batch size. If `batch_size` is reached before the end of `flush_delay`, the metrics are sent without further delay -- `precision`: Precision of the timestamp. Valid values are 's', 'ms', 'us' and 'ns'. (default is 'ns') \ No newline at end of file +- `precision`: Precision of the timestamp. Valid values are 's', 'ms', 'us' and 'ns'. (default is 'ns') + +### Using HttpSink for communication with cc-metric-store + +The cc-metric-store only accepts metrics with a timestamp precision in seconds, so it is required to set `"precision": "s"`. \ No newline at end of file