dashboard

Adding custom order statuses in Admin Dashboard Stats Widget

∥☆過路亽.° 提交于 2019-12-07 10:36:23
问题 I would like to include details from custom order status in WooCommerce Admin Dashboard Stats widget. I have set 2 custom order status which comes after wc-processing . Order Flow after successful payment is: wc-processing => wc-awaiting-shipment => wc-dispatched => wc-completed . As awaiting shipment and dispatched are custom order statuses, WooCommerce stats widget is not reflecting those orders in total sales amount. The problem is that I have many orders with wc-dispatched and wc-awaiting

3.spring cloud服务注册中心eureka server---Hystrix Dashboard的turbine集成(第四章)

别说谁变了你拦得住时间么 提交于 2019-12-07 01:05:57
Hystrix Dashboard的turbine集成 本文中示例代码的引用版本: org.springframework.boot 版本 :2.1.0.RELEASE org.springframework.cloud 版本:Greenwich.M1 示例代码-码云 https://gitee.com/sharps/springcloud 在复杂的分布式系统中,相同服务的节点经常需要部署上百甚至上千个,很多时候,运维人员希望能够把相同服务的节点状态以一个整体集群的形式展现出来,这样可以更好的把握整个系统的状态。 为此,Netflix提供了一个开源项目(Turbine)来提供把多个hystrix.stream的内容聚合为一个数据源供Dashboard展示。 第一步、新建0406spring-cloud-hystrix-dashboard-turbine项目 1、添加依赖 < dependency > < groupId > org.springframework.boot </ groupId > < artifactId > spring-boot-starter </ artifactId > </ dependency > < dependency > < groupId > org.springframework.cloud </ groupId > <

Spring Cloud--Hystrix配置Dashboard,Turbine集群监控

半腔热情 提交于 2019-12-07 01:04:00
前言 Github: https://github.com/yihonglei/SpringCloud-Study Eureka注册中心:eureka-server 服务提供者(订单服务):eureka-provider-order Feign-api(服务接口抽象):eureka-feign-api Feign客户端消费(含hystrix和dashboard):eureka-consumer-feign-hystrix-dashboard 仪表盘:eureka-hystrix-dashboard 服务熔断:eureka-consumer-hystrix 集群监控:eureka-hystrix-turbine(新增工程) 在使用turbine集群之前,需要先搭建好hystrix-dashboard单个服务监控仪表盘。 参考: https://blog.csdn.net/yhl_jxy/article/details/95329627 一 turbine实例 1、项目结构 2、pom.xml依赖 <!-- 监控 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <!--

SpringCloud(六)Hystrix仪表盘Dashboard

佐手、 提交于 2019-12-07 00:36:45
SpringCloud(六)Hystrix仪表盘Dashboard SpringCloud提供了Hystrix-Dashboard,可以对每一个HystrixCommand进行监控,直观的显示每一个熔断器的健康状态。 文章目录 SpringCloud(六)Hystrix仪表盘Dashboard 引入Hystrix Dashboard 监控单个服务 集成Turbine监控多个服务 Hystrix仪表盘图表说明 引入Hystrix Dashboard 在此前项目的基础上我们新建一个服务 dashboard service 用作监控服务。 Hystrix Dashboard需要在 pom.xml 文件中引入 < dependency > < groupId > org.springframework.cloud </ groupId > < artifactId > spring-cloud-starter-hystrix-dashboard </ artifactId > </ dependency > 在我们的启动类上增加 @EnableHystrixDashboard 注解 /** * 监控服务启动类 */ @SpringBootApplication @EnableEurekaClient @EnableHystrixDashboard public class

Spring Cloud--Hystrix配置Dashboard

纵饮孤独 提交于 2019-12-07 00:35:08
前言 Github: https://github.com/yihonglei/SpringCloud-Study Eureka注册中心:eureka-server 服务提供者(订单服务):eureka-provider-order Feign-api(服务接口抽象):eureka-feign-api Feign客户端消费(含hystrix和dashboard):eureka-consumer-feign-hystrix-dashboard 仪表盘:eureka-hystrix-dashboard 一 Feign、Hystrix、dashboard Feign是一个声明式的伪RPC的REST客户端,基于接口的注解方式,很方便客户端配置。 Spring Cloud集成Ribbon和Eureka以在使用Feign时提供负载均衡的http客户端。 Hystrix基于开源框架Netflix实现了Spring Cloud Hystrix,该框架的目标在于通过控制哪些访问远程系统、 服务等,从而对于网络延迟和故障提供更强大的容错能力。 dashboard是hystrix监控仪表盘。 二 启动eureka-server(注册中心) 执行eureka-server项目EurekaServerApplication类的main方法。 三 启动eureka-provider-order(服务提供者)

