mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-23 20:37:12 +01: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
@ -89,7 +89,7 @@ func Stop() {
|
||||
// Each timeseries in wr.Timeseries must contain one sample.
|
||||
func Push(wr *prompbmarshal.WriteRequest) {
|
||||
var rctx *relabelCtx
|
||||
if len(prcsGlobal) > 0 {
|
||||
if len(prcsGlobal) > 0 || len(labelsGlobal) > 0 {
|
||||
rctx = getRelabelCtx()
|
||||
}
|
||||
tss := wr.Timeseries
|
||||
|
Loading…
Reference in New Issue
Block a user