Skip to content

Commit

Permalink
Add hyperpod metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Reham Tarek committed Aug 19, 2024
1 parent 6f8ea66 commit 74398de
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ exporters:
- node_interface_network_tx_dropped
- node_diskio_io_service_bytes_total
- node_diskio_io_serviced_total
- hyper_pod_node_health_status_schedulable
- hyper_pod_node_health_status_unschedulable_pending_replacement
- hyper_pod_node_health_status_unschedulable_pending_reboot
- hyper_pod_node_health_status_unschedulable
- dimensions:
- - ClusterName
- InstanceId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ exporters:
- node_interface_network_tx_dropped
- node_diskio_io_service_bytes_total
- node_diskio_io_serviced_total
- hyper_pod_node_health_status_schedulable
- hyper_pod_node_health_status_unschedulable_pending_replacement
- hyper_pod_node_health_status_unschedulable_pending_reboot
- hyper_pod_node_health_status_unschedulable
- dimensions:
- - ClusterName
- InstanceId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ exporters:
- node_interface_network_tx_dropped
- node_diskio_io_service_bytes_total
- node_diskio_io_serviced_total
- hyper_pod_node_health_status_schedulable
- hyper_pod_node_health_status_unschedulable_pending_replacement
- hyper_pod_node_health_status_unschedulable_pending_reboot
- hyper_pod_node_health_status_unschedulable
- dimensions:
- - ClusterName
- InstanceId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ exporters:
- node_interface_network_tx_dropped
- node_diskio_io_service_bytes_total
- node_diskio_io_serviced_total
- hyper_pod_node_health_status_schedulable
- hyper_pod_node_health_status_unschedulable_pending_replacement
- hyper_pod_node_health_status_unschedulable_pending_reboot
- hyper_pod_node_health_status_unschedulable
- dimensions:
- - ClusterName
- InstanceId
Expand Down
2 changes: 2 additions & 0 deletions translator/translate/otel/exporter/awsemf/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ func getNodeMetricDeclarations(conf *confmap.Conf) []*awsemfexporter.MetricDecla
MetricNameSelectors: []string{
"node_interface_network_rx_dropped", "node_interface_network_tx_dropped",
"node_diskio_io_service_bytes_total", "node_diskio_io_serviced_total",
"hyper_pod_node_health_status_schedulable", "hyper_pod_node_health_status_unschedulable_pending_replacement",
"hyper_pod_node_health_status_unschedulable_pending_reboot", "hyper_pod_node_health_status_unschedulable",
},
},
}
Expand Down
5 changes: 4 additions & 1 deletion translator/translate/otel/exporter/awsemf/translator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ func TestTranslator(t *testing.T) {
},
MetricNameSelectors: []string{
"node_interface_network_rx_dropped", "node_interface_network_tx_dropped",
"node_diskio_io_service_bytes_total", "node_diskio_io_serviced_total"},
"node_diskio_io_service_bytes_total", "node_diskio_io_serviced_total",
"hyper_pod_node_health_status_schedulable", "hyper_pod_node_health_status_unschedulable_pending_replacement",
"hyper_pod_node_health_status_unschedulable_pending_reboot",
"hyper_pod_node_health_status_unschedulable"},
},
{
Dimensions: [][]string{{"NodeName", "InstanceId", "ClusterName"}, {"ClusterName"}},
Expand Down

0 comments on commit 74398de

Please sign in to comment.