Add a metrics package to add and expose metrics

* add a metrics package to handle metric registration and publishing
* add a metricsAddress field to the server struct
* make metrics a part of the server
* start a metrics endpoint as part of starting the controllers
* instrument backup_controller to report metrics
* update cli-reference docs
* update example deployments with prometheus annotations
* update 'pkg/install' tooling with prometheus annotations

Signed-off-by: Ashish Amarnath <ashish.amarnath@gmail.com>
This commit is contained in:
Ashish Amarnath
2018-06-13 13:17:08 -07:00
parent ed2d7b445c
commit 83658e891e
89 changed files with 14442 additions and 14 deletions
+4 -3
View File
@@ -14,9 +14,10 @@ ark server [flags]
### Options
```
-h, --help help for server
--log-level the level at which to log. Valid values are debug, info, warning, error, fatal, panic. (default info)
--plugin-dir string directory containing Ark plugins (default "/plugins")
-h, --help help for server
--log-level the level at which to log. Valid values are debug, info, warning, error, fatal, panic. (default info)
--metrics-address string the address to expose prometheus metrics (default ":8085")
--plugin-dir string directory containing Ark plugins (default "/plugins")
```
### Options inherited from parent commands