Release Notes
Announcements
### Monitor the SpringBoot project.- job_name: 'monitor'scrape_interval: 5smetrics_path: '/actuator/prometheus'static_configs:- targets: ['172.27.XX.XX:8080']
./prometheus --config.file=prometheus.yml
http://localhost:9090 through the browser to view the Prometheus management interface.

#!/bin/bash# Initialize the counter.counter=1# Infinite loop.while true; do# Generate the current key and value, which changes every time.key="test${counter}"value="Hello${counter}"# Run the CURL command to call the SET API of the web service and perform the SET operation on TencentDB for Redis®.echo "Setting key: ${key} with value: ${value}"curl -X POST "http://localhost:8080/redis/set?key=${key}&value=${value}"echo -e "\\n"# Run the CURL command to call the GET API of the web service and perform the GET operation on TencentDB for Redis®.echo "Getting value for key: ${key}"curl -X GET "http://localhost:8080/redis/get?key=${key}"echo -e "\\n"# Add a counter.counter=$((counter + 1))# Wait for 5 seconds.sleep 5done
lettuce_command_completion_seconds_sum{command="SET"}/lettuce_command_completion_seconds_count{command="SET"}

lettuce_command_completion_seconds_max{command="SET"} in the command box to check the maximum latency of the SET command. As shown in the figure, the maximum latency is about 1.35 ms.
フィードバック