Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
EchoSrv interface
Used to send events to all the registered backends. This should be accessed via the getEchoSrv() function. Will, by default, flush events to the backends every 10s or when the flush function is triggered.
Signature
typescript
export interface EchoSrv
Import
typescript
import { EchoSrv } from '@grafana/runtime';
Methods
Method | Description |
---|---|
addBackend(backend) | Add a new echo backend to the list of backends that will receive events. |
addEvent(event, meta) | Call this to add event that will be sent to the echo backends upon next flush. |
flush() | Call this to flush current events to the echo backends. |
addBackend method
Add a new echo backend to the list of backends that will receive events.
Signature
typescript
addBackend(backend: EchoBackend): void;
Parameters
Parameter | Type | Description |
---|---|---|
backend | EchoBackend |
Returns:
void
addEvent method
Call this to add event that will be sent to the echo backends upon next flush.
Signature
typescript
addEvent<T extends EchoEvent>(event: Omit<T, 'meta'>, meta?: {}): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | Omit<T, ‘meta’> | Object containing event information. |
meta | {} | Object that will extend/override the default meta object. |
Returns:
void
flush method
Call this to flush current events to the echo backends.
Signature
typescript
flush(): void;
Returns:
void
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.

Getting started with Grafana dashboard design (EMEA Timezone)
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.