Slice Operator Metrics
The Slice Operator metrics provide valuable insights into the performance and health of various components within the KubeSlice environment. These metrics are categorized based on different labels associated with each component. The metrics include information such as the number of active endpoints in service imports and exports, the number of application pods in each slice per namespace, the health status of the worker cluster and its components, the health status of individual slices and their components, and counters for slice-related events. These metrics help you monitor the state of your KubeSlice deployment and make informed decisions for efficient management. The metrics are accompanied by labels that provide additional context, such as the action triggering the metric, the component or object involved, the project and cluster names, and more. By leveraging these metrics and labels, you can effectively monitor and optimize your KubeSlice infrastructure.
Sl. No | Name | Type | Labels | Description |
---|---|---|---|---|
1 | kubeslice_serviceimport_endpoints | Gauge | slice_project, slice_cluster, slice, namespace, service, slice_reporting_controller | Number of active endpoints in the service import. |
2 | kubeslice_serviceexport_endpoints | Gauge | slice_project, slice_cluster, slice, namespace, service, slice_reporting_controller | Number of active endpoints in the service export. |
3 | kubeslice_app_pods | Gauge | slice_project, slice_cluster, slice, slice_namespace | Number of application pods in each slice per namespace. |
4 | kubeslice_cluster_up | Gauge | slice_project, slice_cluster | Denotes 1 if the worker cluster is healthy and denotes 0 if it is unhealthy. |
5 | kubeslice_cluster_component_up | Gauge | slice_project, slice_cluster, component | Denotes 1 if the worker cluster is healthy and denotes 0 if it is unhealthy. |
6 | kubeslice_slice_up | Gauge | slice_project, slice_cluster, slice | Denotes 1 if the slice is healthy and denotes 0 if it is unhealthy. |
7 | kubeslice_slice_component_up | Gauge | slice_project, slice_cluster, slice, component | Denotes 1 if the slice component is healthy and denotes 0 if it is unhealthy. |
8 | kubeslice_slice_created_total, kubeslice_slice_updated_total, kubeslice_slice_deleted_total, kubeslice_slice_creation_failed_total, kubeslice_slice_updation_failed_total, kubeslice_slice_deletion_failed_total | Counter | slice_project, slice_cluster, slice | Counter for slice related events. |
9 | kubeslice_nodeaffinity_taints_active | Gauge | slice_project, slice_cluster, slice, namespace, slice_nodeaffinity | Number of nodes tainted for Node Affinity in the slice. |
10 | kubeslice_nodeaffinity_mutated_workloads_total | Counter | slice_project, slice_cluster, slice, namespace, slice_nodeaffinity, slice_workload_type | Count of workloads mutated by webhook for Node Affinity. |
Labels​
The following table describes the labels that are attached to the Slice Operator metrics.
Label | Description |
---|---|
action | The action which triggered the metric record. |
component | The KubeSlice component to which the metric is attached to. |
event | The event title to which the metric is attached to. |
object_kind | The kind of the object on which the metric is recorded. |
object_name | The name of the object on which the metric is recorded. |
namespace | The namespace of the object for which the metric is recorded. |
service | The metric is related to the service discovery (service export or import). |
slice | The name of the slice which the metric is attached to. The value is NA if the metric is unrelated to any slice. |
slice_cluster | The name of the cluster the metric is attached to. The value is worker-cluster for all the Worker Operator related metrics. |
slice_gateway | The Slice Gateway for which the metric is recorded |
slice_gateway_pod | The Slice Gateway pod for which the metric is recorded. |
slice_nodeaffinity | The Node Affinity of the slice for which the metric is recorded. |
slice_networkpolicy | The namespace isolation policy of the slice for which the metric is recorded. |
slice_networkpolicy_violation | The namespace isolation policy violation of the slice for which the metric is recorded. |
slice_project | The name of the project on which the slice is created. |
slice_reporting_controller | The name of the reporting controller. The value is controller for all the KubeSlice Controller related metrics. |
slice_workload_type | The workload type of the slice for which the metric is recorded. |