mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-16 00:41:24 +01:00
25e54d2b50
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>
103 lines
2.5 KiB
Go
103 lines
2.5 KiB
Go
// Code generated by qtc from "header.qtpl". DO NOT EDIT.
|
|
// See https://github.com/valyala/quicktemplate for details.
|
|
|
|
//line tpl/header.qtpl:1
|
|
package tpl
|
|
|
|
//line tpl/header.qtpl:1
|
|
import (
|
|
qtio422016 "io"
|
|
|
|
qt422016 "github.com/valyala/quicktemplate"
|
|
)
|
|
|
|
//line tpl/header.qtpl:1
|
|
var (
|
|
_ = qtio422016.Copy
|
|
_ = qt422016.AcquireByteBuffer
|
|
)
|
|
|
|
//line tpl/header.qtpl:1
|
|
func StreamHeader(qw422016 *qt422016.Writer, title string, pages []NavItem) {
|
|
//line tpl/header.qtpl:1
|
|
qw422016.N().S(`
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>vmalert`)
|
|
//line tpl/header.qtpl:5
|
|
if title != "" {
|
|
//line tpl/header.qtpl:5
|
|
qw422016.N().S(` - `)
|
|
//line tpl/header.qtpl:5
|
|
qw422016.E().S(title)
|
|
//line tpl/header.qtpl:5
|
|
}
|
|
//line tpl/header.qtpl:5
|
|
qw422016.N().S(`</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
|
|
<style>
|
|
body{
|
|
min-height: 75rem;
|
|
padding-top: 4.5rem;
|
|
}
|
|
.group-heading {
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin-top: 5px;
|
|
position: relative;
|
|
}
|
|
.group-heading .anchor {
|
|
position:absolute;
|
|
top:-60px;
|
|
}
|
|
.group-heading span {
|
|
float: right;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
.group-heading:hover {
|
|
background-color: #f8f9fa!important;
|
|
}
|
|
.table .error-cell{
|
|
word-break: break-word;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
`)
|
|
//line tpl/header.qtpl:36
|
|
StreamPrintNavItems(qw422016, title, pages)
|
|
//line tpl/header.qtpl:36
|
|
qw422016.N().S(`
|
|
<main class="px-2">
|
|
`)
|
|
//line tpl/header.qtpl:38
|
|
}
|
|
|
|
//line tpl/header.qtpl:38
|
|
func WriteHeader(qq422016 qtio422016.Writer, title string, pages []NavItem) {
|
|
//line tpl/header.qtpl:38
|
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
|
//line tpl/header.qtpl:38
|
|
StreamHeader(qw422016, title, pages)
|
|
//line tpl/header.qtpl:38
|
|
qt422016.ReleaseWriter(qw422016)
|
|
//line tpl/header.qtpl:38
|
|
}
|
|
|
|
//line tpl/header.qtpl:38
|
|
func Header(title string, pages []NavItem) string {
|
|
//line tpl/header.qtpl:38
|
|
qb422016 := qt422016.AcquireByteBuffer()
|
|
//line tpl/header.qtpl:38
|
|
WriteHeader(qb422016, title, pages)
|
|
//line tpl/header.qtpl:38
|
|
qs422016 := string(qb422016.B)
|
|
//line tpl/header.qtpl:38
|
|
qt422016.ReleaseByteBuffer(qb422016)
|
|
//line tpl/header.qtpl:38
|
|
return qs422016
|
|
//line tpl/header.qtpl:38
|
|
}
|