1.下載 docker 鏡像:https://hub.docker.com/r/anjia0532/sentinel-docker
2.啟動 docker 容器:docker run -p8080:8080 anjia0532/sentinel-docker:1.6.3
3.訪問 Sentinel Dashboard 管理網址(注意:只有1.6.0及以上版本,才有這個登錄頁面):http://localhost:8080/#/login ,用戶名和密碼,默認都是:sentinel
4.創建應用:https://github.com/cag2050/alibaba-sentinel-rate-limiting ,訪問應用的接口,此時,在啟動的Sentinel Dashboard中就可以看到啟動的alibaba-sentinel-rate-limiting這個服務以及接口調用的實時監控了。
參考資料
參考資料 | 網址 |
---|---|
Spring Cloud Alibaba基礎教程:使用Sentinel實現接口限流 | http://blog.didispace.com/spring-cloud-alibaba-sentinel-1/ |