skywalking调用链跟踪系统安装

skywalking调用链跟踪安装 安装docker略 安装ES数据库 docker run -e ES_JAVA_OPTS="-Xms8G -Xmx8G" -d --name ES1 -p 9200:9200 -p 9300:9300 -v /data/es/es.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /data/esdata:/usr/share/elasticsearch/data -v /usr/conf/elasticsearch/elasticsearch:/usr/share/elasticsearch/plugins --privileged=true elasticsearch:6.4.2 增加相应文件夹和权限 ES配置文件 [root@XKskywalking [阅读全文]

(转载)监控的平台与原理

前言介绍 监控是整个运维乃至整个产品生命周期中最重要的一环,事前及时预警发现故障,事后提供详实的数据用于追查定位问题。 目前业界有很多不错的开源 [阅读全文]

Kubernetes 使用 Weave Scope 监控集群

安装: kubectl apply -f "https://cloud.weave.works/<a href="http://yw8.tech/tag/k8s/" title="查看与 k8s 相关的文章" target="_blank">k8s</a>/scope.yaml?k8s-version=$(kubectl version | base64 | tr -d '\n')&k8s-service-type=NodePort" 查看暴露的web端口 kubectl --kubeconfig=/root/kubeconf-dl-xk get pod -n weave kubectl --kubeconfig=/root/kubeconf-dl-xk get svc -n weave kubectl --kubeconfig=/root/kubeconf-dl-xk get deploy -n weave 主 [阅读全文]

docker安装zabbix

安装数据库 Zabbix Java gateway zabbix server zabbix-web 安装zabbix-agent 修改zabbix图形界面中文乱码 目录 zabbix-server 部署阶段 要用docker跑zabbix-server [阅读全文]

grafana展示zabbix

安装 wget https://dl.grafana.com/oss/release/grafana-6.1.3-1.x86_64.rpm sudo yum localinstall grafana-6.1.3-1.x86_64.rpm /bin/systemctl start grafana-server.service ##安装插件 grafana-cli plugins list-remote|grep zabbix grafana-cli plugins install alexanderzobnin-zabbix-app service grafana-server restart 设置 首页 apps 启用zabbix插件 设置数据源,添加zabbix数据库和api 去官方下载z [阅读全文]

grafana面板备份

mysql监控看板 { "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": false, "iconColor": "#e0752d", "limit": 100, "name": "PMM Annotations", "showIn": 0, "tags": [ "pmm_annotation" ], "type": "tags" } ] }, "description": "Dashboard from Percona Monitoring and Management project. ", "editable": true, "gnetId": 7362, "graphTooltip": 1, "id": 21, "iteration": 1562808977285, "links": [ { "asDropdown": true, "icon": "external link", [阅读全文]

k8s监控系统

k8s监控脚本 root@rancher:~# cat chkk8s.sh PodStatus=`kubectl get pods |grep -v 'Running'|wc -l` NodeStatus=`kubectl get node |grep -v 'Ready'|wc -l` NodeCPU=`kubectl top node|awk '{print $3}'|grep -v 'CPU'|sed 's/%//'|sort -r|head -1` NodeMemory=`kubectl top node|awk '{print $5}'|grep -v 'MEMORY'|sed 's/%//'|sort -r|head -1` echo PODisnotRuning=${PodStatus} echo NODEisnotReady=${NodeStatus} echo NodeCpuAlert=${NodeCPU} echo NodeMemoryAlert=${NodeMemory} 简单的k8s监控方案-– [阅读全文]

mysql 加监控prome

<a href="http://yw8.tech/tag/ansible/" title="查看与 ansible 相关的文章" target="_blank">ansible</a> 10.5.31.92 -m shell -a "mkdir /opt/<a href="http://yw8.tech/tag/prometheus/" title="查看与 prometheus 相关的文章" target="_blank">prometheus</a>" ansible 10.5.31.92 -m copy -a "src=https://yw8.tech/opt/mysql_node_exporter.tar.gz src=https://yw8.tech/opt/node_exporter.service dest=/opt/prometheus" ansible [阅读全文]

prometheus添加自定义监控和告警

1.在监控机上创建监控项脚本 加入计划任务 root@mq-redis:/usr/local/prometheus/node_exporter/key# cat key_runner #! /bin/bash prom_file=/usr/local/prometheus/node_exporter/key/key.prom IFS=";" export TERM=vt100 key_value=" ActiveMQ_Queue_169 `sh /root/apache-activemq-5.15.4/bin/activemq dstat queue |grep -E 'ActiveMQ.Advisory|Consumer.XK' |awk '{print $2}'|grep ^0|wc -l`; Redis_status_169 `redis-cli -h 0.3.32.169 RANDOMKEY >/dev/null 2>&1 ; echo $?`" for i in $key_value do IFS=" " j=(`echo $i`) key=${j[0]} value=${j[1]} echo $key $value >> "$prom_file".tmp done [阅读全文]

prometheus监控

prometheus监控 简介 Prometheus是一个开源监控系统,在除了纯数字时间序列方面表现非常好。它既适用于面向服务器等硬件指标的监控 [阅读全文]