mirror of
				https://github.com/prometheus-operator/kube-prometheus.git
				synced 2025-11-04 10:01:03 +01:00 
			
		
		
		
	jsonnet: Drop deprecated coredns_cache_misses_total
Deprecated via https://github.com/coredns/coredns/pull/4781
This commit is contained in:
		
							parent
							
								
									1263e1cba3
								
							
						
					
					
						commit
						16bc5d63b3
					
				@ -92,7 +92,7 @@ $ minikube addons disable metrics-server
 | 
			
		||||
The following versions are supported and work as we test against these versions in their respective branches. But note that other versions might work!
 | 
			
		||||
 | 
			
		||||
| kube-prometheus stack                                                                    | Kubernetes 1.18 | Kubernetes 1.19 | Kubernetes 1.20 | Kubernetes 1.21 | Kubernetes 1.22 | Kubernetes 1.23 |
 | 
			
		||||
|--------------------------------------------------------------------------------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
 | 
			
		||||
|------------------------------------------------------------------------------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|
 | 
			
		||||
| [`release-0.6`](https://github.com/prometheus-operator/kube-prometheus/tree/release-0.6) | ✗               | ✔               | ✗               | ✗               | ✗               | ✗               |
 | 
			
		||||
| [`release-0.7`](https://github.com/prometheus-operator/kube-prometheus/tree/release-0.7) | ✗               | ✔               | ✔               | ✗               | ✗               | ✗               |
 | 
			
		||||
| [`release-0.8`](https://github.com/prometheus-operator/kube-prometheus/tree/release-0.8) | ✗               | ✗               | ✔               | ✔               | ✗               | ✗               |
 | 
			
		||||
 | 
			
		||||
@ -310,11 +310,22 @@ function(params) {
 | 
			
		||||
      namespaceSelector: {
 | 
			
		||||
        matchNames: ['kube-system'],
 | 
			
		||||
      },
 | 
			
		||||
      endpoints: [{
 | 
			
		||||
      endpoints: [
 | 
			
		||||
        {
 | 
			
		||||
          port: 'metrics',
 | 
			
		||||
          interval: '15s',
 | 
			
		||||
          bearerTokenFile: '/var/run/secrets/kubernetes.io/serviceaccount/token',
 | 
			
		||||
      }],
 | 
			
		||||
          metricRelabelings: [
 | 
			
		||||
            // Drop deprecated metrics
 | 
			
		||||
            // TODO (pgough) - consolidate how we drop metrics across the project
 | 
			
		||||
            {
 | 
			
		||||
              sourceLabels: ['__name__'],
 | 
			
		||||
              regex: 'coredns_cache_misses_total',
 | 
			
		||||
              action: 'drop',
 | 
			
		||||
            },
 | 
			
		||||
          ],
 | 
			
		||||
        },
 | 
			
		||||
      ],
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,11 @@ spec:
 | 
			
		||||
  endpoints:
 | 
			
		||||
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
 | 
			
		||||
    interval: 15s
 | 
			
		||||
    metricRelabelings:
 | 
			
		||||
    - action: drop
 | 
			
		||||
      regex: coredns_cache_misses_total
 | 
			
		||||
      sourceLabels:
 | 
			
		||||
      - __name__
 | 
			
		||||
    port: metrics
 | 
			
		||||
  jobLabel: app.kubernetes.io/name
 | 
			
		||||
  namespaceSelector:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user