metric to prometheus #2497
Unanswered
1018630626
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
通过md文档的metric-system.md(https://github.com/alibaba/loongcollector/blob/main/docs/cn/plugins/input/extended/metric-system.md)和flusher-prometheus.md(https://github.com/alibaba/loongcollector/blob/main/docs/cn/plugins/flusher/extended/flusher-prometheus.md)配置,无法采集到metrics并上到我自定义的Prometheus。
有几个问题:
1.
inputs:
ConfigFilePath: '/etc/prometheus/prometheus.yml'这段配置并没有额外的配置说明,我无法理解这个配置是什么。
2.我结合AI生成的配置如下:
loongcollector-3.1.4/conf/continuous_pipeline_config/local目录下
enable: true
global:
StructureType: v2
inputs:
CPU: true
Memory: true
Net: true
Disk: true
Process: true
ProcessIntervalRound: 60
Labels:
instance: 10.1.1.1 #my host_ip
flushers:
同时远程写入
Endpoint: 'http://xxxx/api/v1/write' #my prometheus
Concurrency: 10
QueueCapacity: 4096
DropEventWhenQueueFull: true
Authenticator:
Type: ext_basicauth
extensions:
Username: 'user'
Password: 'password'
Beta Was this translation helpful? Give feedback.
All reactions