Skip to content

Commit

Permalink
Merge pull request #283 from deepflowio/fix_prometheus_doc
Browse files Browse the repository at this point in the history
Fix Prometheus doc
  • Loading branch information
Nick-0314 authored Aug 24, 2023
2 parents 3bd8cdb + bea33e1 commit 300d3b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/zh/06-agent-integration/01-metrics/02-prometheus.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ remote_read:

# 配置 DeepFlow

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

# 查看 Prometheus 数据
Expand Down

0 comments on commit 300d3b1

Please sign in to comment.