You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
6.8 KiB
158 lines
6.8 KiB
5 years ago
|
syntax = "proto3";
|
||
|
|
||
5 years ago
|
package envoy.admin.v3;
|
||
5 years ago
|
|
||
5 years ago
|
import "envoy/admin/v3/metrics.proto";
|
||
|
import "envoy/config/core/v3/address.proto";
|
||
|
import "envoy/config/core/v3/health_check.proto";
|
||
|
import "envoy/type/v3/percent.proto";
|
||
5 years ago
|
|
||
5 years ago
|
import "udpa/annotations/versioning.proto";
|
||
5 years ago
|
|
||
5 years ago
|
option java_package = "io.envoyproxy.envoy.admin.v3";
|
||
5 years ago
|
option java_outer_classname = "ClustersProto";
|
||
|
option java_multiple_files = true;
|
||
|
|
||
5 years ago
|
// [#protodoc-title: Clusters]
|
||
|
|
||
|
// Admin endpoint uses this wrapper for `/clusters` to display cluster status information.
|
||
|
// See :ref:`/clusters <operations_admin_interface_clusters>` for more information.
|
||
|
message Clusters {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Clusters";
|
||
5 years ago
|
|
||
5 years ago
|
// Mapping from cluster name to each cluster's status.
|
||
|
repeated ClusterStatus cluster_statuses = 1;
|
||
|
}
|
||
|
|
||
|
// Details an individual cluster's current status.
|
||
5 years ago
|
// [#next-free-field: 6]
|
||
5 years ago
|
message ClusterStatus {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.ClusterStatus";
|
||
5 years ago
|
|
||
5 years ago
|
// Name of the cluster.
|
||
|
string name = 1;
|
||
|
|
||
|
// Denotes whether this cluster was added via API or configured statically.
|
||
|
bool added_via_api = 2;
|
||
|
|
||
|
// The success rate threshold used in the last interval.
|
||
|
// If
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *false*, all errors: externally and locally generated were used to calculate the threshold.
|
||
|
// If
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *true*, only externally generated errors were used to calculate the threshold.
|
||
|
// The threshold is used to eject hosts based on their success rate. See
|
||
|
// :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for details.
|
||
|
//
|
||
|
// Note: this field may be omitted in any of the three following cases:
|
||
|
//
|
||
|
// 1. There were not enough hosts with enough request volume to proceed with success rate based
|
||
|
// outlier ejection.
|
||
|
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
|
||
|
// threshold for that interval.
|
||
|
// 3. Outlier detection is not enabled for this cluster.
|
||
5 years ago
|
type.v3.Percent success_rate_ejection_threshold = 3;
|
||
5 years ago
|
|
||
|
// Mapping from host address to the host's current status.
|
||
|
repeated HostStatus host_statuses = 4;
|
||
|
|
||
|
// The success rate threshold used in the last interval when only locally originated failures were
|
||
|
// taken into account and externally originated errors were treated as success.
|
||
5 years ago
|
// This field should be interpreted only when
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *true*. The threshold is used to eject hosts based on their success rate.
|
||
|
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
|
||
|
// details.
|
||
|
//
|
||
|
// Note: this field may be omitted in any of the three following cases:
|
||
|
//
|
||
|
// 1. There were not enough hosts with enough request volume to proceed with success rate based
|
||
|
// outlier ejection.
|
||
|
// 2. The threshold is computed to be < 0 because a negative value implies that there was no
|
||
|
// threshold for that interval.
|
||
|
// 3. Outlier detection is not enabled for this cluster.
|
||
5 years ago
|
type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
|
||
5 years ago
|
}
|
||
|
|
||
|
// Current state of a particular host.
|
||
5 years ago
|
// [#next-free-field: 9]
|
||
5 years ago
|
message HostStatus {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.HostStatus";
|
||
5 years ago
|
|
||
5 years ago
|
// Address of this host.
|
||
5 years ago
|
config.core.v3.Address address = 1;
|
||
5 years ago
|
|
||
|
// List of stats specific to this host.
|
||
|
repeated SimpleMetric stats = 2;
|
||
|
|
||
|
// The host's current health status.
|
||
|
HostHealthStatus health_status = 3;
|
||
|
|
||
|
// Request success rate for this host over the last calculated interval.
|
||
|
// If
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *false*, all errors: externally and locally generated were used in success rate
|
||
|
// calculation. If
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *true*, only externally generated errors were used in success rate calculation.
|
||
|
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
|
||
|
// details.
|
||
|
//
|
||
|
// Note: the message will not be present if host did not have enough request volume to calculate
|
||
|
// success rate or the cluster did not have enough hosts to run through success rate outlier
|
||
|
// ejection.
|
||
5 years ago
|
type.v3.Percent success_rate = 4;
|
||
5 years ago
|
|
||
|
// The host's weight. If not configured, the value defaults to 1.
|
||
|
uint32 weight = 5;
|
||
|
|
||
|
// The hostname of the host, if applicable.
|
||
|
string hostname = 6;
|
||
|
|
||
|
// The host's priority. If not configured, the value defaults to 0 (highest priority).
|
||
|
uint32 priority = 7;
|
||
|
|
||
|
// Request success rate for this host over the last calculated
|
||
|
// interval when only locally originated errors are taken into account and externally originated
|
||
|
// errors were treated as success.
|
||
5 years ago
|
// This field should be interpreted only when
|
||
5 years ago
|
// :ref:`outlier_detection.split_external_local_origin_errors<envoy_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>`
|
||
5 years ago
|
// is *true*.
|
||
|
// See :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation for
|
||
|
// details.
|
||
|
//
|
||
|
// Note: the message will not be present if host did not have enough request volume to calculate
|
||
|
// success rate or the cluster did not have enough hosts to run through success rate outlier
|
||
|
// ejection.
|
||
5 years ago
|
type.v3.Percent local_origin_success_rate = 8;
|
||
5 years ago
|
}
|
||
|
|
||
|
// Health status for a host.
|
||
5 years ago
|
// [#next-free-field: 7]
|
||
5 years ago
|
message HostHealthStatus {
|
||
5 years ago
|
option (udpa.annotations.versioning).previous_message_type =
|
||
5 years ago
|
"envoy.admin.v2alpha.HostHealthStatus";
|
||
|
|
||
5 years ago
|
// The host is currently failing active health checks.
|
||
|
bool failed_active_health_check = 1;
|
||
|
|
||
|
// The host is currently considered an outlier and has been ejected.
|
||
|
bool failed_outlier_check = 2;
|
||
|
|
||
|
// The host is currently being marked as degraded through active health checking.
|
||
|
bool failed_active_degraded_check = 4;
|
||
|
|
||
|
// The host has been removed from service discovery, but is being stabilized due to active
|
||
|
// health checking.
|
||
|
bool pending_dynamic_removal = 5;
|
||
|
|
||
|
// The host has not yet been health checked.
|
||
|
bool pending_active_hc = 6;
|
||
|
|
||
|
// Health status as reported by EDS. Note: only HEALTHY and UNHEALTHY are currently supported
|
||
|
// here.
|
||
5 years ago
|
// [#comment:TODO(mrice32): pipe through remaining EDS health status possibilities.]
|
||
5 years ago
|
config.core.v3.HealthStatus eds_health_status = 3;
|
||
5 years ago
|
}
|