metrics.pb.txt (16270B)
1 file { 2 name: "github.com/containerd/cgroups/cgroup1/stats/metrics.proto" 3 package: "io.containerd.cgroups.v1" 4 message_type { 5 name: "Metrics" 6 field { 7 name: "hugetlb" 8 number: 1 9 label: LABEL_REPEATED 10 type: TYPE_MESSAGE 11 type_name: ".io.containerd.cgroups.v1.HugetlbStat" 12 json_name: "hugetlb" 13 } 14 field { 15 name: "pids" 16 number: 2 17 label: LABEL_OPTIONAL 18 type: TYPE_MESSAGE 19 type_name: ".io.containerd.cgroups.v1.PidsStat" 20 json_name: "pids" 21 } 22 field { 23 name: "cpu" 24 number: 3 25 label: LABEL_OPTIONAL 26 type: TYPE_MESSAGE 27 type_name: ".io.containerd.cgroups.v1.CPUStat" 28 json_name: "cpu" 29 } 30 field { 31 name: "memory" 32 number: 4 33 label: LABEL_OPTIONAL 34 type: TYPE_MESSAGE 35 type_name: ".io.containerd.cgroups.v1.MemoryStat" 36 json_name: "memory" 37 } 38 field { 39 name: "blkio" 40 number: 5 41 label: LABEL_OPTIONAL 42 type: TYPE_MESSAGE 43 type_name: ".io.containerd.cgroups.v1.BlkIOStat" 44 json_name: "blkio" 45 } 46 field { 47 name: "rdma" 48 number: 6 49 label: LABEL_OPTIONAL 50 type: TYPE_MESSAGE 51 type_name: ".io.containerd.cgroups.v1.RdmaStat" 52 json_name: "rdma" 53 } 54 field { 55 name: "network" 56 number: 7 57 label: LABEL_REPEATED 58 type: TYPE_MESSAGE 59 type_name: ".io.containerd.cgroups.v1.NetworkStat" 60 json_name: "network" 61 } 62 field { 63 name: "cgroup_stats" 64 number: 8 65 label: LABEL_OPTIONAL 66 type: TYPE_MESSAGE 67 type_name: ".io.containerd.cgroups.v1.CgroupStats" 68 json_name: "cgroupStats" 69 } 70 field { 71 name: "memory_oom_control" 72 number: 9 73 label: LABEL_OPTIONAL 74 type: TYPE_MESSAGE 75 type_name: ".io.containerd.cgroups.v1.MemoryOomControl" 76 json_name: "memoryOomControl" 77 } 78 } 79 message_type { 80 name: "HugetlbStat" 81 field { 82 name: "usage" 83 number: 1 84 label: LABEL_OPTIONAL 85 type: TYPE_UINT64 86 json_name: "usage" 87 } 88 field { 89 name: "max" 90 number: 2 91 label: LABEL_OPTIONAL 92 type: TYPE_UINT64 93 json_name: "max" 94 } 95 field { 96 name: "failcnt" 97 number: 3 98 label: LABEL_OPTIONAL 99 type: TYPE_UINT64 100 json_name: "failcnt" 101 } 102 field { 103 name: "pagesize" 104 number: 4 105 label: LABEL_OPTIONAL 106 type: TYPE_STRING 107 json_name: "pagesize" 108 } 109 } 110 message_type { 111 name: "PidsStat" 112 field { 113 name: "current" 114 number: 1 115 label: LABEL_OPTIONAL 116 type: TYPE_UINT64 117 json_name: "current" 118 } 119 field { 120 name: "limit" 121 number: 2 122 label: LABEL_OPTIONAL 123 type: TYPE_UINT64 124 json_name: "limit" 125 } 126 } 127 message_type { 128 name: "CPUStat" 129 field { 130 name: "usage" 131 number: 1 132 label: LABEL_OPTIONAL 133 type: TYPE_MESSAGE 134 type_name: ".io.containerd.cgroups.v1.CPUUsage" 135 json_name: "usage" 136 } 137 field { 138 name: "throttling" 139 number: 2 140 label: LABEL_OPTIONAL 141 type: TYPE_MESSAGE 142 type_name: ".io.containerd.cgroups.v1.Throttle" 143 json_name: "throttling" 144 } 145 } 146 message_type { 147 name: "CPUUsage" 148 field { 149 name: "total" 150 number: 1 151 label: LABEL_OPTIONAL 152 type: TYPE_UINT64 153 json_name: "total" 154 } 155 field { 156 name: "kernel" 157 number: 2 158 label: LABEL_OPTIONAL 159 type: TYPE_UINT64 160 json_name: "kernel" 161 } 162 field { 163 name: "user" 164 number: 3 165 label: LABEL_OPTIONAL 166 type: TYPE_UINT64 167 json_name: "user" 168 } 169 field { 170 name: "per_cpu" 171 number: 4 172 label: LABEL_REPEATED 173 type: TYPE_UINT64 174 json_name: "perCpu" 175 } 176 } 177 message_type { 178 name: "Throttle" 179 field { 180 name: "periods" 181 number: 1 182 label: LABEL_OPTIONAL 183 type: TYPE_UINT64 184 json_name: "periods" 185 } 186 field { 187 name: "throttled_periods" 188 number: 2 189 label: LABEL_OPTIONAL 190 type: TYPE_UINT64 191 json_name: "throttledPeriods" 192 } 193 field { 194 name: "throttled_time" 195 number: 3 196 label: LABEL_OPTIONAL 197 type: TYPE_UINT64 198 json_name: "throttledTime" 199 } 200 } 201 message_type { 202 name: "MemoryStat" 203 field { 204 name: "cache" 205 number: 1 206 label: LABEL_OPTIONAL 207 type: TYPE_UINT64 208 json_name: "cache" 209 } 210 field { 211 name: "rss" 212 number: 2 213 label: LABEL_OPTIONAL 214 type: TYPE_UINT64 215 json_name: "rss" 216 } 217 field { 218 name: "rss_huge" 219 number: 3 220 label: LABEL_OPTIONAL 221 type: TYPE_UINT64 222 json_name: "rssHuge" 223 } 224 field { 225 name: "mapped_file" 226 number: 4 227 label: LABEL_OPTIONAL 228 type: TYPE_UINT64 229 json_name: "mappedFile" 230 } 231 field { 232 name: "dirty" 233 number: 5 234 label: LABEL_OPTIONAL 235 type: TYPE_UINT64 236 json_name: "dirty" 237 } 238 field { 239 name: "writeback" 240 number: 6 241 label: LABEL_OPTIONAL 242 type: TYPE_UINT64 243 json_name: "writeback" 244 } 245 field { 246 name: "pg_pg_in" 247 number: 7 248 label: LABEL_OPTIONAL 249 type: TYPE_UINT64 250 json_name: "pgPgIn" 251 } 252 field { 253 name: "pg_pg_out" 254 number: 8 255 label: LABEL_OPTIONAL 256 type: TYPE_UINT64 257 json_name: "pgPgOut" 258 } 259 field { 260 name: "pg_fault" 261 number: 9 262 label: LABEL_OPTIONAL 263 type: TYPE_UINT64 264 json_name: "pgFault" 265 } 266 field { 267 name: "pg_maj_fault" 268 number: 10 269 label: LABEL_OPTIONAL 270 type: TYPE_UINT64 271 json_name: "pgMajFault" 272 } 273 field { 274 name: "inactive_anon" 275 number: 11 276 label: LABEL_OPTIONAL 277 type: TYPE_UINT64 278 json_name: "inactiveAnon" 279 } 280 field { 281 name: "active_anon" 282 number: 12 283 label: LABEL_OPTIONAL 284 type: TYPE_UINT64 285 json_name: "activeAnon" 286 } 287 field { 288 name: "inactive_file" 289 number: 13 290 label: LABEL_OPTIONAL 291 type: TYPE_UINT64 292 json_name: "inactiveFile" 293 } 294 field { 295 name: "active_file" 296 number: 14 297 label: LABEL_OPTIONAL 298 type: TYPE_UINT64 299 json_name: "activeFile" 300 } 301 field { 302 name: "unevictable" 303 number: 15 304 label: LABEL_OPTIONAL 305 type: TYPE_UINT64 306 json_name: "unevictable" 307 } 308 field { 309 name: "hierarchical_memory_limit" 310 number: 16 311 label: LABEL_OPTIONAL 312 type: TYPE_UINT64 313 json_name: "hierarchicalMemoryLimit" 314 } 315 field { 316 name: "hierarchical_swap_limit" 317 number: 17 318 label: LABEL_OPTIONAL 319 type: TYPE_UINT64 320 json_name: "hierarchicalSwapLimit" 321 } 322 field { 323 name: "total_cache" 324 number: 18 325 label: LABEL_OPTIONAL 326 type: TYPE_UINT64 327 json_name: "totalCache" 328 } 329 field { 330 name: "total_rss" 331 number: 19 332 label: LABEL_OPTIONAL 333 type: TYPE_UINT64 334 json_name: "totalRss" 335 } 336 field { 337 name: "total_rss_huge" 338 number: 20 339 label: LABEL_OPTIONAL 340 type: TYPE_UINT64 341 json_name: "totalRssHuge" 342 } 343 field { 344 name: "total_mapped_file" 345 number: 21 346 label: LABEL_OPTIONAL 347 type: TYPE_UINT64 348 json_name: "totalMappedFile" 349 } 350 field { 351 name: "total_dirty" 352 number: 22 353 label: LABEL_OPTIONAL 354 type: TYPE_UINT64 355 json_name: "totalDirty" 356 } 357 field { 358 name: "total_writeback" 359 number: 23 360 label: LABEL_OPTIONAL 361 type: TYPE_UINT64 362 json_name: "totalWriteback" 363 } 364 field { 365 name: "total_pg_pg_in" 366 number: 24 367 label: LABEL_OPTIONAL 368 type: TYPE_UINT64 369 json_name: "totalPgPgIn" 370 } 371 field { 372 name: "total_pg_pg_out" 373 number: 25 374 label: LABEL_OPTIONAL 375 type: TYPE_UINT64 376 json_name: "totalPgPgOut" 377 } 378 field { 379 name: "total_pg_fault" 380 number: 26 381 label: LABEL_OPTIONAL 382 type: TYPE_UINT64 383 json_name: "totalPgFault" 384 } 385 field { 386 name: "total_pg_maj_fault" 387 number: 27 388 label: LABEL_OPTIONAL 389 type: TYPE_UINT64 390 json_name: "totalPgMajFault" 391 } 392 field { 393 name: "total_inactive_anon" 394 number: 28 395 label: LABEL_OPTIONAL 396 type: TYPE_UINT64 397 json_name: "totalInactiveAnon" 398 } 399 field { 400 name: "total_active_anon" 401 number: 29 402 label: LABEL_OPTIONAL 403 type: TYPE_UINT64 404 json_name: "totalActiveAnon" 405 } 406 field { 407 name: "total_inactive_file" 408 number: 30 409 label: LABEL_OPTIONAL 410 type: TYPE_UINT64 411 json_name: "totalInactiveFile" 412 } 413 field { 414 name: "total_active_file" 415 number: 31 416 label: LABEL_OPTIONAL 417 type: TYPE_UINT64 418 json_name: "totalActiveFile" 419 } 420 field { 421 name: "total_unevictable" 422 number: 32 423 label: LABEL_OPTIONAL 424 type: TYPE_UINT64 425 json_name: "totalUnevictable" 426 } 427 field { 428 name: "usage" 429 number: 33 430 label: LABEL_OPTIONAL 431 type: TYPE_MESSAGE 432 type_name: ".io.containerd.cgroups.v1.MemoryEntry" 433 json_name: "usage" 434 } 435 field { 436 name: "swap" 437 number: 34 438 label: LABEL_OPTIONAL 439 type: TYPE_MESSAGE 440 type_name: ".io.containerd.cgroups.v1.MemoryEntry" 441 json_name: "swap" 442 } 443 field { 444 name: "kernel" 445 number: 35 446 label: LABEL_OPTIONAL 447 type: TYPE_MESSAGE 448 type_name: ".io.containerd.cgroups.v1.MemoryEntry" 449 json_name: "kernel" 450 } 451 field { 452 name: "kernel_tcp" 453 number: 36 454 label: LABEL_OPTIONAL 455 type: TYPE_MESSAGE 456 type_name: ".io.containerd.cgroups.v1.MemoryEntry" 457 json_name: "kernelTcp" 458 } 459 } 460 message_type { 461 name: "MemoryEntry" 462 field { 463 name: "limit" 464 number: 1 465 label: LABEL_OPTIONAL 466 type: TYPE_UINT64 467 json_name: "limit" 468 } 469 field { 470 name: "usage" 471 number: 2 472 label: LABEL_OPTIONAL 473 type: TYPE_UINT64 474 json_name: "usage" 475 } 476 field { 477 name: "max" 478 number: 3 479 label: LABEL_OPTIONAL 480 type: TYPE_UINT64 481 json_name: "max" 482 } 483 field { 484 name: "failcnt" 485 number: 4 486 label: LABEL_OPTIONAL 487 type: TYPE_UINT64 488 json_name: "failcnt" 489 } 490 } 491 message_type { 492 name: "MemoryOomControl" 493 field { 494 name: "oom_kill_disable" 495 number: 1 496 label: LABEL_OPTIONAL 497 type: TYPE_UINT64 498 json_name: "oomKillDisable" 499 } 500 field { 501 name: "under_oom" 502 number: 2 503 label: LABEL_OPTIONAL 504 type: TYPE_UINT64 505 json_name: "underOom" 506 } 507 field { 508 name: "oom_kill" 509 number: 3 510 label: LABEL_OPTIONAL 511 type: TYPE_UINT64 512 json_name: "oomKill" 513 } 514 } 515 message_type { 516 name: "BlkIOStat" 517 field { 518 name: "io_service_bytes_recursive" 519 number: 1 520 label: LABEL_REPEATED 521 type: TYPE_MESSAGE 522 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 523 json_name: "ioServiceBytesRecursive" 524 } 525 field { 526 name: "io_serviced_recursive" 527 number: 2 528 label: LABEL_REPEATED 529 type: TYPE_MESSAGE 530 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 531 json_name: "ioServicedRecursive" 532 } 533 field { 534 name: "io_queued_recursive" 535 number: 3 536 label: LABEL_REPEATED 537 type: TYPE_MESSAGE 538 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 539 json_name: "ioQueuedRecursive" 540 } 541 field { 542 name: "io_service_time_recursive" 543 number: 4 544 label: LABEL_REPEATED 545 type: TYPE_MESSAGE 546 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 547 json_name: "ioServiceTimeRecursive" 548 } 549 field { 550 name: "io_wait_time_recursive" 551 number: 5 552 label: LABEL_REPEATED 553 type: TYPE_MESSAGE 554 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 555 json_name: "ioWaitTimeRecursive" 556 } 557 field { 558 name: "io_merged_recursive" 559 number: 6 560 label: LABEL_REPEATED 561 type: TYPE_MESSAGE 562 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 563 json_name: "ioMergedRecursive" 564 } 565 field { 566 name: "io_time_recursive" 567 number: 7 568 label: LABEL_REPEATED 569 type: TYPE_MESSAGE 570 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 571 json_name: "ioTimeRecursive" 572 } 573 field { 574 name: "sectors_recursive" 575 number: 8 576 label: LABEL_REPEATED 577 type: TYPE_MESSAGE 578 type_name: ".io.containerd.cgroups.v1.BlkIOEntry" 579 json_name: "sectorsRecursive" 580 } 581 } 582 message_type { 583 name: "BlkIOEntry" 584 field { 585 name: "op" 586 number: 1 587 label: LABEL_OPTIONAL 588 type: TYPE_STRING 589 json_name: "op" 590 } 591 field { 592 name: "device" 593 number: 2 594 label: LABEL_OPTIONAL 595 type: TYPE_STRING 596 json_name: "device" 597 } 598 field { 599 name: "major" 600 number: 3 601 label: LABEL_OPTIONAL 602 type: TYPE_UINT64 603 json_name: "major" 604 } 605 field { 606 name: "minor" 607 number: 4 608 label: LABEL_OPTIONAL 609 type: TYPE_UINT64 610 json_name: "minor" 611 } 612 field { 613 name: "value" 614 number: 5 615 label: LABEL_OPTIONAL 616 type: TYPE_UINT64 617 json_name: "value" 618 } 619 } 620 message_type { 621 name: "RdmaStat" 622 field { 623 name: "current" 624 number: 1 625 label: LABEL_REPEATED 626 type: TYPE_MESSAGE 627 type_name: ".io.containerd.cgroups.v1.RdmaEntry" 628 json_name: "current" 629 } 630 field { 631 name: "limit" 632 number: 2 633 label: LABEL_REPEATED 634 type: TYPE_MESSAGE 635 type_name: ".io.containerd.cgroups.v1.RdmaEntry" 636 json_name: "limit" 637 } 638 } 639 message_type { 640 name: "RdmaEntry" 641 field { 642 name: "device" 643 number: 1 644 label: LABEL_OPTIONAL 645 type: TYPE_STRING 646 json_name: "device" 647 } 648 field { 649 name: "hca_handles" 650 number: 2 651 label: LABEL_OPTIONAL 652 type: TYPE_UINT32 653 json_name: "hcaHandles" 654 } 655 field { 656 name: "hca_objects" 657 number: 3 658 label: LABEL_OPTIONAL 659 type: TYPE_UINT32 660 json_name: "hcaObjects" 661 } 662 } 663 message_type { 664 name: "NetworkStat" 665 field { 666 name: "name" 667 number: 1 668 label: LABEL_OPTIONAL 669 type: TYPE_STRING 670 json_name: "name" 671 } 672 field { 673 name: "rx_bytes" 674 number: 2 675 label: LABEL_OPTIONAL 676 type: TYPE_UINT64 677 json_name: "rxBytes" 678 } 679 field { 680 name: "rx_packets" 681 number: 3 682 label: LABEL_OPTIONAL 683 type: TYPE_UINT64 684 json_name: "rxPackets" 685 } 686 field { 687 name: "rx_errors" 688 number: 4 689 label: LABEL_OPTIONAL 690 type: TYPE_UINT64 691 json_name: "rxErrors" 692 } 693 field { 694 name: "rx_dropped" 695 number: 5 696 label: LABEL_OPTIONAL 697 type: TYPE_UINT64 698 json_name: "rxDropped" 699 } 700 field { 701 name: "tx_bytes" 702 number: 6 703 label: LABEL_OPTIONAL 704 type: TYPE_UINT64 705 json_name: "txBytes" 706 } 707 field { 708 name: "tx_packets" 709 number: 7 710 label: LABEL_OPTIONAL 711 type: TYPE_UINT64 712 json_name: "txPackets" 713 } 714 field { 715 name: "tx_errors" 716 number: 8 717 label: LABEL_OPTIONAL 718 type: TYPE_UINT64 719 json_name: "txErrors" 720 } 721 field { 722 name: "tx_dropped" 723 number: 9 724 label: LABEL_OPTIONAL 725 type: TYPE_UINT64 726 json_name: "txDropped" 727 } 728 } 729 message_type { 730 name: "CgroupStats" 731 field { 732 name: "nr_sleeping" 733 number: 1 734 label: LABEL_OPTIONAL 735 type: TYPE_UINT64 736 json_name: "nrSleeping" 737 } 738 field { 739 name: "nr_running" 740 number: 2 741 label: LABEL_OPTIONAL 742 type: TYPE_UINT64 743 json_name: "nrRunning" 744 } 745 field { 746 name: "nr_stopped" 747 number: 3 748 label: LABEL_OPTIONAL 749 type: TYPE_UINT64 750 json_name: "nrStopped" 751 } 752 field { 753 name: "nr_uninterruptible" 754 number: 4 755 label: LABEL_OPTIONAL 756 type: TYPE_UINT64 757 json_name: "nrUninterruptible" 758 } 759 field { 760 name: "nr_io_wait" 761 number: 5 762 label: LABEL_OPTIONAL 763 type: TYPE_UINT64 764 json_name: "nrIoWait" 765 } 766 } 767 options { 768 go_package: "github.com/containerd/cgroups/cgroup1/stats" 769 } 770 syntax: "proto3" 771 }