You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* update metrics docs & dashboard
* renamed `namespace` label to `svc_namespace` for service metrics as it would be overwritten by most Prometheus setups
* Made histograms for all the controller sync times for better visualization
* added `controller_routes_sync_time`, `controller_bgp_advertisements_sent` & `controller_policy_chains_sync_time` metrics
Copy file name to clipboardExpand all lines: docs/metrics.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ The default values unless other specified is
22
22
By enabling [Kubernetes SD](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#<kubernetes_sd_config>) in Prometheus configuration & adding required annotations Prometheus can automaticly discover & scrape kube-router metrics
23
23
24
24
## Version notes
25
+
kube-router v0.2.4 received a metrics overhaul where some metrics were changed into histograms, additional metrics was also added. Please make sure you are using the latest dashboard version with versions => v0.2.4
26
+
25
27
kube-router 0.1.0-rc2 and upwards supports the runtime configuration for controlling where to expose the metrics. If you are using a older version, metrics path & port is locked to `/metrics` & `8080`
26
28
27
29
## Supported annotations
@@ -56,14 +58,20 @@ The following metrics is exposed by kube-router prefixed by `kube_router_`
56
58
* controller_bgp_peers
57
59
Number of BGP peers of the instance
58
60
* controller_bgp_advertisements_received
59
-
Number of total BGP advertisements received since kube-router start
61
+
Total number of BGP advertisements received since kube-router started
62
+
* controller_bgp_advertisements_sent
63
+
Total number of BGP advertisements sent since kube-router started
60
64
* controller_bgp_internal_peers_sync_time
61
65
Time it took for the BGP internal peer sync loop to complete
66
+
* controller_routes_sync_time
67
+
Time it took for controller to sync routes
62
68
63
69
### run-firewall=true
64
70
65
71
* controller_iptables_sync_time
66
72
Time it took for the iptables sync loop to complete
73
+
* controller_policy_chains_sync_time
74
+
Time it took for controller to sync policy chains
67
75
68
76
### run-service-proxy = true
69
77
@@ -95,7 +103,7 @@ The following metrics is exposed by kube-router prefixed by `kube_router_`
95
103
Outgoing bytes per second
96
104
97
105
To get a grouped list of CPS for each service a Prometheus query could look like this e.g:
98
-
`sum(kube_router_service_cps) by (namespace, service_name)`
106
+
`sum(kube_router_service_cps) by (svc_namespace, service_name)`
0 commit comments