admin: Add circuit breaker settings to /clusters?format=json (#13296)

Signed-off-by: Dhi Aurrahman <dio@tetrate.io>

Mirrored from https://github.com/envoyproxy/envoy @ ed1ee215dff93c50d5d4770cb1f6dc7e419f6c3d
master-ci-test
data-plane-api(CircleCI) 4 years ago
parent e0c1eefe2a
commit b291d5b103
  1. 1
      envoy/admin/v3/BUILD
  2. 6
      envoy/admin/v3/clusters.proto
  3. 1
      envoy/admin/v4alpha/BUILD
  4. 6
      envoy/admin/v4alpha/clusters.proto

@ -9,6 +9,7 @@ api_proto_package(
"//envoy/admin/v2alpha:pkg",
"//envoy/annotations:pkg",
"//envoy/config/bootstrap/v3:pkg",
"//envoy/config/cluster/v3:pkg",
"//envoy/config/core/v3:pkg",
"//envoy/config/tap/v3:pkg",
"//envoy/type/v3:pkg",

@ -3,6 +3,7 @@ syntax = "proto3";
package envoy.admin.v3;
import "envoy/admin/v3/metrics.proto";
import "envoy/config/cluster/v3/circuit_breaker.proto";
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/health_check.proto";
@ -28,7 +29,7 @@ message Clusters {
}
// Details an individual cluster's current status.
// [#next-free-field: 6]
// [#next-free-field: 7]
message ClusterStatus {
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.ClusterStatus";
@ -76,6 +77,9 @@ message ClusterStatus {
// threshold for that interval.
// 3. Outlier detection is not enabled for this cluster.
type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
// :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
config.cluster.v3.CircuitBreakers circuit_breakers = 6;
}
// Current state of a particular host.

@ -9,6 +9,7 @@ api_proto_package(
"//envoy/admin/v3:pkg",
"//envoy/annotations:pkg",
"//envoy/config/bootstrap/v4alpha:pkg",
"//envoy/config/cluster/v4alpha:pkg",
"//envoy/config/core/v4alpha:pkg",
"//envoy/config/tap/v4alpha:pkg",
"//envoy/type/v3:pkg",

@ -3,6 +3,7 @@ syntax = "proto3";
package envoy.admin.v4alpha;
import "envoy/admin/v4alpha/metrics.proto";
import "envoy/config/cluster/v4alpha/circuit_breaker.proto";
import "envoy/config/core/v4alpha/address.proto";
import "envoy/config/core/v4alpha/base.proto";
import "envoy/config/core/v4alpha/health_check.proto";
@ -28,7 +29,7 @@ message Clusters {
}
// Details an individual cluster's current status.
// [#next-free-field: 6]
// [#next-free-field: 7]
message ClusterStatus {
option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v3.ClusterStatus";
@ -76,6 +77,9 @@ message ClusterStatus {
// threshold for that interval.
// 3. Outlier detection is not enabled for this cluster.
type.v3.Percent local_origin_success_rate_ejection_threshold = 5;
// :ref:`Circuit breaking <arch_overview_circuit_break>` settings of the cluster.
config.cluster.v4alpha.CircuitBreakers circuit_breakers = 6;
}
// Current state of a particular host.

Loading…
Cancel
Save