File tree 1 file changed +47
-0
lines changed
docs/zh/08-integration/02-input/01-metrics 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,53 @@ prometheus_http_api_addresses: # 集成 Prometheus 指标时需填写此项
74
74
- { PROMETHEUS_HTTP_API_ADDRESSES }
75
75
` ` `
76
76
77
+ # 集成 xExporter 数据
78
+
79
+ 在 DeepFlow-Agent 企业版支持直接从任意一个满足 Prometheus 生态的 xExporter 中拉取指标数据,并推送到 DeepFlow 中。
80
+
81
+ # # 数据流
82
+
83
+ ` ` ` mermaid
84
+ flowchart TD
85
+
86
+ subgraph K8s-Cluster
87
+ xExporter["x-Exporter (deployment)"]
88
+ DeepFlowAgent["deepflow-agent-ee (daemonset)"]
89
+ DeepFlowServer["deepflow-server (deployment)"]
90
+
91
+ xExporter -->|metrics| DeepFlowAgent
92
+ DeepFlowAgent -->|metrics| DeepFlowServer
93
+ end
94
+ ` ` `
95
+
96
+ # # 配置 DeepFlow(v6.6 之后的 DeepFlow-Agent 可用)
97
+
98
+ 为 Agent 所在的 Group 添加以下配置:
99
+
100
+ ` ` ` yaml
101
+ inputs:
102
+ vector:
103
+ config:
104
+ sources:
105
+ x_exporter:
106
+ type: prometheus_scrape
107
+ endpoints:
108
+ - http://${HOST:PORT}/metrics
109
+ scrape_interval_secs: 10
110
+ scrape_timeout_secs: 10
111
+ honor_labels: true
112
+ instance_tag: instance
113
+ endpoint_tag: metrics_endpoint
114
+ sinks:
115
+ prometheus_remote_write:
116
+ type: prometheus_remote_write
117
+ inputs:
118
+ - x_exporter
119
+ endpoint: http://127.0.0.1:38086/api/v1/prometheus
120
+ healthcheck:
121
+ enabled: false
122
+ ` ` `
123
+
77
124
# 查看 Prometheus 数据
78
125
79
126
Prometheus 中的指标将会存储在 DeepFlow 的 `prometheus` database 中。
You can’t perform that action at this time.
0 commit comments