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 the metrics are reporting to Lightstep from the Metric details section of the Project Settings page.
Open the Project settings page and scroll to the Metric details section.
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
Use the Lightstep Terraform Provider to create a dashboard for the metrics.