当前位置:网站首页>Graphite statsd interface data format description

Graphite statsd interface data format description

2022-06-23 00:39:00 Beyond a Liang

graphite statsd Interface data format description

spring maven project The number and time of real-time interface requests are sent to grafana monitor _ Successful test

graphite-statsd install

docker Deploy grafana graphite stastd Real time monitoring alarm configuration _ Successful test

Access address after installation : 192.168.1.21:8125

Interface protocol type

Interface based on UDP agreement , The data type is string

data format

 String format :

<metricname>:<value>|<type>

 Support multiple packages :

<metricname>:<value>|<type>\n<metricname>:<value>|<type>\n<metricname>:<value>|<type>

type Support type :

  • Counting: Count value
  • Gauges: Any value
  • Sets: De duplication value
  • Timing: Time consuming value
  • Sampling: Sampling value
  • Sets It is often used to count the number of active people , The number of equipment and other weight removal values
  • Sets Type server address is different from other types , Support daily statistics and monthly statistics

such as : Number of daily and monthly living people , Number of equipment per day and number of equipment per month

The data sample

echo "prod.iot.access.ip:1|c" | nc -u 127.0.0.1 8125

echo "test.iot.active:18675507109|s" | nc -u 127.0.0.1 8124

echo "prod.iot.access.ip:1|c\nprod.iot.api:110|ms" | nc -u 127.0.0.1 8125

metricname Format specification

To facilitate configuration and management , Unified metricname Format :

<env>.<bizName>.<idName>.<...>
 type 	 meaning 
env	 Name of the environment : test test, production prod
bizName	 Business name :login,file,ims etc. 
idName	 Index name : Traffic volume , Active number , Time consuming, etc 
原网站

版权声明
本文为[Beyond a Liang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/174/202206222206478355.html