alibaba / alibaba/Sentinel

增加了sentinel-prometheus相关依赖,但是9092端口无法被监听,配置设置csp.sentinel.prometheus.fetch.port=9093也无效

Open
#3,433 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

按照文档,在我的spring boot项目中增加3个依赖

```

com.alibaba.csp
sentinel-prometheus-metric-exporter
1.8.7


io.prometheus
simpleclient
0.3.0


io.prometheus
simpleclient_httpserver
0.3.0

```
因为一个服务器下面会运行多个spring boot项目,且每个项目都需要暴露sentinel监控数据给 prometheus,于是涉及端口占用问题,需要自定义端口
bootstrap.yml增加自定义端口,这个端口不会被监听,还是会使用9092启动,于是只有第一个启动的应用可以暴露数据
```
csp:
sentinel:
prometheus:
fetch:
port: 9093
```
csp.sentinel.prometheus.fetch.port 这个配置应该如何配置呢?请教

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.