VictoriaMetrics / VictoriaMetrics/VictoriaLogs
victorialogs: gapfill when querying log range stats
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 194
- Avg merge
- 6d 6h
- Merged PRs (30d)
- 22
Description
Is your feature request related to a problem? Please describe
Output from VictoriaLogs could be improved for Grafana time series panel when values are missing in logs for some time ranges.
Describe the solution you'd like
We are using Grafana datasource which queries log range stats for our time series panels.
It would be great if VictoriaLogs could gapfill the output with null or zero values for ranges with no values.
Describe alternatives you've considered
I didn't find any way to do this using LogsQL.
I tried using Disconnect values feature in Grafana time series panel but it not ideal because it required a static value and breaks when panel interval is bigger than the threshold for disconnecting values.
Additional information
I imagine something like Timescale does with time_bucket_gapfill (docs).
Is this something planned for the future? Would you be open to review a PR if I give this a try?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the VictoriaLogs documentation for querying log range stats and compare the requested behavior with TimescaleDB's time_bucket_gapfill. Locate the log range stats implementation and its tests, then define and verify how empty ranges should be represented as null or zero values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100