docker部署3节点ELK集群

一、安装elasticsearch集群 3个节点执行: apt-get install openjdk-8-jdk docker pull elasticsearch:6.4.2 cat /etc/sysctl.conf 加一行 vm.max_map_count=655360 root@k8s01b:/data/<a href="http://yw8.tech/tag/elk/" title="查看与 elk 相关的文章" target="_blank">elk</a># cat es1.yml #集 [阅读全文]

filebeat + elk(docker容器日志收集方案)

https://www.jianshu.com/p/7f404e804463 filebeat 5.3.1 结合 rancher 和 data-volume 实现横向扩展 ELK Stack 6.x with docker 关于集群化可参考 :http://www.jianshu.com/p/9dfac37885cb http://blog.csdn.net/qq_39284787/article/details/78874132 http://blog.csdn.net/Raptor/article/details/77622114 用Do [阅读全文]

fs服务的手工部署脚本\日志切割

#!/bin/bash current_date=`date -d "0 day" "+%Y%m%d"` #列出时间 echo $current_date docker build -t harbor.xikang.com/ycyltest/tm-fs:$current_date -- rm=true .sleep 10 docker push harbor.xikang.com/ycyltest/tm-fs:$current_date sed -i "s/image.*tm-fs.*/image: harbor.xikang.com\/ycyltest\/tm- fs:$current_date/g" /root/xkmicroservice/tm-fs/tm-fs.yamlkubectl apply -f /root/xkmicroservice/tm-fs/tm-fs.yaml 日志切割脚本 #!/bin/bash # this_path=$(cd `dirname $0`;pwd) #根据脚本所在路径 cd $this_path echo $this_path current_date=`date -d "-1 day" "+%Y%m%d"` #列出时间 echo $current_date split [阅读全文]

gitlab_最新版本一键化安装shell脚本

#!/bin/bash #gitlab安装 cat > /etc/yum.repos.d/gitlab-ce.repo << 'EOF' [gitlab-ce] name=Gitlab CE Repository baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/ gpgcheck=0 enabled=1 EOF wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sleep 5 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo #pypi 镜像 #临时使用 yum install python-pip -y pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package pip install pip -U pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U #docker-ce wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo [阅读全文]

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", [阅读全文]

harbor镜像仓库

容器技术和镜像仓库介绍 2.选型原因 3.部署 4.高可用部署 目录 harbor镜像仓库搭建 容器技术和镜像仓库介绍 内核容器技术以一种完整形态最早出现 [阅读全文]