Sign inSign up

herodotus/sentinel-dashboard

By herodotus

Updated over 2 years ago

Spring Cloud Alibaba Sentinel Dashboard(阿里巴巴哨兵镜像)

Image
API management
1

10K+

herodotus/sentinel-dashboard repository overview

English

Introduce

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.

How to download

docker pull herodotus/sentinel-dashboard:tagname

How to start

docker run --name sentinel  -d -p 8858:8858 -d  herodotus/sentinel-dashboard:tagname

Environment Variables

Sentinel Variables
VariablesDefault ValueRequiredRemarks
JAVA_OPTSfalseJVM operating parameters
SENTINEL_ADMIN_USERNAMEsentinelfalseSentinel Dashboard administrator user name
SENTINEL_ADMIN_PASSWORDsentinelfalseSentinel Dashboard Administrator user password
InfluxDB Variables
VariablesDefault ValueRequiredRemarks
INFLUXDB_URLfalseInfluxDB connection address,format:http(s)://ip:port
INFLUXDB_USERNAMEfalseInfluxDB user name
INFLUXDB_PASSWORDfalseInfluxDB user password
INFLUXDB_DATABASEfalseIInfluxDB database

NOTE: you need to set INFLUXDB_URLINFLUXDB_USERNAMEINFLUXDB_PASSWORDINFLUXDB_DATABASE these four parameters enable the InfluxDB storage mode. Otherwise, the default memory storage mode is used.

Nacos Variables
VariablesDefault ValueRequiredRemarks
NACOS_SERVER_ADDRESSfalseNacos Server address,format:ip:port
NACOS_CONFIG_DATA_ID_SUFFIX-flow-rulesfalseNacos storage configuration data ID suffix, which is used to distinguish the purpose of different configurations。e.g. xxx-service-flow-rules
NACOS_CONFIG_NAMESPACEfalseNacos namespaces,The ID of the namespace, not the name of the namespace
NACOS_CONFIG_GROUPsentinelfalseNacos group
NACOS_CONFIG_TYPEjsonfalseNacos configuration type,See for details:com.alibaba.nacos.api.config.ConfigType
NACOS_ADMIN_USERNAMEnacosfalseNacos Username(Configuration is only required after enabling authentication)
NACOS_ADMIN_PASSWORDnacosfalseNacos Password(Configuration is only required after enabling authentication)
NACOS_AUTH_ENABLEDfalsefalseDoes Nacos enable authentication
NACOS_TOKEN_TTL18000falseNacos 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.

Docker-compose Example

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"

Git Repository

Website

https://www.herodotus.cn

中文

介绍

基于最新版 Spring Cloud Alibaba Sentinel Dashboard 扩展 改造,支持微服务流量监控数据持久化存储到 Influxdb 时序数据库,支持通过 Sentinel Dashboard 界面存储流量控制配置至至 Nacos 中。

时序数据存储基于 Influxdb v1.X 版本实现,Nacos 目前仅支持 v2.X 版本。默认使用 Sentinel Dashboard 原有内存方式存储,可通过配置参数动态开启或关闭 InfluxdbNacos 存储机制。

下载方法

docker pull herodotus/sentinel-dashboard:tagname

启动方法

docker run --name sentinel  -d -p 8858:8858 -d  herodotus/sentinel-dashboard:tagname

环境变量参数

Sentinel 相关参数
变量默认值是否必需说明
JAVA_OPTSfalseJVM相关运行参数
SENTINEL_ADMIN_USERNAMEsentinelfalseSentinel Dashboard 管理员用户名
SENTINEL_ADMIN_PASSWORDsentinelfalseSentinel Dashboard 管理员密码
InfluxDB 相关参数
变量默认值是否必需说明
INFLUXDB_URLfalseInfluxDB 连接地址,格式:http(s)://ip:port
INFLUXDB_USERNAMEfalseInfluxDB 用户名
INFLUXDB_PASSWORDfalseInfluxDB 密码
INFLUXDB_DATABASEfalseIInfluxDB 数据库

注意: 需要同时设置 INFLUXDB_URLINFLUXDB_USERNAMEINFLUXDB_PASSWORDINFLUXDB_DATABASE 这四个参数,才会开启 InfluxDB 存储方式,否则还是使用默认的内存存储方式。

Nacos 相关参数
变量默认值是否必需说明
NACOS_SERVER_ADDRESSfalseNacos Server 地址,格式:http://ip:port
NACOS_CONFIG_DATA_ID_SUFFIX-flow-rulesfalseNacos 存储配置Data ID后缀名,用于区分配置的用途。例如:xxx-service-flow-rules
NACOS_CONFIG_NAMESPACEfalseNacos 命名空间设置,对应 Nacos 的命名空间的ID,而不是命名空间的名称
NACOS_CONFIG_GROUPsentinelfalseNacos 配置 Group
NACOS_CONFIG_TYPEjsonfalseNacos 配置类型,具体参见:com.alibaba.nacos.api.config.ConfigType
NACOS_ADMIN_USERNAMEnacosfalseNacos 用户名(开启认证后才需要配置)
NACOS_ADMIN_PASSWORDnacosfalseNacos 密码(开启认证后才需要配置)
NACOS_AUTH_ENABLEDfalsefalseNacos 是否开启认证
NACOS_TOKEN_TTL18000falseNacos Token 有效时间(开启认证后才需要配置)

注意: 设置 NACOS_SERVER_ADDRESS 参数,才会开启 Nacos 存储方式,否则还是使用默认的内存存储方式。

Docker-compose 示例

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"

代码仓库

文档地址

https://www.herodotus.cn

Tag summary

Content type

Image

Digest

sha256:154b7d675

Size

242.1 MB

Last updated

over 2 years ago

docker pull herodotus/sentinel-dashboard