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 Lightstep 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 Lightstep 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
1 2 3 receivers: memcached: 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 Lightstep
You can validate that metrics are reporting to Lightstep on the Metrics details page in Project settings.
In Lightstep, click Project settings > Metric details.
Search for Memcached metric names.
See the repo documentation for a complete list of emitted metrics.
If needed, click on the metric to edit the description and how the units are displayed in Lightstep.
Create a dashboard for the metrics
You can create a pre-built dashboard for this integration from the Dashboard list view. Or use the Lightstep Terraform Provider to create a dashboard.
For a more complete example that’s ready to run, see the Memcached integration in Lightstep OpenTelemetry Examples.