Comments (3)
agent_hostname 和 instance 的表意是不一样的。 @oiooj
比如,categraf 会部署在node上,采集某个MySQL的metrics,那么此时agent_hostname = node_name,instance = mysql_ip:port
from categraf.
emmm, 看了下,有一些中间件或者服务我们有 instances
的概念,为了多实例的支持,在 toml 中以数组的形式存在 [[instances]]
,但是我们如果想要去确定某个 instance 一定是 instance 下的某个 key,比如 mysql 中的 address,或者 docker 中的 endpoint:
#mysql
# [[instances]]
# address = "127.0.0.1:3306"
# username = "root"
# password = "1234"
...
# Docker
[[instances]]
# # append some labels for series
# labels = { region="cloud", product="n9e" }
# # interval = global.interval * interval_times
# interval_times = 1
## Docker Endpoint
## To use TCP, set endpoint = "tcp://[ip]:[port]"
## To use environment variables (ie, docker-machine), set endpoint = "ENV"
endpoint = "unix:///var/run/docker.sock"
我们为什么不直接使用这个 key 来做实例的 unique label,而不是统一使用 instance
, 因为这样使用起来标签语义理解上也更加准确,instance = "unix:///var/run/docker.sock" 总感觉怪怪的。从设计上看 instance 也不是每个插件必有的。
from categraf.
emmm, 看了下,有一些中间件或者服务我们有
instances
的概念,为了多实例的支持,在 toml 中以数组的形式存在[[instances]]
,但是我们如果想要去确定某个 instance 一定是 instance 下的某个 key,比如 mysql 中的 address,或者 docker 中的 endpoint:#mysql # [[instances]] # address = "127.0.0.1:3306" # username = "root" # password = "1234" ... # Docker [[instances]] # # append some labels for series # labels = { region="cloud", product="n9e" } # # interval = global.interval * interval_times # interval_times = 1 ## Docker Endpoint ## To use TCP, set endpoint = "tcp://[ip]:[port]" ## To use environment variables (ie, docker-machine), set endpoint = "ENV" endpoint = "unix:///var/run/docker.sock"
我们为什么不直接使用这个 key 来做实例的 unique label,而不是统一使用
instance
, 因为这样使用起来标签语义理解上也更加准确,instance = "unix:///var/run/docker.sock" 总感觉怪怪的。从设计上看 instance 也不是每个插件必有的。
你这是个问题?还是陈述心得?我没看懂...
from categraf.
Related Issues (20)
- local.netstat 获取指标报错 HOT 9
- 监控获取到的http_response_code和实际请求到的http_response_code不一致 HOT 1
- input.exec支持windows系统吗
- 使用input.exec报错 HOT 1
- mysql plugin the address parameter supports socket value
- categraf cloudwatch 采集 AWS 服务指标问题 HOT 6
- 发布的可执行文件太大了 HOT 3
- 0.41版本netstat输出没有close_wait,time_wait,established HOT 2
- V6版本为什么监控项target_up拿不到值 HOT 2
- ping监控配置timeout为小于1的数值时,引发panic错误,导致categraf崩溃 HOT 2
- categraf客户端反复重启,不知道为何 HOT 10
- windows-categraf,采集每台机子的IP如何更改为采集序列号 HOT 1
- n9e v6版本,Prometheus没有categraf采集的数据 HOT 1
- 关于kafka lag的数值
- input.prometheus 插件采集数据不全 HOT 6
- 能否添加自定义的zookeeper根路径 HOT 1
- input.snmp的数值映射功能无法使用 HOT 10
- 请问一下是否移除了win大盘 HOT 6
- 使用0.2.10版本采集windows报错 HOT 10
- categraf-v0.3.0采集出现错误 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from categraf.