mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
app/vmagent: properly add labels set via -remoteWrite.label
to metrics before sending them to -remoteWrite.url
This commit is contained in:
parent
58a3e59d59
commit
c386c5de57
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ func Stop() {
|
||||||
// Each timeseries in wr.Timeseries must contain one sample.
|
// Each timeseries in wr.Timeseries must contain one sample.
|
||||||
func Push(wr *prompbmarshal.WriteRequest) {
|
func Push(wr *prompbmarshal.WriteRequest) {
|
||||||
var rctx *relabelCtx
|
var rctx *relabelCtx
|
||||||
if len(prcsGlobal) > 0 {
|
if len(prcsGlobal) > 0 || len(labelsGlobal) > 0 {
|
||||||
rctx = getRelabelCtx()
|
rctx = getRelabelCtx()
|
||||||
}
|
}
|
||||||
tss := wr.Timeseries
|
tss := wr.Timeseries
|
||||||
|
|
Loading…
Reference in a new issue