The OpenTelemetry Collector provides an integration with Memcached to ingest metrics. The Collector synthesizes metrics by scraping stats from a running Memcached instance. From there the metrics are processed and exported to Cloud Observability.

To complete the integration, you will configure the Memcached receiver for the Collector. The receiver periodically executes the Memcache Stats command and synthesize metrics from the results.

You then need to enable the integration by adding it to a pipeline.


  • A running Memcached instance
  • You’ve configured the Collector to export metric data to Cloud Observability.

Configure the Collector receiver

In the Collector configuration file, add Memcached as a receiver and set the following:

  • endpoint: The hostname/IP address and port or, unix socket file path of the memcached instance
    endpoint: "localhost:11211"

The OpenTelemetry repo provides additional details about Memcached configuration.

Enable the Collector receiver

Once the Memcached receiver is configured, enable it by adding it to one or more pipelines as described in the Collector configuration documentation.

Validate metrics are reporting to Cloud Observability

You can validate that metrics are reporting to Cloud Observability on the Metrics details page in Settings.

  1. In Cloud Observability, click Settings > Metric details.

  2. Search for Memcached metric names. Search for metric

    See the repo documentation for a complete list of emitted metrics.

  3. If needed, click on the metric to edit the description and how the units are displayed in Cloud Observability.

Create a dashboard for the metrics

You can create a pre-built dashboard for this integration from the Dashboard list view. Or use the Cloud Observability Terraform Provider to create a dashboard.

Additional resources

See also

Create and manage dashboards

Create alerts

Updated Dec 1, 2022