| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485 |
- // Copyright 2019 Yunion
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- package measurements
- import "yunion.io/x/onecloud/pkg/apis/monitor"
- var kernelVmstat = SMeasurement{
- Context: []SMonitorContext{
- {
- Name: "kernel_vmstat",
- DisplayName: "kernel vmstat",
- ResourceType: monitor.METRIC_RES_TYPE_HOST,
- Database: monitor.METRIC_DATABASE_TELE,
- },
- },
- Metrics: []SMetric{
- {
- Name: "nr_free_pages",
- DisplayName: "nr_free_pages",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_inactive_anon",
- DisplayName: "(integer, nr_inactive_anon)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_active_anon",
- DisplayName: "(integer, nr_active_anon)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_inactive_file",
- DisplayName: "(integer, nr_inactive_file)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_active_file",
- DisplayName: "(integer, nr_active_file)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_unevictable",
- DisplayName: "(integer, nr_unevictable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_mlock",
- DisplayName: "(integer, nr_mlock)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_anon_pages",
- DisplayName: "(integer, nr_anon_pages)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_mapped",
- DisplayName: "(integer, nr_mapped)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_file_pages",
- DisplayName: "(integer, nr_file_pages)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_dirty",
- DisplayName: "(integer, nr_dirty)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_writeback",
- DisplayName: "(integer, nr_writeback)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_slab_reclaimable",
- DisplayName: "(integer, nr_slab_reclaimable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_slab_unreclaimable",
- DisplayName: "(integer, nr_slab_unreclaimable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_page_table_pages",
- DisplayName: "(integer, nr_page_table_pages)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_kernel_stack",
- DisplayName: "(integer, nr_kernel_stack)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_unstable",
- DisplayName: "(integer, nr_unstable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_bounce",
- DisplayName: "(integer, nr_bounce)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_vmscan_write",
- DisplayName: "(integer, nr_vmscan_write)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_writeback_temp",
- DisplayName: "(integer, nr_writeback_temp)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_isolated_anon",
- DisplayName: "(integer, nr_isolated_anon)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_isolated_file",
- DisplayName: "(integer, nr_isolated_file)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_shmem",
- DisplayName: "(integer, nr_shmem)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_hit",
- DisplayName: "(integer, numa_hit)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_miss",
- DisplayName: "(integer, numa_miss)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_foreign",
- DisplayName: "(integer, numa_foreign)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_interleave",
- DisplayName: "(integer, numa_interleave)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_local",
- DisplayName: "(integer, numa_local)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "numa_other",
- DisplayName: "(integer, numa_other)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "nr_anon_transparent_hugepages",
- DisplayName: "(integer, nr_anon_transparent_hugepages)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgpgin",
- DisplayName: "(integer, pgpgin)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgpgout",
- DisplayName: "(integer, pgpgout)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pswpin",
- DisplayName: "(integer, pswpin)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pswpout",
- DisplayName: "(integer, pswpout)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgalloc_dma",
- DisplayName: "(integer, pgalloc_dma)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgalloc_dma32",
- DisplayName: "(integer, pgalloc_dma32)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgalloc_normal",
- DisplayName: "(integer, pgalloc_normal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgalloc_movable",
- DisplayName: "(integer, pgalloc_movable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgfree",
- DisplayName: "(integer, pgfree)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgactivate",
- DisplayName: "(integer, pgactivate)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgdeactivate",
- DisplayName: "(integer, pgdeactivate)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgfault",
- DisplayName: "(integer, pgfault)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgmajfault",
- DisplayName: "(integer, pgmajfault)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgrefill_dma",
- DisplayName: "(integer, pgrefill_dma)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgrefill_dma32",
- DisplayName: "(integer, pgrefill_dma32)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgrefill_normal",
- DisplayName: "(integer, pgrefill_normal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgrefill_movable",
- DisplayName: "(integer, pgrefill_movable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgsteal_dma",
- DisplayName: "(integer, pgsteal_dma)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgsteal_dma32",
- DisplayName: "(integer, pgsteal_dma32)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgsteal_normal",
- DisplayName: "(integer, pgsteal_normal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgsteal_movable",
- DisplayName: "(integer, pgsteal_movable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_kswapd_dma",
- DisplayName: "(integer, pgscan_kswapd_dma)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_kswapd_dma32",
- DisplayName: "(integer, pgscan_kswapd_dma32)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_kswapd_normal",
- DisplayName: "(integer, pgscan_kswapd_normal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_kswapd_movable",
- DisplayName: "(integer, pgscan_kswapd_movable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_direct_dma",
- DisplayName: "(integer, pgscan_direct_dma)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_direct_dma32",
- DisplayName: "(integer, pgscan_direct_dma32)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_direct_normal",
- DisplayName: "(integer, pgscan_direct_normal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgscan_direct_movable",
- DisplayName: "(integer, pgscan_direct_movable)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "zone_reclaim_failed",
- DisplayName: "(integer, zone_reclaim_failed)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pginodesteal",
- DisplayName: "(integer, pginodesteal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "slabs_scanned",
- DisplayName: "(integer, slabs_scanned)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "kswapd_steal",
- DisplayName: "(integer, kswapd_steal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "kswapd_inodesteal",
- DisplayName: "(integer, kswapd_inodesteal)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "kswapd_low_wmark_hit_quickly",
- DisplayName: "(integer, kswapd_low_wmark_hit_quickly)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "kswapd_high_wmark_hit_quickly",
- DisplayName: "(integer, kswapd_high_wmark_hit_quickly)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "kswapd_skip_congestion_wait",
- DisplayName: "(integer, kswapd_skip_congestion_wait)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pageoutrun",
- DisplayName: "(integer, pageoutrun)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "allocstall",
- DisplayName: "(integer, allocstall)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "pgrotated",
- DisplayName: "(integer, pgrotated)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_blocks_moved",
- DisplayName: "(integer, compact_blocks_moved)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_pages_moved",
- DisplayName: "(integer, compact_pages_moved)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_pagemigrate_failed",
- DisplayName: "(integer, compact_pagemigrate_failed)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_stall",
- DisplayName: "(integer, compact_stall)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_fail",
- DisplayName: "(integer, compact_fail)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "compact_success",
- DisplayName: "(integer, compact_success)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "htlb_buddy_alloc_success",
- DisplayName: "(integer, htlb_buddy_alloc_success)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "htlb_buddy_alloc_fail",
- DisplayName: "(integer, htlb_buddy_alloc_fail)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_culled",
- DisplayName: "(integer, unevictable_pgs_culled)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_scanned",
- DisplayName: "(integer, unevictable_pgs_scanned)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_rescued",
- DisplayName: "(integer, unevictable_pgs_rescued)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_mlocked",
- DisplayName: "(integer, unevictable_pgs_mlocked)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_munlocked",
- DisplayName: "(integer, unevictable_pgs_munlocked)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_cleared",
- DisplayName: "(integer, unevictable_pgs_cleared)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_stranded",
- DisplayName: "(integer, unevictable_pgs_stranded)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "unevictable_pgs_mlockfreed",
- DisplayName: "(integer, unevictable_pgs_mlockfreed)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "thp_fault_alloc",
- DisplayName: "(integer, thp_fault_alloc)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "thp_fault_fallback",
- DisplayName: "(integer, thp_fault_fallback)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "thp_collapse_alloc",
- DisplayName: "(integer, thp_collapse_alloc)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "thp_collapse_alloc_failed",
- DisplayName: "(integer, thp_collapse_alloc_failed)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- {
- Name: "thp_split",
- DisplayName: "(integer, thp_split)",
- Unit: monitor.METRIC_UNIT_COUNT,
- },
- },
- }
|