ui: heatmap visualization for histogram buckets#12995
ui: heatmap visualization for histogram buckets#12995Loori-R wants to merge 26 commits intoprometheus:mainfrom Loori-R:flotjs-support-heatmap
Conversation
|
Generally, I like this. @juliusv has to look at the actual code as I'm mostly React-illiterate. Here just high level thoughts, comments, and questions:
|
|
@beorn7, Thank you for your insights and suggestions.
|
OK, that's certainly good enough for a first iteration. Maybe, to avoid confusions, you could show the line graph by default in any case, and then offer a button "render as heatmap" in case there is only one histogram (or, to get one step closer to treating multiple histograms properly, offer a button for each histogram shown). |
|
@beorn7, I've updated the PR to address your comments, making the following changes:
The PR description and screenshots have also been updated to reflect these changes. |
|
Thank you very much. I'll have a detailed look ASAP (and I'll need @juliusv anyway for the React parts). In the meantime, could you do the DCO signing to make the CI pass? |
|
The UI part is not supposed to work yet, right? Since the histogram button doesn't do anything ( |
Signed-off-by: Yury Moladau <yurymolodov@gmail.com>
Signed-off-by: Jonathan Ellithorpe <jelli@databricks.com>
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Linas Medziunas <linas.medziunas@gmail.com>
Signed-off-by: Marc Tuduri <marctc@protonmail.com>
Signed-off-by: Marc Tuduri <marctc@protonmail.com>
Signed-off-by: Marc Tuduri <marctc@protonmail.com>
Signed-off-by: Arthur Silva Sens <arthur.sens@coralogix.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
By now, we know better what the plan is. Signed-off-by: beorn7 <beorn@grafana.com>
In proto3, this doesn't change anything. However, since the `CreatedTimestamp` field is generated as a pointer (`*types.Timestamp`), we are still able to detect the unset state. (This is in contrast to the `timestamp_ms` field, which is a plain int64, for which we cannot enforce generation as a pointer, see comment updated in the previous commit for future actions.) Signed-off-by: beorn7 <beorn@grafana.com>
…13010) Broken by #12738. We have to update both global variables (as GlobalConfig is not a pointer here). DefaultConfig is used when no global: section is provided, whereas DefaultGlobalConfig is used when it's provided and for individual scrape configs. Reported on #prometheus-dev (thanks to @beorn7): https://cloud-native.slack.com/archives/C01AUBA4PFE/p1697733267205649 Tested manually, it would be nice to add test at some point (quick fix for now). Signed-off-by: bwplotka <bwplotka@gmail.com>
Signed-off-by: Rens Groothuijsen <l.groothuijsen@alumni.maastrichtuniversity.nl>
* Bump prometheus common to v0.44.0 Signed-off-by: Yannick te Kulve <738464+YannickTeKulve@users.noreply.github.com> * Fix golang_protobuf_extensions sum Signed-off-by: Yannick te Kulve <738464+YannickTeKulve@users.noreply.github.com> * Remove unused deps Signed-off-by: Yannick te Kulve <738464+YannickTeKulve@users.noreply.github.com> --------- Signed-off-by: Yannick te Kulve <738464+YannickTeKulve@users.noreply.github.com>
Signed-off-by: Gilles De Mey <gilles.de.mey@gmail.com>
Signed-off-by: Danny Kopping <danny.kopping@grafana.com>
When reading the WAL this method is called with buffers from a pool, on multiple goroutines. Pre-allocating sufficient size avoids slow growth and many reallocations in `append`. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
…ion_limit_seconds (#12986) * Expose --storage.tsdb.retention.time in a metric Signed-off-by: Marcio Caroso <msscaroso@gmail.com> --------- Signed-off-by: Marcio Caroso <msscaroso@gmail.com>
* A registerer is passed to the scrape Manager, and all scrape metrics register with it. * For now the registry which we pass to the scrape Manager is still the global one. Signed-off-by: Paulin Todev <paulin.todev@gmail.com>
… string passed in) Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
I think this is a hold-over from when Go was less careful about separating architectures. Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
|
@beorn7, sorry, when I tried to do the DCO signing, I got a bit confused and something went wrong) I created a pull request #13096, there is a DCO signature there. @juliusv, the entire UI should work, when you press the button, the graph is drawn as a histogram. You probably saw the function in the tests (other old functions were done similarly there). |
|
This pull request has been closed as a new pull request #13096 has been created. |
|
@Loori-R Oh yeah, I misread that from the test file, but I also tried out the PR locally first and the button didn't do anything. It shows up, but it's disabled and not clickable. |
|
@juliusv, The button is active when the results have bucket data for a single series, example query: For testing, I used the playground: https://prometheus.demo.do.prometheus.io |
Description:
This Pull Request implements a heatmap visualization feature for histogram buckets on the Prometheus
/graphpage. It utilizes aflotjsplugin for rendering, aligning its functionality with that observed in the VictoriaMetrics UI (vmui), as discussed in issue: VictoriaMetrics#3384.Key Changes:
flotjsPlugin Integration: Facilitates the rendering of heatmaps.Future Enhancements:
The PR has been moved to #13096