mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01:00
app/vmalert: run make quicktemplate-gen
from the root directory after the commit f6dcfbcdd6
This commit is contained in:
parent
d289ecded1
commit
381e2de59c
@ -1,135 +1,135 @@
|
|||||||
// Code generated by qtc from "alertmanager_request.qtpl". DO NOT EDIT.
|
// Code generated by qtc from "alertmanager_request.qtpl". DO NOT EDIT.
|
||||||
// See https://github.com/valyala/quicktemplate for details.
|
// See https://github.com/valyala/quicktemplate for details.
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:1
|
//line app/vmalert/notifier/alertmanager_request.qtpl:1
|
||||||
package notifier
|
package notifier
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:1
|
//line app/vmalert/notifier/alertmanager_request.qtpl:1
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/VictoriaMetrics/VictoriaMetrics/lib/promrelabel"
|
"github.com/VictoriaMetrics/VictoriaMetrics/lib/promrelabel"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:8
|
//line app/vmalert/notifier/alertmanager_request.qtpl:8
|
||||||
import (
|
import (
|
||||||
qtio422016 "io"
|
qtio422016 "io"
|
||||||
|
|
||||||
qt422016 "github.com/valyala/quicktemplate"
|
qt422016 "github.com/valyala/quicktemplate"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:8
|
//line app/vmalert/notifier/alertmanager_request.qtpl:8
|
||||||
var (
|
var (
|
||||||
_ = qtio422016.Copy
|
_ = qtio422016.Copy
|
||||||
_ = qt422016.AcquireByteBuffer
|
_ = qt422016.AcquireByteBuffer
|
||||||
)
|
)
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:8
|
//line app/vmalert/notifier/alertmanager_request.qtpl:8
|
||||||
func streamamRequest(qw422016 *qt422016.Writer, alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) {
|
func streamamRequest(qw422016 *qt422016.Writer, alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) {
|
||||||
//line notifier/alertmanager_request.qtpl:8
|
//line app/vmalert/notifier/alertmanager_request.qtpl:8
|
||||||
qw422016.N().S(`[`)
|
qw422016.N().S(`[`)
|
||||||
//line notifier/alertmanager_request.qtpl:10
|
//line app/vmalert/notifier/alertmanager_request.qtpl:10
|
||||||
for i, alert := range alerts {
|
for i, alert := range alerts {
|
||||||
//line notifier/alertmanager_request.qtpl:10
|
//line app/vmalert/notifier/alertmanager_request.qtpl:10
|
||||||
qw422016.N().S(`{"startsAt":`)
|
qw422016.N().S(`{"startsAt":`)
|
||||||
//line notifier/alertmanager_request.qtpl:12
|
//line app/vmalert/notifier/alertmanager_request.qtpl:12
|
||||||
qw422016.N().Q(alert.Start.Format(time.RFC3339Nano))
|
qw422016.N().Q(alert.Start.Format(time.RFC3339Nano))
|
||||||
//line notifier/alertmanager_request.qtpl:12
|
//line app/vmalert/notifier/alertmanager_request.qtpl:12
|
||||||
qw422016.N().S(`,"generatorURL":`)
|
qw422016.N().S(`,"generatorURL":`)
|
||||||
//line notifier/alertmanager_request.qtpl:13
|
//line app/vmalert/notifier/alertmanager_request.qtpl:13
|
||||||
qw422016.N().Q(generatorURL(alert))
|
qw422016.N().Q(generatorURL(alert))
|
||||||
//line notifier/alertmanager_request.qtpl:13
|
//line app/vmalert/notifier/alertmanager_request.qtpl:13
|
||||||
qw422016.N().S(`,`)
|
qw422016.N().S(`,`)
|
||||||
//line notifier/alertmanager_request.qtpl:14
|
//line app/vmalert/notifier/alertmanager_request.qtpl:14
|
||||||
if !alert.End.IsZero() {
|
if !alert.End.IsZero() {
|
||||||
//line notifier/alertmanager_request.qtpl:14
|
//line app/vmalert/notifier/alertmanager_request.qtpl:14
|
||||||
qw422016.N().S(`"endsAt":`)
|
qw422016.N().S(`"endsAt":`)
|
||||||
//line notifier/alertmanager_request.qtpl:15
|
//line app/vmalert/notifier/alertmanager_request.qtpl:15
|
||||||
qw422016.N().Q(alert.End.Format(time.RFC3339Nano))
|
qw422016.N().Q(alert.End.Format(time.RFC3339Nano))
|
||||||
//line notifier/alertmanager_request.qtpl:15
|
//line app/vmalert/notifier/alertmanager_request.qtpl:15
|
||||||
qw422016.N().S(`,`)
|
qw422016.N().S(`,`)
|
||||||
//line notifier/alertmanager_request.qtpl:16
|
//line app/vmalert/notifier/alertmanager_request.qtpl:16
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:16
|
//line app/vmalert/notifier/alertmanager_request.qtpl:16
|
||||||
qw422016.N().S(`"labels": {"alertname":`)
|
qw422016.N().S(`"labels": {"alertname":`)
|
||||||
//line notifier/alertmanager_request.qtpl:18
|
//line app/vmalert/notifier/alertmanager_request.qtpl:18
|
||||||
qw422016.N().Q(alert.Name)
|
qw422016.N().Q(alert.Name)
|
||||||
//line notifier/alertmanager_request.qtpl:19
|
//line app/vmalert/notifier/alertmanager_request.qtpl:19
|
||||||
lbls := alert.toPromLabels(relabelCfg)
|
lbls := alert.toPromLabels(relabelCfg)
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:20
|
//line app/vmalert/notifier/alertmanager_request.qtpl:20
|
||||||
for _, l := range lbls {
|
for _, l := range lbls {
|
||||||
//line notifier/alertmanager_request.qtpl:20
|
//line app/vmalert/notifier/alertmanager_request.qtpl:20
|
||||||
qw422016.N().S(`,`)
|
qw422016.N().S(`,`)
|
||||||
//line notifier/alertmanager_request.qtpl:21
|
//line app/vmalert/notifier/alertmanager_request.qtpl:21
|
||||||
qw422016.N().Q(l.Name)
|
qw422016.N().Q(l.Name)
|
||||||
//line notifier/alertmanager_request.qtpl:21
|
//line app/vmalert/notifier/alertmanager_request.qtpl:21
|
||||||
qw422016.N().S(`:`)
|
qw422016.N().S(`:`)
|
||||||
//line notifier/alertmanager_request.qtpl:21
|
//line app/vmalert/notifier/alertmanager_request.qtpl:21
|
||||||
qw422016.N().Q(l.Value)
|
qw422016.N().Q(l.Value)
|
||||||
//line notifier/alertmanager_request.qtpl:22
|
//line app/vmalert/notifier/alertmanager_request.qtpl:22
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:22
|
//line app/vmalert/notifier/alertmanager_request.qtpl:22
|
||||||
qw422016.N().S(`},"annotations": {`)
|
qw422016.N().S(`},"annotations": {`)
|
||||||
//line notifier/alertmanager_request.qtpl:25
|
//line app/vmalert/notifier/alertmanager_request.qtpl:25
|
||||||
c := len(alert.Annotations)
|
c := len(alert.Annotations)
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:26
|
//line app/vmalert/notifier/alertmanager_request.qtpl:26
|
||||||
for k, v := range alert.Annotations {
|
for k, v := range alert.Annotations {
|
||||||
//line notifier/alertmanager_request.qtpl:27
|
//line app/vmalert/notifier/alertmanager_request.qtpl:27
|
||||||
c = c - 1
|
c = c - 1
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
qw422016.N().Q(k)
|
qw422016.N().Q(k)
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
qw422016.N().S(`:`)
|
qw422016.N().S(`:`)
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
qw422016.N().Q(v)
|
qw422016.N().Q(v)
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
if c > 0 {
|
if c > 0 {
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
qw422016.N().S(`,`)
|
qw422016.N().S(`,`)
|
||||||
//line notifier/alertmanager_request.qtpl:28
|
//line app/vmalert/notifier/alertmanager_request.qtpl:28
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:29
|
//line app/vmalert/notifier/alertmanager_request.qtpl:29
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:29
|
//line app/vmalert/notifier/alertmanager_request.qtpl:29
|
||||||
qw422016.N().S(`}}`)
|
qw422016.N().S(`}}`)
|
||||||
//line notifier/alertmanager_request.qtpl:32
|
//line app/vmalert/notifier/alertmanager_request.qtpl:32
|
||||||
if i != len(alerts)-1 {
|
if i != len(alerts)-1 {
|
||||||
//line notifier/alertmanager_request.qtpl:32
|
//line app/vmalert/notifier/alertmanager_request.qtpl:32
|
||||||
qw422016.N().S(`,`)
|
qw422016.N().S(`,`)
|
||||||
//line notifier/alertmanager_request.qtpl:32
|
//line app/vmalert/notifier/alertmanager_request.qtpl:32
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:33
|
//line app/vmalert/notifier/alertmanager_request.qtpl:33
|
||||||
}
|
}
|
||||||
//line notifier/alertmanager_request.qtpl:33
|
//line app/vmalert/notifier/alertmanager_request.qtpl:33
|
||||||
qw422016.N().S(`]`)
|
qw422016.N().S(`]`)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
}
|
}
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
func writeamRequest(qq422016 qtio422016.Writer, alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) {
|
func writeamRequest(qq422016 qtio422016.Writer, alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) {
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
streamamRequest(qw422016, alerts, generatorURL, relabelCfg)
|
streamamRequest(qw422016, alerts, generatorURL, relabelCfg)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
}
|
}
|
||||||
|
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
func amRequest(alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) string {
|
func amRequest(alerts []Alert, generatorURL func(Alert) string, relabelCfg *promrelabel.ParsedConfigs) string {
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
writeamRequest(qb422016, alerts, generatorURL, relabelCfg)
|
writeamRequest(qb422016, alerts, generatorURL, relabelCfg)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
return qs422016
|
return qs422016
|
||||||
//line notifier/alertmanager_request.qtpl:35
|
//line app/vmalert/notifier/alertmanager_request.qtpl:35
|
||||||
}
|
}
|
||||||
|
@ -1,25 +1,25 @@
|
|||||||
// Code generated by qtc from "footer.qtpl". DO NOT EDIT.
|
// Code generated by qtc from "footer.qtpl". DO NOT EDIT.
|
||||||
// See https://github.com/valyala/quicktemplate for details.
|
// See https://github.com/valyala/quicktemplate for details.
|
||||||
|
|
||||||
//line tpl/footer.qtpl:1
|
//line app/vmalert/tpl/footer.qtpl:1
|
||||||
package tpl
|
package tpl
|
||||||
|
|
||||||
//line tpl/footer.qtpl:1
|
//line app/vmalert/tpl/footer.qtpl:1
|
||||||
import (
|
import (
|
||||||
qtio422016 "io"
|
qtio422016 "io"
|
||||||
|
|
||||||
qt422016 "github.com/valyala/quicktemplate"
|
qt422016 "github.com/valyala/quicktemplate"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/footer.qtpl:1
|
//line app/vmalert/tpl/footer.qtpl:1
|
||||||
var (
|
var (
|
||||||
_ = qtio422016.Copy
|
_ = qtio422016.Copy
|
||||||
_ = qt422016.AcquireByteBuffer
|
_ = qt422016.AcquireByteBuffer
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/footer.qtpl:1
|
//line app/vmalert/tpl/footer.qtpl:1
|
||||||
func StreamFooter(qw422016 *qt422016.Writer) {
|
func StreamFooter(qw422016 *qt422016.Writer) {
|
||||||
//line tpl/footer.qtpl:1
|
//line app/vmalert/tpl/footer.qtpl:1
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</main>
|
</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://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
|
||||||
@ -56,31 +56,31 @@ func StreamFooter(qw422016 *qt422016.Writer) {
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
`)
|
`)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
func WriteFooter(qq422016 qtio422016.Writer) {
|
func WriteFooter(qq422016 qtio422016.Writer) {
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
StreamFooter(qw422016)
|
StreamFooter(qw422016)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
func Footer() string {
|
func Footer() string {
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
WriteFooter(qb422016)
|
WriteFooter(qb422016)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
return qs422016
|
return qs422016
|
||||||
//line tpl/footer.qtpl:36
|
//line app/vmalert/tpl/footer.qtpl:36
|
||||||
}
|
}
|
||||||
|
@ -1,39 +1,39 @@
|
|||||||
// Code generated by qtc from "header.qtpl". DO NOT EDIT.
|
// Code generated by qtc from "header.qtpl". DO NOT EDIT.
|
||||||
// See https://github.com/valyala/quicktemplate for details.
|
// See https://github.com/valyala/quicktemplate for details.
|
||||||
|
|
||||||
//line tpl/header.qtpl:1
|
//line app/vmalert/tpl/header.qtpl:1
|
||||||
package tpl
|
package tpl
|
||||||
|
|
||||||
//line tpl/header.qtpl:1
|
//line app/vmalert/tpl/header.qtpl:1
|
||||||
import (
|
import (
|
||||||
qtio422016 "io"
|
qtio422016 "io"
|
||||||
|
|
||||||
qt422016 "github.com/valyala/quicktemplate"
|
qt422016 "github.com/valyala/quicktemplate"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/header.qtpl:1
|
//line app/vmalert/tpl/header.qtpl:1
|
||||||
var (
|
var (
|
||||||
_ = qtio422016.Copy
|
_ = qtio422016.Copy
|
||||||
_ = qt422016.AcquireByteBuffer
|
_ = qt422016.AcquireByteBuffer
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/header.qtpl:1
|
//line app/vmalert/tpl/header.qtpl:1
|
||||||
func StreamHeader(qw422016 *qt422016.Writer, title string, pages []NavItem) {
|
func StreamHeader(qw422016 *qt422016.Writer, title string, pages []NavItem) {
|
||||||
//line tpl/header.qtpl:1
|
//line app/vmalert/tpl/header.qtpl:1
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>vmalert`)
|
<title>vmalert`)
|
||||||
//line tpl/header.qtpl:5
|
//line app/vmalert/tpl/header.qtpl:5
|
||||||
if title != "" {
|
if title != "" {
|
||||||
//line tpl/header.qtpl:5
|
//line app/vmalert/tpl/header.qtpl:5
|
||||||
qw422016.N().S(` - `)
|
qw422016.N().S(` - `)
|
||||||
//line tpl/header.qtpl:5
|
//line app/vmalert/tpl/header.qtpl:5
|
||||||
qw422016.E().S(title)
|
qw422016.E().S(title)
|
||||||
//line tpl/header.qtpl:5
|
//line app/vmalert/tpl/header.qtpl:5
|
||||||
}
|
}
|
||||||
//line tpl/header.qtpl:5
|
//line app/vmalert/tpl/header.qtpl:5
|
||||||
qw422016.N().S(`</title>
|
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">
|
<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>
|
<style>
|
||||||
@ -85,37 +85,37 @@ func StreamHeader(qw422016 *qt422016.Writer, title string, pages []NavItem) {
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
`)
|
`)
|
||||||
//line tpl/header.qtpl:55
|
//line app/vmalert/tpl/header.qtpl:55
|
||||||
StreamPrintNavItems(qw422016, title, pages)
|
StreamPrintNavItems(qw422016, title, pages)
|
||||||
//line tpl/header.qtpl:55
|
//line app/vmalert/tpl/header.qtpl:55
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<main class="px-2">
|
<main class="px-2">
|
||||||
`)
|
`)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
func WriteHeader(qq422016 qtio422016.Writer, title string, pages []NavItem) {
|
func WriteHeader(qq422016 qtio422016.Writer, title string, pages []NavItem) {
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
StreamHeader(qw422016, title, pages)
|
StreamHeader(qw422016, title, pages)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
func Header(title string, pages []NavItem) string {
|
func Header(title string, pages []NavItem) string {
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
WriteHeader(qb422016, title, pages)
|
WriteHeader(qb422016, title, pages)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
return qs422016
|
return qs422016
|
||||||
//line tpl/header.qtpl:57
|
//line app/vmalert/tpl/header.qtpl:57
|
||||||
}
|
}
|
||||||
|
@ -1,96 +1,96 @@
|
|||||||
// Code generated by qtc from "nav.qtpl". DO NOT EDIT.
|
// Code generated by qtc from "nav.qtpl". DO NOT EDIT.
|
||||||
// See https://github.com/valyala/quicktemplate for details.
|
// See https://github.com/valyala/quicktemplate for details.
|
||||||
|
|
||||||
//line tpl/nav.qtpl:1
|
//line app/vmalert/tpl/nav.qtpl:1
|
||||||
package tpl
|
package tpl
|
||||||
|
|
||||||
//line tpl/nav.qtpl:1
|
//line app/vmalert/tpl/nav.qtpl:1
|
||||||
import (
|
import (
|
||||||
qtio422016 "io"
|
qtio422016 "io"
|
||||||
|
|
||||||
qt422016 "github.com/valyala/quicktemplate"
|
qt422016 "github.com/valyala/quicktemplate"
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/nav.qtpl:1
|
//line app/vmalert/tpl/nav.qtpl:1
|
||||||
var (
|
var (
|
||||||
_ = qtio422016.Copy
|
_ = qtio422016.Copy
|
||||||
_ = qt422016.AcquireByteBuffer
|
_ = qt422016.AcquireByteBuffer
|
||||||
)
|
)
|
||||||
|
|
||||||
//line tpl/nav.qtpl:2
|
//line app/vmalert/tpl/nav.qtpl:2
|
||||||
type NavItem struct {
|
type NavItem struct {
|
||||||
Name string
|
Name string
|
||||||
Url string
|
Url string
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/nav.qtpl:8
|
//line app/vmalert/tpl/nav.qtpl:8
|
||||||
func StreamPrintNavItems(qw422016 *qt422016.Writer, current string, items []NavItem) {
|
func StreamPrintNavItems(qw422016 *qt422016.Writer, current string, items []NavItem) {
|
||||||
//line tpl/nav.qtpl:8
|
//line app/vmalert/tpl/nav.qtpl:8
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="collapse navbar-collapse" id="navbarCollapse">
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
||||||
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
<ul class="navbar-nav me-auto mb-2 mb-md-0">
|
||||||
`)
|
`)
|
||||||
//line tpl/nav.qtpl:13
|
//line app/vmalert/tpl/nav.qtpl:13
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
//line tpl/nav.qtpl:13
|
//line app/vmalert/tpl/nav.qtpl:13
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link`)
|
<a class="nav-link`)
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
if current == item.Name {
|
if current == item.Name {
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
qw422016.N().S(` active`)
|
qw422016.N().S(` active`)
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
}
|
}
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
qw422016.N().S(`" href="`)
|
qw422016.N().S(`" href="`)
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
qw422016.E().S(item.Url)
|
qw422016.E().S(item.Url)
|
||||||
//line tpl/nav.qtpl:15
|
//line app/vmalert/tpl/nav.qtpl:15
|
||||||
qw422016.N().S(`">
|
qw422016.N().S(`">
|
||||||
`)
|
`)
|
||||||
//line tpl/nav.qtpl:16
|
//line app/vmalert/tpl/nav.qtpl:16
|
||||||
qw422016.E().S(item.Name)
|
qw422016.E().S(item.Name)
|
||||||
//line tpl/nav.qtpl:16
|
//line app/vmalert/tpl/nav.qtpl:16
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
`)
|
`)
|
||||||
//line tpl/nav.qtpl:19
|
//line app/vmalert/tpl/nav.qtpl:19
|
||||||
}
|
}
|
||||||
//line tpl/nav.qtpl:19
|
//line app/vmalert/tpl/nav.qtpl:19
|
||||||
qw422016.N().S(`
|
qw422016.N().S(`
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
`)
|
`)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
func WritePrintNavItems(qq422016 qtio422016.Writer, current string, items []NavItem) {
|
func WritePrintNavItems(qq422016 qtio422016.Writer, current string, items []NavItem) {
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
StreamPrintNavItems(qw422016, current, items)
|
StreamPrintNavItems(qw422016, current, items)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
qt422016.ReleaseWriter(qw422016)
|
qt422016.ReleaseWriter(qw422016)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
}
|
}
|
||||||
|
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
func PrintNavItems(current string, items []NavItem) string {
|
func PrintNavItems(current string, items []NavItem) string {
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
qb422016 := qt422016.AcquireByteBuffer()
|
qb422016 := qt422016.AcquireByteBuffer()
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
WritePrintNavItems(qb422016, current, items)
|
WritePrintNavItems(qb422016, current, items)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
qs422016 := string(qb422016.B)
|
qs422016 := string(qb422016.B)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
qt422016.ReleaseByteBuffer(qb422016)
|
qt422016.ReleaseByteBuffer(qb422016)
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
return qs422016
|
return qs422016
|
||||||
//line tpl/nav.qtpl:23
|
//line app/vmalert/tpl/nav.qtpl:23
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -47,7 +47,7 @@ The following tip changes can be tested by building VictoriaMetrics components f
|
|||||||
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): properly show `scrape_timeout` and `scrape_interval` options at `http://vmagent:8429/config` page. Previously these options weren't displayed even if they were set in `-promscrape.config`.
|
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): properly show `scrape_timeout` and `scrape_interval` options at `http://vmagent:8429/config` page. Previously these options weren't displayed even if they were set in `-promscrape.config`.
|
||||||
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): handle non-standard http redirect status codes, which may be returned by scrape targets, in the same way as Prometheus does. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2482).
|
* BUGFIX: [vmagent](https://docs.victoriametrics.com/vmagent.html): handle non-standard http redirect status codes, which may be returned by scrape targets, in the same way as Prometheus does. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2482).
|
||||||
* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert.html): skip template execution during rules' validation. This should prevent from `error evaluating annotation template` errors when some template functions expect non-empty args. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2514).
|
* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert.html): skip template execution during rules' validation. This should prevent from `error evaluating annotation template` errors when some template functions expect non-empty args. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2514).
|
||||||
* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert.html): fixed truncating alerts expression in table, updated table cell layout. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2484).
|
* BUGFIX: [vmalert](https://docs.victoriametrics.com/vmalert.html): fixed truncating alerts expression in table, updated table cell layout. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2484).
|
||||||
* BUGFIX: [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html): properly handle joins on time series filtered by values. For example, `kube_pod_container_resource_requests{resource="cpu"} * on (namespace,pod) group_left() (kube_pod_status_phase{phase=~"Pending|Running"}==1)`. This query could result in `duplicate time series on the right side` error even if `==1` filter leaves only a single time series per `(namespace,pod)` labels. Now such query is properly executed.
|
* BUGFIX: [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html): properly handle joins on time series filtered by values. For example, `kube_pod_container_resource_requests{resource="cpu"} * on (namespace,pod) group_left() (kube_pod_status_phase{phase=~"Pending|Running"}==1)`. This query could result in `duplicate time series on the right side` error even if `==1` filter leaves only a single time series per `(namespace,pod)` labels. Now such query is properly executed.
|
||||||
* BUGFIX: [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html): properly handle `scalar default vector`, `scalar if vector` and `scalar ifnot vector` queries. Previously such queries could return unexpected results from the `vector` part.
|
* BUGFIX: [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html): properly handle `scalar default vector`, `scalar if vector` and `scalar ifnot vector` queries. Previously such queries could return unexpected results from the `vector` part.
|
||||||
* BUGFIX: [Official Grafana dashboards for VictoriaMetrics](https://grafana.com/orgs/victoriametrics): take into account `indexdb` when calculating disk space usage. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2368).
|
* BUGFIX: [Official Grafana dashboards for VictoriaMetrics](https://grafana.com/orgs/victoriametrics): take into account `indexdb` when calculating disk space usage. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2368).
|
||||||
|
Loading…
Reference in New Issue
Block a user