VictoriaMetrics/app/vmalert/tpl/footer.qtpl.go
Dmytro Kozlov b2294d1cf1
vmctl/vm: added datapoints collection bar (#2486)
add progress bars to the VM importer

The new progress bars supposed to display the processing speed per each
VM importer worker. This info should help to identify if there is a bottleneck
on the VM side during the import process, without waiting for its finish.
The new progress bars can be disabled by passing `vm-disable-progress-bar` flag.

Plotting multiple progress bars requires using experimental progress bar pool
from github.com/cheggaaa/pb/v3. Switch to progress bar pool required changes
in all import modes.

The openTSDB mode wasn't changed due to its implementation, which implies individual progress
bars per each series. Because of this, using the pool wasn't possible.

Signed-off-by: dmitryk-dk <kozlovdmitriyy@gmail.com>

Co-authored-by: hagen1778 <roman@victoriametrics.com>
2022-05-02 09:06:34 +02:00

86 lines
2.3 KiB
Go

// Code generated by qtc from "footer.qtpl". DO NOT EDIT.
// See https://github.com/valyala/quicktemplate for details.
//line tpl/footer.qtpl:1
package tpl
//line tpl/footer.qtpl:1
import (
qtio422016 "io"
qt422016 "github.com/valyala/quicktemplate"
)
//line tpl/footer.qtpl:1
var (
_ = qtio422016.Copy
_ = qt422016.AcquireByteBuffer
)
//line tpl/footer.qtpl:1
func StreamFooter(qw422016 *qt422016.Writer) {
//line tpl/footer.qtpl:1
qw422016.N().S(`
</main>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript">
function expandAll() {
$('.collapse').addClass('show');
}
function collapseAll() {
$('.collapse').removeClass('show');
}
$(document).ready(function() {
// prevent collapse logic on link click
$(".group-heading a").click(function(e) {
e.stopPropagation();
});
$(".group-heading").click(function(e) {
let target = $(this).attr('data-bs-target');
let el = $('#'+target);
new bootstrap.Collapse(el, {
toggle: true
});
});
var hash = window.location.hash.substr(1);
let group = $('#'+hash);
if (group.length > 0) {
group.click();
}
});
</script>
</body>
</html>
`)
//line tpl/footer.qtpl:36
}
//line tpl/footer.qtpl:36
func WriteFooter(qq422016 qtio422016.Writer) {
//line tpl/footer.qtpl:36
qw422016 := qt422016.AcquireWriter(qq422016)
//line tpl/footer.qtpl:36
StreamFooter(qw422016)
//line tpl/footer.qtpl:36
qt422016.ReleaseWriter(qw422016)
//line tpl/footer.qtpl:36
}
//line tpl/footer.qtpl:36
func Footer() string {
//line tpl/footer.qtpl:36
qb422016 := qt422016.AcquireByteBuffer()
//line tpl/footer.qtpl:36
WriteFooter(qb422016)
//line tpl/footer.qtpl:36
qs422016 := string(qb422016.B)
//line tpl/footer.qtpl:36
qt422016.ReleaseByteBuffer(qb422016)
//line tpl/footer.qtpl:36
return qs422016
//line tpl/footer.qtpl:36
}