Opensearch dashboards.metricsservicesetup.getopsmetrics
Home > opensearch-dashboards > MetricsServiceSetup > getOpsMetrics$
MetricsServiceSetup.getOpsMetrics$ property
Retrieve an observable emitting the OpsMetrics gathered. The observable will emit an initial value during core's start
phase, and a new value every fixed interval of time, based on the opts.interval
configuration property.
Signature:
getOpsMetrics$: () => Observable<OpsMetrics>;
Example
core.metrics.getOpsMetrics$().subscribe(metrics => {
// do something with the metrics
})