pub struct OtlpHttpMetricsClient { /* private fields */ }Expand description
HTTP client for querying the agent’s OTLP metrics store.
Sends GET requests to /api/otlp/metrics/* endpoints on the agent daemon.
Implementations§
Trait Implementations§
Source§impl MetricsClient for OtlpHttpMetricsClient
impl MetricsClient for OtlpHttpMetricsClient
Source§fn query(&self, request: QueryRequest, ctx: &Context) -> Promise<QueryResult>
fn query(&self, request: QueryRequest, ctx: &Context) -> Promise<QueryResult>
Execute a query request (non-blocking). Read more
Source§fn fetch_label_names(&self, ctx: &Context) -> Promise<LabelsResult>
fn fetch_label_names(&self, ctx: &Context) -> Promise<LabelsResult>
Fetch all available label names (tag keys) from the backend. Read more
Source§fn fetch_label_values(
&self,
label: &str,
ctx: &Context,
) -> Promise<LabelsResult>
fn fetch_label_values( &self, label: &str, ctx: &Context, ) -> Promise<LabelsResult>
Fetch all values for a specific label (tag key) from the backend. Read more
Source§fn fetch_metric_names(&self, ctx: &Context) -> Promise<LabelsResult>
fn fetch_metric_names(&self, ctx: &Context) -> Promise<LabelsResult>
Fetch all metric names from the backend. Read more
Source§fn fetch_metric_labels(
&self,
metric: &str,
ctx: &Context,
) -> Promise<MetricLabelsResult>
fn fetch_metric_labels( &self, metric: &str, ctx: &Context, ) -> Promise<MetricLabelsResult>
Fetch labels for a specific metric. Read more
Source§fn backend_type(&self) -> &'static str
fn backend_type(&self) -> &'static str
Get the backend type identifier (e.g., “prometheus”, “enya”).
Source§fn health_check(&self, ctx: &Context) -> Promise<HealthCheckResult>
fn health_check(&self, ctx: &Context) -> Promise<HealthCheckResult>
Check backend health and connectivity. Read more
Auto Trait Implementations§
impl Freeze for OtlpHttpMetricsClient
impl !RefUnwindSafe for OtlpHttpMetricsClient
impl Send for OtlpHttpMetricsClient
impl Sync for OtlpHttpMetricsClient
impl Unpin for OtlpHttpMetricsClient
impl UnsafeUnpin for OtlpHttpMetricsClient
impl !UnwindSafe for OtlpHttpMetricsClient
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
Mutably borrows from an owned value. Read more