pub struct HystrixSink {
pub num_buckets: i64,
}
Expand description
Stats configuration proto schema for built-in envoy.stat_sinks.hystrix
sink.
The sink emits stats in text/event-stream <<https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events>
>
formatted stream for use by Hystrix dashboard <<https://github.com/Netflix-Skunkworks/hystrix-dashboard/wiki>
.>
Note that only a single HystrixSink should be configured.
Streaming is started through an admin endpoint :http:get:/hystrix_event_stream
.
[#extension: envoy.stat_sinks.hystrix]
Fields§
§num_buckets: i64
The number of buckets the rolling statistical window is divided into.
Each time the sink is flushed, all relevant Envoy statistics are sampled and added to the rolling window (removing the oldest samples in the window in the process). The sink then outputs the aggregate statistics across the current rolling window to the event stream(s).
rolling_window(ms)
= stats_flush_interval(ms)
* num_of_buckets
More detailed explanation can be found in Hystrix wiki <<https://github.com/Netflix/Hystrix/wiki/Metrics-and-Monitoring#hystrixrollingnumber>
_.>
Trait Implementations§
Source§impl Clone for HystrixSink
impl Clone for HystrixSink
Source§fn clone(&self) -> HystrixSink
fn clone(&self) -> HystrixSink
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for HystrixSink
impl Debug for HystrixSink
Source§impl Default for HystrixSink
impl Default for HystrixSink
Source§impl Message for HystrixSink
impl Message for HystrixSink
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for HystrixSink
impl Name for HystrixSink
Source§const NAME: &'static str = "HystrixSink"
const NAME: &'static str = "HystrixSink"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "envoy.config.metrics.v3"
const PACKAGE: &'static str = "envoy.config.metrics.v3"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for HystrixSink
impl PartialEq for HystrixSink
impl Copy for HystrixSink
impl StructuralPartialEq for HystrixSink
Auto Trait Implementations§
impl Freeze for HystrixSink
impl RefUnwindSafe for HystrixSink
impl Send for HystrixSink
impl Sync for HystrixSink
impl Unpin for HystrixSink
impl UnwindSafe for HystrixSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request