SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
18.3k stars 1.17k forks source link

Incorrect histogram count and timerange shown in the histogram chart #5450

Open ankitnayan opened 2 months ago

ankitnayan commented 2 months ago

The timestamps in the chart probably does not follow the aggregation interval chosen automatically by the time range

Logs explorer Screenshot 2024-07-08 at 4 59 59 PM

vikrantgupta25 commented 2 months ago

if we filter by last 30 minutes the list query has data but the graph query returns empty data. CC :- @nityanandagohain

and if we filter by the above said time range as well the graph api returns only data at 2 data points ( 10,1) which is shown above.

aggregation interval chosen automatically by the time range :- this i need to check further if we rely on API response for the aggregations ? because what we pass in the payload might not be actually what has been used in the query. but will check and fill more details here

nityanandagohain commented 2 months ago

@vikrantgupta25 this has reveled a new bug which was hiding. If you open the network tab and see.

Two queries are fired, one for graph and one for list data.

The timerange passed for list API call sends a time range of 1 day when 30 mins timerange is selected.

souravpurkait360 commented 1 month ago

The timerange passed for list API call sends a time range of 1 day when 30 mins timerange is selected. I couldn't repro this one. Maybe this issue fixed already? Though the only issue I saw was that in logs explorer screen we are not retaining the start - end date time range. That also might be intentional because I saw the code changes by @vikrantgupta25 that we are particularly excluding the logs explorer for pushing the selected date time in the urlQuery.

Screenshot 2024-07-27 at 11 12 46 PM