mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	correct metrics name of cache size (#3805)
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
This commit is contained in:
		
							
								
								
									
										2
									
								
								plugin/cache/README.md
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								plugin/cache/README.md
									
									
									
									
										vendored
									
									
								
							| @@ -70,7 +70,7 @@ Entries with 0 TTL will remain in the cache until randomly evicted when the shar | ||||
|  | ||||
| If monitoring is enabled (via the *prometheus* plugin) then the following metrics are exported: | ||||
|  | ||||
| * `coredns_cache_size{server, type}` - Total elements in the cache by cache type. | ||||
| * `coredns_cache_entries{server, type}` - Total elements in the cache by cache type. | ||||
| * `coredns_cache_hits_total{server, type}` - Counter of cache hits by cache type. | ||||
| * `coredns_cache_misses_total{server}` - Counter of cache misses. | ||||
| * `coredns_cache_drops_total{server}` - Counter of responses excluded from the cache due to request/response question name mismatch. | ||||
|   | ||||
							
								
								
									
										2
									
								
								plugin/cache/metrics.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								plugin/cache/metrics.go
									
									
									
									
										vendored
									
									
								
							| @@ -11,7 +11,7 @@ var ( | ||||
| 	cacheSize = prometheus.NewGaugeVec(prometheus.GaugeOpts{ | ||||
| 		Namespace: plugin.Namespace, | ||||
| 		Subsystem: "cache", | ||||
| 		Name:      "size", | ||||
| 		Name:      "entries", | ||||
| 		Help:      "The number of elements in the cache.", | ||||
| 	}, []string{"server", "type"}) | ||||
| 	// cacheHits is counter of cache hits by cache type. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user