1.Install ob-deploy in obd server(obdserver can be a ocp server)

(1)download newest version of ob-deploy and obagent,upload them to /soft directory

oceanbase-community-stable-el-7-x86_64安装包下载_开源镜像站-阿里云

(2) install obdeploy

rpm -ivh ob-deploy-1.6.2-10.el7.x86_64.rpm

2.Install obagent on all observers

su - admin

(1)prepare mirror

su - admin

obd mirror disable remote

cd /soft

obd mirror clone *.rpm

obd mirror list

(2)configure admin user ssh passwordless between obd server and observers,and ensure 8088 and 8089 of observers are not occupied

netstat -an|grep 8088

netstat -an|grep 8089

(3) prepare obagent-only.yaml

download obagent-only-example.yaml from github

obdeploy/obagent-only-example.yaml at master · oceanbase/obdeploy · GitHub

You need modify [servers]/[monitor_password]/[cluster_name]/[cluster_id] and [zone ips]

(4)install obagent

obd cluster deploy only-obagent -c obagent-only.yaml

obd cluster list

obd cluster start only-obagent

obd cluster list

(5)check if obagent started successfully

ssh {observerip}

ps -ef|grep obagent

(6)check monitoring details

host related:

curl --user admin:root http://{observerip}:8088/metrics/node/host

ob related:

curl --user admin:root http://{observerip}:8088/metrics/ob/basic

(7)if you need reinstall obagent,following commmands below and reinstall(optional)

obd cluster stop only-obagent

obd cluster destroy only-obagent

3.Install and start prometheus(choose the obd server)

(1)download prometheus

Download | Prometheus

(2) install and configure prometheus

groupadd prometheus

useradd -g prometheus prometheus

cd /usr/local

tar -xvf /soft/prometheus-2.35.0.linux-amd64.tar.gz

mv prometheus-2.35.0.linux-amd64 prometheus

cd prometheus/

mv prometheus.yml prometheus.yml.bk

scp root@{observerip}:/home/admin/obagent/conf/prometheus_config/prometheus.yaml .

scp -r root@{observerip}:/home/admin/obagent/conf/prometheus_config/rules .

vi prometheus.yaml

modify localhost:9090 to {your ip}:9090

chown -R prometheus.prometheus /usr/local/prometheus

mkdir -p /home/prometheus/data

chown -R prometheus.prometheus /home/prometheus/data

vi /etc/systemd/system/prometheus.service

[Unit]

Description=prometheus

After=network.target

[Service]

Type=simple

User=prometheus

ExecStart=/usr/local/prometheus/prometheus --config.file=/usr/local/prometheus/prometheus.yml --storage.tsdb.path=/home/prometheus/data

Restart=on-failure

[Install]

WantedBy=multi-user.target

(3)start prometheus

systemctl enable prometheus.service

systemctl start prometheus.service

(4)check prometheus

http://{your ip}:9090/

4.configure grafana

(1)download json of ob for grafana

Oceanbase Metrics | Grafana Labs

Host Metrics | Grafana Labs

Obproxy Metrics | Grafana Labs

(2) add new prometheus data source as prometheus and configure url as http://{your ip}:9090/

(3)import json files to grafana and choose data source - prometheus

