mirror of
				https://github.com/prometheus/prometheus.git
				synced 2025-10-31 00:11:23 +01:00 
			
		
		
		
	Merge pull request #13831 from prometheus/cherry-pick-13803
Release 2.51: Cherry-pick #13803 bugfix for label_join
This commit is contained in:
		
						commit
						d771cabc95
					
				| @ -1386,6 +1386,9 @@ func (ev *evaluator) evalLabelJoin(args parser.Expressions) (parser.Value, annot | |||||||
| 		} | 		} | ||||||
| 		srcLabels[i-3] = src | 		srcLabels[i-3] = src | ||||||
| 	} | 	} | ||||||
|  | 	if !model.LabelName(dst).IsValid() { | ||||||
|  | 		panic(fmt.Errorf("invalid destination label name in label_join(): %s", dst)) | ||||||
|  | 	} | ||||||
| 
 | 
 | ||||||
| 	val, ws := ev.eval(args[0]) | 	val, ws := ev.eval(args[0]) | ||||||
| 	matrix := val.(Matrix) | 	matrix := val.(Matrix) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user