mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 10:45:06 +01:00 
			
		
		
		
	Use second add_tags/del_tags only if metric gets renamed
This commit is contained in:
		@@ -287,10 +287,10 @@ func (r *metricRouter) Start() {
 | 
			
		||||
		if new, ok := r.config.RenameMetrics[name]; ok {
 | 
			
		||||
			point.SetName(new)
 | 
			
		||||
			point.AddMeta("oldname", name)
 | 
			
		||||
			r.DoAddTags(point)
 | 
			
		||||
			r.DoDelTags(point)
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		r.DoAddTags(point)
 | 
			
		||||
		r.DoDelTags(point)
 | 
			
		||||
		r.prepareUnit(point)
 | 
			
		||||
 | 
			
		||||
		for _, o := range r.outputs {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user