gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/test/metricsviz/metricsviz_groups.go (about) 1 // Copyright 2024 The gVisor Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package metricsviz 16 17 // GroupName is the name of a group of metrics. 18 type GroupName string 19 20 // Groups maps metrics which are in the same named group. 21 // If more than one metric in a group is in the profiled data, it will 22 // be shown on the same graph. 23 // A metric may be in multiple groups. 24 var Groups = map[GroupName][]MetricName{ 25 "Network packets": { 26 "/netstack/dropped_packets", 27 "/netstack/nic/malformed_l4_received_packets", 28 "/netstack/nic/tx/packets", 29 "/netstack/nic/tx_packets_dropped_no_buffer_space", 30 "/netstack/nic/rx/packets", 31 "/netstack/nic/disabled_rx/packets", 32 }, 33 "Network throughput": { 34 "/netstack/nic/tx/bytes", 35 "/netstack/nic/rx/bytes", 36 "/netstack/nic/disabled_rx/bytes", 37 }, 38 "IP packets": { 39 "/netstack/ip/packets_received", 40 "/netstack/ip/disabled_packets_received", 41 "/netstack/ip/invalid_addresses_received", 42 "/netstack/ip/invalid_source_addresses_received", 43 "/netstack/ip/packets_delivered", 44 "/netstack/ip/packets_sent", 45 "/netstack/ip/outgoing_packet_errors", 46 "/netstack/ip/malformed_packets_received", 47 "/netstack/ip/malformed_fragments_received", 48 "/netstack/ip/iptables/prerouting_dropped", 49 "/netstack/ip/iptables/input_dropped", 50 "/netstack/ip/iptables/output_dropped", 51 "/netstack/ip/options/timestamp_received", 52 "/netstack/ip/options/record_route_received", 53 "/netstack/ip/options/router_alert_received", 54 "/netstack/ip/options/unknown_received", 55 }, 56 }