hi team, we are currently evaluating signoz for ou...
# signoz-cloud
v
hi team, we are currently evaluating signoz for our entire data pipeline that is expected to handle around 250k requests per second. But, on trying to setup up a basic counter in my application, we were getting 2x the value. If there are 10 requests, when we plot it we get 20 as the count. To isolate the cause, I wrote a separate java program which just increments a counter from 0 to 10, with a sleep of 1 second in between. Now, in the query builder UI the counter name shows up, but on plotting it there is no data. But if I plot the same data using promql, it shows up. Can someone please help why this is happening? I am attaching the sample code sample below, and I am using the agent,
Copy code
LongCounter counter = GlobalOpenTelemetry.getMeter("test_meter").counterBuilder("test_counter").build();
int counter = 0;
while (counter <= 10) {
  counter.add(1);
  counter++;
  Thread.sleep(1000);
}
s
Use OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta if you require the counter to work for short interval such as above example where it starts and end within just 10 seconds