Comments (5)
ok,试了一下input.prometheus,确实可以抓取指标并推送给远端,简单记录一下:
vim conf/input.prometheus/prometheus.toml #单服务器中的配置
[[instances]] urls = [ "http://localhost:9104/metrics" ] url_label_key = "instance" url_label_value = "{{.Host}}"
./categraf --test --inputs prometheus
from categraf.
Springboot程序是怎么暴露指标的?用的类似micrometer那样的库?通过/metrics接口暴露的?那就直接用prometheus插件来抓就行了
from categraf.
是的,会暴露/metrics接口,但由于被监控的服务器在远端,无法通过prometheus pull到远端内网服务器的metrics。Categraf使用了push的模式,是否有方法可以拉取自定义的API呢?
from categraf.
使用categraf的prometheus采集器,作为sidecar和业务进程部署在一起,抓取本机的业务指标,抓到之后categraf会推给远端夜莺server
from categraf.
使用 categraf 0.1.11 版本以上的版本:https://github.com/flashcatcloud/categraf/releases/tag/v0.1.11
from categraf.
Related Issues (20)
- 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
- 能否增加监控docker退出容器的指标 HOT 4
- catagraf Startup error out of order labels HOT 3
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.