Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Memcached ist ein speicherinterner Schlüssel/Wert-Speicher, in dem kleine Segmente mit diversen Daten wie Zeichenfolgen oder Objekte aus Datenbankabfragen, API-Aufrufen oder dem Seiten-Rendering gespeichert werden.
Weitere Informationen erhalten Sie unter memcached.org.
Diese Funktion ist nur für Agenten verfügbar, die unter Linux ausgeführt werden. Sie ist unter Windows nicht verfügbar.
Discovery
So erkennt Cloud Monitoring in Ihrem Cloud Platform-Projekt ausgeführte Memcached-Dienste auch, wenn das Memcached-Plug-in nicht konfiguriert ist:
Anhand der Angabe memcached in Instanznamen
Anhand von Ports, die über Firewallregeln für 11211 geöffnet sind
So rufen Sie die Messwerte für Memcached auf:
Öffnen Sie in der Google Cloud Console die Seite Dashboards:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[],[],null,["# Memcached plugin\n\nMemcached is an in-memory key-value store for small chunks of arbitrary data\n(strings, objects) from results of database calls, API calls, or page rendering.\nFor more information visit [memcached.org](http://www.memcached.org/).\n\nThis functionality is only available for agents running on Linux. It is\nnot available on Windows.\n| **Note:** You can now collect metrics from your Memcached instance using the [Ops Agent](/stackdriver/docs/solutions/agents/ops-agent), the primary and preferred agent for collecting telemetry from your Compute Engine instances. For details, see [configuring the Ops Agent for\n| Memcached](/stackdriver/docs/solutions/agents/ops-agent/third-party/memcached).\n\nDiscovery\n---------\n\nEven if the memcached plugin is not configured, Cloud Monitoring will\ndiscover memcached services running in your Cloud Platform project by:\n\n- Searching instance names for **memcached**\n- Checking for ports opened to **11211** via firewall rules\n\nTo see the metrics for Memcached, do the following:\n\n1. In the Google Cloud console, go to the **Dashboards** page:\n\n [Go to **Dashboards**](https://console.cloud.google.com/monitoring/dashboards)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. Select the **Memcached** dashboard from the list.\n\nConfiguring Monitoring to monitor memcached\n-------------------------------------------\n\nAfter you [install the monitoring agent](/monitoring/agent/monitoring/installation), use the following\ninstructions to configure the memcached plugin on your instances.\n\n### Enabling the memcached monitoring plugin\n\nOn your VM instance, download [memcached.conf](https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/memcached.conf)\nfrom the [GitHub configuration repository](https://github.com/Stackdriver/stackdriver-agent-service-configs)\nand place it in the directory `/etc/stackdriver/collectd.d/`: \n\n (cd /etc/stackdriver/collectd.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/collectd.d/memcached.conf)\n\nAfter adding the configuration file, restart the monitoring agent by running the following command: \n\n sudo service stackdriver-agent restart\n\nFor more information on the `collectd` `memcached` plugin, see\n[Plugin:memcached](https://collectd.org/wiki/index.php/Plugin:memcached).\n\nWhat is monitored\n-----------------\n\nThe full list of metrics the Memcached plugin monitors is at\n[Agent metrics: memcached](/monitoring/api/metrics_agent#agent-memcached)."]]