Add basic stats
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
		
							
								
								
									
										15
									
								
								stats.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								stats.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| package containerd | ||||
|  | ||||
| import "github.com/rcrowley/go-metrics" | ||||
|  | ||||
| var ( | ||||
| 	ContainerStartTimer = metrics.NewTimer() | ||||
| 	ContainersCounter   = metrics.NewCounter() | ||||
| ) | ||||
|  | ||||
| func Metrics() map[string]interface{} { | ||||
| 	return map[string]interface{}{ | ||||
| 		"container-start-time": ContainerStartTimer, | ||||
| 		"containers":           ContainersCounter, | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Michael Crosby
					Michael Crosby