2.spring cloud服务注册中心eureka server---添加Hystrix Dashboard(第四章)

给你一囗甜甜゛ 提交于 2019-12-07 00:31:52
Hystrix Dashboard 本文中示例代码的引用版本: org.springframework.boot 版本 :2.1.0.RELEASE org.springframework.cloud 版本:Greenwich.M1 示例代码-码云 https://gitee.com/sharps/springcloud 我们在熔断示例项目spring-cloud-consumer-hystrix的基础上更改,重新命名为:spring-cloud-consumer-hystrix-dashboard。 1、添加依赖 org.springframework.boot 版本 :2.1.0.RELEASE org.springframework.cloud 版本:Greenwich.M1 < dependency > < groupId > org.springframework.cloud </ groupId > < artifactId > spring-cloud-starter-netflix-eureka-client </ artifactId > </ dependency > < dependency > < groupId > org.springframework.cloud </ groupId > < artifactId > spring-cloud

K8S 1.10.1 高可用环境搭建实战

痴心易碎 提交于 2019-12-06 21:05:09
服务器信息如下: 主机名称 IP 备注 node01 10.150.27.51 master and etcd rode02 10.150.27.65 master and etcd node03 10.150.27.66 node VIP 10.150.27.99 软件版本: docker17.03.2-ce socat-1.7.3.2-2.el7.x86_64 kubelet-1.10.0-0.x86_64 kubernetes-cni-0.6.0-0.x86_64 kubectl-1.10.0-0.x86_64 kubeadm-1.10.0-0.x86_64 参考文档: https://github.com/cookeem/kubeadm-ha/blob/master/README_CN.md 1:环境初始化 1:分别在三台主机设置主机名称 hostnamectl set-hostname node01 hostnamectl set-hostname node02 hostnamectl set-hostname node03 2:配置主机映射 cat <<EOF > /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost

Kubernetes dashboard showing Unauthorized

人盡茶涼 提交于 2019-12-06 19:32:33
I configured kubernetes cluster with one master and 4 worker nodes using KUBEADM tool IN LOCAL. All nodes are running fine. deployed an app and able access that app from browser. I have tried many ways to create a dashboard using kubectl but i am failed. TRY1: tried directly with the below command: $ sudo kubectl proxy --address="172.20.22.101" -p 8001 tried to access the dashboard using the url http://172.20.22.101:8001/api/v1 , but it is saying unauthorized. TRY2: created dashboard-admin.yaml file with the below content: apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding

kubernetes dashboard 搭建参考

拈花ヽ惹草 提交于 2019-12-06 18:28:24
Kubernetes Dashboard安装过程中会出现的问题包括: 1、证书失效问题 2、token获取问题 3、服务如何暴露的问题 按照本文的步骤,可保你安装一路平安 一、生成证书 生成证书通过openssl生成自签名证书即可,不再赘述,参考如下所示: [root@master keys]# pwd /root/keys [root@master keys]# ls [root@master keys]# openssl genrsa -out dashboard.key 2048 Generating RSA private key, 2048 bit long modulus .+++ .................................................+++ e is 65537 (0x10001) [root@master keys]# openssl req -new -out dashboard.csr -key dashboard.key -subj '/CN=192.168.246.200' [root@master keys]# ls dashboard.csr dashboard.key [root@master keys]# [root@master keys]# openssl x509 -req -in dashboard

Spring cloud微服务安全实战-6-11sentinel之配置持久化

心已入冬 提交于 2019-12-06 15:24:23
规则的持久化问题。现在的规则都是在内存里的,我们要写一些代码来编一些规则。启动以后规则在内存里了。如果你配置里面有sentinel的dashboard,有流量经过客户端的时候,它会把规则同步给Dashboard,同样的sentinel的dashboard页面上增加或者修改规则后。sentinel也会把规则推给相应的客户端, 我们之前在配置文件内配置了这个 sentinel的port。sentinel的客户端还会再起一个服务。一旦dashboard去改这个配置的时候,它就会调用客户端的服务把响应的配置推送过来 那么规则永远是在客户端的内存中的,同样sentinel的dashboard规则也是内存里面的。一旦dashboard或者客户端重启,这些变化过的规则就都消失了。 想要的效果是有一个远程的配置中心,这个配置中心可能是ZooKeeper或者是Nacos或者是阿波罗等,这些都是支持的。 要做两件事: 1.让sentinel的Dashboard知道,当我的配置规则变化的时候,我要把配置规则推到远程配置中心,然后把它持久化保存起来。 2.客户端也要做改造,客户端要知道我的配置规则都在远程配置中心存着,然后一旦有变化的时候,配置中心要推给我,我要能接收这个新的规则,来更新我自己的配置, 这样不管是Dashboard还是客户端他们重启后都不会丢掉现有的规则配置。 开始改造