Spring Cloud Alibaba Sentinel Dashboard(阿里巴巴哨兵镜像)
10K+
Based on the expansion and transformation of the latest version of Spring cloud Alibaba Sentinel Dashboard, it supports the persistent storage of micro service traffic monitoring data to the InfluxDB timing database, and supports the storage of traffic control through the Sentinel Dashboard interface to Nacos. The timing data storage is implemented based on the version of InfluxDB 1.x, and Nacos only supports 2.x.
By default, the original memory mode of sentinel dashboard is used for storage, and the InfluxDB and Nacos storage mechanisms can be dynamically turned on or off through configuration parameters.
docker pull herodotus/sentinel-dashboard:tagname
docker run --name sentinel -d -p 8858:8858 -d herodotus/sentinel-dashboard:tagname
| Variables | Default Value | Required | Remarks |
|---|---|---|---|
| JAVA_OPTS | false | JVM operating parameters | |
| SENTINEL_ADMIN_USERNAME | sentinel | false | Sentinel Dashboard administrator user name |
| SENTINEL_ADMIN_PASSWORD | sentinel | false | Sentinel Dashboard Administrator user password |
| Variables | Default Value | Required | Remarks |
|---|---|---|---|
| INFLUXDB_URL | false | InfluxDB connection address,format:http(s)://ip:port | |
| INFLUXDB_USERNAME | false | InfluxDB user name | |
| INFLUXDB_PASSWORD | false | InfluxDB user password | |
| INFLUXDB_DATABASE | false | IInfluxDB database |
NOTE: you need to set INFLUXDB_URL、INFLUXDB_USERNAME 、INFLUXDB_PASSWORD 、INFLUXDB_DATABASE these four parameters enable the InfluxDB storage mode. Otherwise, the default memory storage mode is used.
| Variables | Default Value | Required | Remarks |
|---|---|---|---|
| NACOS_SERVER_ADDRESS | false | Nacos Server address,format:ip:port | |
| NACOS_CONFIG_DATA_ID_SUFFIX | -flow-rules | false | Nacos storage configuration data ID suffix, which is used to distinguish the purpose of different configurations。e.g. xxx-service-flow-rules |
| NACOS_CONFIG_NAMESPACE | false | Nacos namespaces,The ID of the namespace, not the name of the namespace | |
| NACOS_CONFIG_GROUP | sentinel | false | Nacos group |
| NACOS_CONFIG_TYPE | json | false | Nacos configuration type,See for details:com.alibaba.nacos.api.config.ConfigType |
| NACOS_ADMIN_USERNAME | nacos | false | Nacos Username(Configuration is only required after enabling authentication) |
| NACOS_ADMIN_PASSWORD | nacos | false | Nacos Password(Configuration is only required after enabling authentication) |
| NACOS_AUTH_ENABLED | false | false | Does Nacos enable authentication |
| NACOS_TOKEN_TTL | 18000 | false | Nacos Token ttl(Configuration is only required after enabling authentication) |
NOTE: The Nacos storage mode is enabled only after setting NACOS_SERVER_ADDRESS parameters. Otherwise, the default memory storage mode is used.
version: "3"
services:
sentinel:
image: herodotus/sentinel-dashboard:latest
container_name: sentinel-dashboard
environment:
SENTINEL_ADMIN_USERNAME: herodotus
SENTINEL_ADMIN_PASSWORD: herodotus
INFLUXDB_URL: http://127.0.0.1:8086
INFLUXDB_USERNAME: herodotus
INFLUXDB_PASSWORD: herodotus
INFLUXDB_DATABASE: sentinel
NACOS_SERVER_ADDRESS: http://127.0.0.1:8848
NACOS_CONFIG_DATA_ID_SUFFIX: -flow-rules
ports:
- "8858:8858"
基于最新版 Spring Cloud Alibaba Sentinel Dashboard 扩展 改造,支持微服务流量监控数据持久化存储到 Influxdb 时序数据库,支持通过 Sentinel Dashboard 界面存储流量控制配置至至 Nacos 中。
时序数据存储基于 Influxdb v1.X 版本实现,Nacos 目前仅支持 v2.X 版本。默认使用 Sentinel Dashboard 原有内存方式存储,可通过配置参数动态开启或关闭 Influxdb 和 Nacos 存储机制。
docker pull herodotus/sentinel-dashboard:tagname
docker run --name sentinel -d -p 8858:8858 -d herodotus/sentinel-dashboard:tagname
| 变量 | 默认值 | 是否必需 | 说明 |
|---|---|---|---|
| JAVA_OPTS | false | JVM相关运行参数 | |
| SENTINEL_ADMIN_USERNAME | sentinel | false | Sentinel Dashboard 管理员用户名 |
| SENTINEL_ADMIN_PASSWORD | sentinel | false | Sentinel Dashboard 管理员密码 |
| 变量 | 默认值 | 是否必需 | 说明 |
|---|---|---|---|
| INFLUXDB_URL | false | InfluxDB 连接地址,格式:http(s)://ip:port | |
| INFLUXDB_USERNAME | false | InfluxDB 用户名 | |
| INFLUXDB_PASSWORD | false | InfluxDB 密码 | |
| INFLUXDB_DATABASE | false | IInfluxDB 数据库 |
注意: 需要同时设置 INFLUXDB_URL、INFLUXDB_USERNAME 、INFLUXDB_PASSWORD 、INFLUXDB_DATABASE 这四个参数,才会开启 InfluxDB 存储方式,否则还是使用默认的内存存储方式。
| 变量 | 默认值 | 是否必需 | 说明 |
|---|---|---|---|
| NACOS_SERVER_ADDRESS | false | Nacos Server 地址,格式:http://ip:port | |
| NACOS_CONFIG_DATA_ID_SUFFIX | -flow-rules | false | Nacos 存储配置Data ID后缀名,用于区分配置的用途。例如:xxx-service-flow-rules |
| NACOS_CONFIG_NAMESPACE | false | Nacos 命名空间设置,对应 Nacos 的命名空间的ID,而不是命名空间的名称 | |
| NACOS_CONFIG_GROUP | sentinel | false | Nacos 配置 Group |
| NACOS_CONFIG_TYPE | json | false | Nacos 配置类型,具体参见:com.alibaba.nacos.api.config.ConfigType |
| NACOS_ADMIN_USERNAME | nacos | false | Nacos 用户名(开启认证后才需要配置) |
| NACOS_ADMIN_PASSWORD | nacos | false | Nacos 密码(开启认证后才需要配置) |
| NACOS_AUTH_ENABLED | false | false | Nacos 是否开启认证 |
| NACOS_TOKEN_TTL | 18000 | false | Nacos Token 有效时间(开启认证后才需要配置) |
注意: 设置 NACOS_SERVER_ADDRESS 参数,才会开启 Nacos 存储方式,否则还是使用默认的内存存储方式。
version: "3"
services:
sentinel:
image: herodotus/sentinel-dashboard:latest
container_name: sentinel-dashboard
environment:
SENTINEL_ADMIN_USERNAME: herodotus
SENTINEL_ADMIN_PASSWORD: herodotus
INFLUXDB_URL: http://127.0.0.1:8086
INFLUXDB_USERNAME: herodotus
INFLUXDB_PASSWORD: herodotus
INFLUXDB_DATABASE: sentinel
NACOS_SERVER_ADDRESS: http://127.0.0.1:8848
NACOS_CONFIG_DATA_ID_SUFFIX: -flow-rules
ports:
- "8858:8858"
Content type
Image
Digest
sha256:154b7d675…
Size
242.1 MB
Last updated
over 2 years ago
docker pull herodotus/sentinel-dashboard