Skip to content

Commit 657719e

Browse files
authored
Merge pull request #266 from deepflowio/add_prometheus_target_api
Add instructions for Prometheus targets api configuration
2 parents 8553892 + a104bb3 commit 657719e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/zh/06-agent-integration/01-metrics/02-prometheus.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ remote_read:
6161

6262
# 配置 DeepFlow
6363

64-
请参考[配置 DeepFlow](../tracing/opentelemetry/#配置-deepflow) 一节内容,完成 DeepFlow Agent 配置。
64+
请参考[配置 DeepFlow](../tracing/opentelemetry/#配置-deepflow) 一节内容,并添加配置 `prometheus targets api` 地址(v6.2 及以前版本不需要配置),完成 DeepFlow Agent 配置。目的是将 prometheus activeTargets.labels 同步到 deepflow-server controller,以提升存储和查询性能。添加以下配置到采集组配置中(请修改 `PROMETHEUS_HTTP_API_ADDRESS`):
65+
```yaml
66+
prometheus_http_api_address: ${PROMETHEUS_HTTP_API_ADDRESS} # 集成 Prometheus 指标时需填写此项,格式为 protocl://ip:port,例如 http://1.2.3.4:9090
67+
```
6568

6669
# 查看 Prometheus 数据
6770

0 commit comments

Comments
 (0)