mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +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
0d893eff36
commit
47e986c26f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue