mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Add example interval aggregation to MetricRouter config for CI
This commit is contained in:
		
							
								
								
									
										55
									
								
								.github/ci-router.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										55
									
								
								.github/ci-router.json
									
									
									
									
										vendored
									
									
								
							@@ -1,22 +1,37 @@
 | 
			
		||||
{
 | 
			
		||||
    "add_tags" : [
 | 
			
		||||
        {
 | 
			
		||||
            "key" : "cluster",
 | 
			
		||||
            "value" : "testcluster",
 | 
			
		||||
            "if" : "*"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "key" : "test",
 | 
			
		||||
            "value" : "testing",
 | 
			
		||||
            "if" : "name == 'temp_package_id_0'"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "delete_tags" : [
 | 
			
		||||
        {
 | 
			
		||||
            "key" : "unit",
 | 
			
		||||
            "value" : "*",
 | 
			
		||||
            "if" : "*"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "interval_timestamp" : true
 | 
			
		||||
  "add_tags": [
 | 
			
		||||
    {
 | 
			
		||||
      "key": "cluster",
 | 
			
		||||
      "value": "testcluster",
 | 
			
		||||
      "if": "*"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "key": "test",
 | 
			
		||||
      "value": "testing",
 | 
			
		||||
      "if": "name == 'temp_package_id_0'"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "delete_tags": [
 | 
			
		||||
    {
 | 
			
		||||
      "key": "unit",
 | 
			
		||||
      "value": "*",
 | 
			
		||||
      "if": "*"
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "interval_aggregates": [
 | 
			
		||||
    {
 | 
			
		||||
      "name": "temp_cores_avg",
 | 
			
		||||
      "function": "avg(values)",
 | 
			
		||||
      "if": "match('temp_core_%d+', metric.Name())",
 | 
			
		||||
      "tags": {
 | 
			
		||||
        "type": "node"
 | 
			
		||||
      },
 | 
			
		||||
      "meta": {
 | 
			
		||||
        "group": "<copy>",
 | 
			
		||||
        "unit": "<copy>",
 | 
			
		||||
        "source": "MetricAggregator"
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  ],
 | 
			
		||||
  "interval_timestamp": true
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user