server_info.proto 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. syntax = "proto3";
  2. package envoy.admin.v2alpha;
  3. import "google/protobuf/duration.proto";
  4. import "envoy/annotations/deprecation.proto";
  5. import "udpa/annotations/status.proto";
  6. option java_package = "io.envoyproxy.envoy.admin.v2alpha";
  7. option java_outer_classname = "ServerInfoProto";
  8. option java_multiple_files = true;
  9. option go_package = "github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha";
  10. option (udpa.annotations.file_status).package_version_status = FROZEN;
  11. // [#protodoc-title: Server State]
  12. // Proto representation of the value returned by /server_info, containing
  13. // server version/server status information.
  14. // [#next-free-field: 7]
  15. message ServerInfo {
  16. enum State {
  17. // Server is live and serving traffic.
  18. LIVE = 0;
  19. // Server is draining listeners in response to external health checks failing.
  20. DRAINING = 1;
  21. // Server has not yet completed cluster manager initialization.
  22. PRE_INITIALIZING = 2;
  23. // Server is running the cluster manager initialization callbacks (e.g., RDS).
  24. INITIALIZING = 3;
  25. }
  26. // Server version.
  27. string version = 1;
  28. // State of the server.
  29. State state = 2;
  30. // Uptime since current epoch was started.
  31. google.protobuf.Duration uptime_current_epoch = 3;
  32. // Uptime since the start of the first epoch.
  33. google.protobuf.Duration uptime_all_epochs = 4;
  34. // Hot restart version.
  35. string hot_restart_version = 5;
  36. // Command line options the server is currently running with.
  37. CommandLineOptions command_line_options = 6;
  38. }
  39. // [#next-free-field: 29]
  40. message CommandLineOptions {
  41. enum IpVersion {
  42. v4 = 0;
  43. v6 = 1;
  44. }
  45. enum Mode {
  46. // Validate configs and then serve traffic normally.
  47. Serve = 0;
  48. // Validate configs and exit.
  49. Validate = 1;
  50. // Completely load and initialize the config, and then exit without running the listener loop.
  51. InitOnly = 2;
  52. }
  53. reserved 12;
  54. // See :option:`--base-id` for details.
  55. uint64 base_id = 1;
  56. // See :option:`--concurrency` for details.
  57. uint32 concurrency = 2;
  58. // See :option:`--config-path` for details.
  59. string config_path = 3;
  60. // See :option:`--config-yaml` for details.
  61. string config_yaml = 4;
  62. // See :option:`--allow-unknown-static-fields` for details.
  63. bool allow_unknown_static_fields = 5;
  64. // See :option:`--reject-unknown-dynamic-fields` for details.
  65. bool reject_unknown_dynamic_fields = 26;
  66. // See :option:`--admin-address-path` for details.
  67. string admin_address_path = 6;
  68. // See :option:`--local-address-ip-version` for details.
  69. IpVersion local_address_ip_version = 7;
  70. // See :option:`--log-level` for details.
  71. string log_level = 8;
  72. // See :option:`--component-log-level` for details.
  73. string component_log_level = 9;
  74. // See :option:`--log-format` for details.
  75. string log_format = 10;
  76. // See :option:`--log-format-escaped` for details.
  77. bool log_format_escaped = 27;
  78. // See :option:`--log-path` for details.
  79. string log_path = 11;
  80. // See :option:`--service-cluster` for details.
  81. string service_cluster = 13;
  82. // See :option:`--service-node` for details.
  83. string service_node = 14;
  84. // See :option:`--service-zone` for details.
  85. string service_zone = 15;
  86. // See :option:`--file-flush-interval-msec` for details.
  87. google.protobuf.Duration file_flush_interval = 16;
  88. // See :option:`--drain-time-s` for details.
  89. google.protobuf.Duration drain_time = 17;
  90. // See :option:`--parent-shutdown-time-s` for details.
  91. google.protobuf.Duration parent_shutdown_time = 18;
  92. // See :option:`--mode` for details.
  93. Mode mode = 19;
  94. // max_stats and max_obj_name_len are now unused and have no effect.
  95. uint64 max_stats = 20 [deprecated = true, (envoy.annotations.disallowed_by_default) = true];
  96. uint64 max_obj_name_len = 21
  97. [deprecated = true, (envoy.annotations.disallowed_by_default) = true];
  98. // See :option:`--disable-hot-restart` for details.
  99. bool disable_hot_restart = 22;
  100. // See :option:`--enable-mutex-tracing` for details.
  101. bool enable_mutex_tracing = 23;
  102. // See :option:`--restart-epoch` for details.
  103. uint32 restart_epoch = 24;
  104. // See :option:`--cpuset-threads` for details.
  105. bool cpuset_threads = 25;
  106. // See :option:`--disable-extensions` for details.
  107. repeated string disabled_extensions = 28;
  108. }