You can use Telegraf to collect Redis metrics, use Logtail to send the metric data to a MetricStore, and then create a dashboard to visualize the Redis metrics. This topic describes how to use Log Service to collect metrics from a Redis server and visualize the Redis metrics.
Prerequisites
- Linux Logtail 0.16.48 or later is installed on the Redis server. For more information, see Install Logtail on a Linux server.
- Telegraf is installed on a server that is connected to the Redis server over a private network.
Procedure
FAQ
How can I check whether Telegraf collects data as expected?
You can check the logs of the /etc/ilogtail/telegraf/telegraf.log file on your server. You can also collect this log file to Log Service and search for the required information.
What to do next
- Query and analyze metrics
After the configuration, Telegraf uses Logtail to upload collected metrics to the MetricStore of Log Service. You can query the data on the Search & Analysis page of the MetricStore. For more information, see Query and analyze time series data.
- Visualize metrics
After the configuration, Log Service automatically creates a dashboard named Redis Monitoring Data_<cluster name> in the related project. In the dashboard, you can perform the required operations. For example, you can view query results or configure alert rules.