grafana监控oceanbase-obagent部署相关推荐

  1. ceilometer+gnocchi+grafana 监控展示kolla部署的openstack。

    ceilometer 相关 https://docs.openstack.org/ceilometer/train/install/install-base-rdo.html train版本OpenS ...

  2. 开源OceanBase如何与Prometheus与Grafana监控结合

    一.OceanBase 数据库简介 OceanBase 数据库是一个原生的分布式关系数据库,它是完全由阿里巴巴和蚂蚁集团自主研发的项目,近期成立单独的商业公司北京奥星贝斯进行运营,并于2021年6月1 ...

  3. 万字好文!Docker环境部署Prometheus+Grafana监控系统

    点击上方 "编程技术圈"关注, 星标或置顶一起成长 后台回复"大礼包"有惊喜礼包! 每日英文 It doesn't matter how slow you ar ...

  4. 基于Prometheus+Grafana监控SQL Server数据库

    墨墨导读:本文整理了基于Prometheus+Grafana监控SQL Server数据库的全过程,分享至此,希望对大家有帮助. 搭建SQL Server环境 使用容器建立SQL Server环境非常 ...

  5. k8s prometheus/grafana 监控系统建设

    全栈工程师开发手册 (作者:栾鹏) 架构系列文章 prometheus架构 其中 1.pushgateway是用来接收业务推送的数据形成metrics接口. 2.exporter是用来监控组件(三方中 ...

  6. prometheus+grafana监控以及企业微信告警

    prometheus+grafana监控以及企业微信告警(单机二进制部署) 一.下载部署包,更改其中两个包名称,放到/data下 1.安装包以及解压步骤 grafana-enterprise-8.4. ...

  7. PMM 监控原理以及部署

    1. PMM(Percona Monitoring and Management) ​ Percona 监控和管理, 主要是为了监控 MySQL和 MongoDB性能的开源平台, 专业的数据库监控,随 ...

  8. 【云原生】Prometheus+Grafana on K8s 环境部署

    文章目录 一.概述 二.使用 Helm 安装 Prometheus 1)配置源 2)下载 prometheus 包 3)修改镜像 4)安装 prometheus 5)访问web 6)配置https并更 ...

  9. smartadmin mysql_Prometheus、Alertmanager、Grafana 监控 Linux 与 MySQL

    //检查各个端口的放行 //部署各个模块与应用 cd /usr/local/Prometheus_compose vim docker-compose.yml version: "3&quo ...

  10. MySQL(七) Prometheus监控炫酷部署

    MySQL Prometheus监控炫酷部署 开源的系统监控和报警工具,监控项目的流量.内存量.负载量等实时数据.它通过直接或短时jobs中介收集监控数据,在本地存储所有收集到的数据,并且通过定义好的 ...

最新文章

  1. 2021年大数据Hadoop(二十七):YARN运行流程
  2. nagios监控linux nrpe安装
  3. 高并发和分布式中的幂等处理
  4. iOS Winding Rules 缠绕规则
  5. boost::statechart模块实现延期测试的测试程序
  6. 分布式机器学习_229页,CMU博士张昊毕业论文公布,探索机器学习并行化的奥秘...
  7. 1006 换个格式输出整数 (15 分)
  8. 控制for each循环次数_CCF CSP编程题解201312-1:出现次数最多的数
  9. android课程设计实训目的,汽车专业实习目的与意义
  10. BZOJ3139: [Hnoi2013]比赛
  11. Unity3d shader之卡通着色Toon Shading
  12. 看故事也能长知识,CPU的工作原理原来这么简单!
  13. quartus仿真24:数据选择器MUX四选一74153八选一74151
  14. 通过命令行更换windows 10 激活码
  15. Go语法·类型选择(type switch)
  16. 走到哪里都有我们的精彩
  17. 五种方式显示圆形图片
  18. 华为、思科、爱立信、诺基亚、中兴等全球11大通讯设施企业2020年第三季度业绩...
  19. Kyligence 春季论坛成功举办,助力企业构建数字化管理新体系
  20. 从“读万卷书”到“行万里路”,如何做到知行合一

热门文章

  1. c语言转职,救世之树R和C的意义新手详解 职业和技能的转职
  2. android生成将布局生成海报保存并分享
  3. Springboot测试类之@RunWith注解
  4. 【飞轮储能】基于matlab simulink飞轮储能(永磁同步电机)仿真【含Matlab源码 2421期】
  5. (区块链溯源)基于Hyperledger Fabric 区块链的危险化学品溯源
  6. 高斯混合模型聚类算法和K-Means聚类算法
  7. 无锡学python_无锡python基础编程好学吗
  8. 怎样调整计算机视角,迷你世界电脑版怎么调整视角 | 手游网游页游攻略大全
  9. 只有一重循环的排序——侏儒排序(Gnome Sort)
  10. 再说“恢复被删除的文件”(转)