当前位置:网站首页>graphite statsd接口数据格式说明
graphite statsd接口数据格式说明
2022-06-23 00:34:00 【beyond阿亮】
graphite statsd接口数据格式说明
spring maven项目 实时接口请求次数及时间发送到grafana监控_亲测成功
graphite-statsd安装
docker部署grafana graphite stastd实时监控告警配置_亲测成功
安装好后接入地址: 192.168.1.21:8125
接口协议类型
接口基于UDP协议,数据类型为字符串
数据格式
字符串格式:
<metricname>:<value>|<type>
支持多个一起打包:
<metricname>:<value>|<type>\n<metricname>:<value>|<type>\n<metricname>:<value>|<type>
type支持类型:
- Counting:计数值
- Gauges:任意值
- Sets:去重值
- Timing:耗时值
- Sampling:取样值
- Sets常用于统计活跃人数,设备数等去重值
- Sets类型服务器地址与其他类型不同,支持日统计和月统计
比如:日活人数和月活人数,日设备数和月设备数
数据示例
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格式规范
为了方便配置和管理,统一metricname格式:
<env>.<bizName>.<idName>.<...>
类型 含义
env 环境名称:测试test,生产prod
bizName 业务名称:login,file,ims等
idName 指标名称:访问量,活跃人数,耗时等
边栏推荐
猜你喜欢

Several abnormal scenarios of things system

昆仑分布式数据库Sequence功能及其实现机制

After passing the hcip exam, I still failed to change my career. What do professional network workers value most

初学者如何快速入门深度学习?

MySQL-Seconds_behind_master 的精度误差

Using geTx to build a more elegant structure of flutter pages
![How Huawei cloud implements a global low delay network architecture for real-time audio and video [Part 1]](/img/70/dcb558cf265da9e396637c5b90cd1b.png)
How Huawei cloud implements a global low delay network architecture for real-time audio and video [Part 1]

数据库每日一题---第20天:按日期分组销售产品

How to get started with machine learning?

3dMax建模笔记(一):介绍3dMax和创建第一个模型Hello world
随机推荐
SAP UI5 应用开发教程之一百零二 - SAP UI5 应用的打印(Print)功能实现详解试读版
图神经网络有哪些用途和应用?
数据库中数据的储存结构和方式是什么?
你踩过这些坑吗?谨慎在时间类型列上创建索引
SAP UI5 应用开发教程之一百零二 - SAP UI5 应用的打印(Print)功能实现详解
如何使用enum数据类型
美团基于 Flink 的实时数仓平台建设新进展
Sword finger offer 06 Print linked list from end to end
Typecho仿卢松松博客主题模板/科技资讯博客主题模板
C sqlsugar, hisql, FreeSQL ORM framework all-round performance test vs. sqlserver performance test
Reverse proxy haproxy
股票在哪个平台买比较安全呢?
Is Ruida futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
Typecho imitation of Lu Songsong's blog theme template / Technology Information blog theme template
Because I said: volatile is a lightweight synchronized, the interviewer asked me to go back and wait for the notice!
flowable 全局监听 监听流程的启动和流程的结束
Mysql8.0 easily completes gtid master-slave replication
事务系统的隔离级别
Is it reliable to get new debts? Is it safe?
Why do we not use foreign keys now (2)?