grafana

JMXtrans + InfluxDB + Grafana实现Zookeeper性能指标监控

这一生的挚爱 提交于 2019-12-02 00:25:26
一、总体效果图 这里是将集群全部放在一起,可以根据自己的审美看怎么放 二、监控指标 其中有些指标与第一篇 Zookeeper通过四字命令基础监控(Zabbix) 的四字命令的指标是有重复的,二者选一个则可 三、实现 1、influxdb的安装 1)设置yum源 cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo [influxdb] name = InfluxDB Repository - RHEL \$releasever baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable enabled = 1 gpgcheck = 1 gpgkey = https://repos.influxdata.com/influxdb.key EOF 2)安装influxdb yum install influxdb systemctl start influxdb 3)修改配置文件(元数据以及数据存放目录) [root@ip-172-0-0-7 influxDB]# cat /etc/influxdb/influxdb.conf |grep "^\s*[^# \t].*$" [meta] dir = "/influxDB/meta" [data]

Grafana dividing 2 series

﹥>﹥吖頭↗ 提交于 2019-12-01 22:25:18
I'm trying to divide 2 series to get their ratio. For example I'm got sites (a.com, b.com, c.com) as * (All sites) Each of them has total sections count and errors occurred stats. I'm wanna to show as bars errors/sections where section > errors for each site to each erros for this site. Here I'm whant to got 3 bars. So: A parser.*.sections.total B parser.*.errors.total X-Axis Mode:Series Display:DrawMode: Bars When i'm trying to use divideSeries I'm always got VallueError (divideSeries second argument must reference exactly 1 series) You can use mapSeries with divideSeries to do vector

Spring Boot Actuator 整合 Prometheus

前提是你 提交于 2019-12-01 21:43:11
简介 Spring Boot 自带监控功能 Actuator,可以帮助实现对程序内部运行情况监控,比如监控状况、Bean加载情况、环境变量、日志信息、线程信息等。这一节结合 Prometheus 、Grafana 来更加直观的展示这些信息。 实验 说明 服务名 地址 端口 Prometheus 172.16.2.101 9090 Grafana 172.16.2.101 3000 Spring Boot Demo 172.16.2.204 8080 创建项目 创建用于测试的 Spring Boot 项目,主要代码如下。 pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>io.micrometer</groupId> <artifactId>micrometer-registry

k8s安装grafana监控界面

≯℡__Kan透↙ 提交于 2019-12-01 21:41:06
首先部署grafana pod 1 apiVersion: extensions/v1beta1 2 kind: Deployment 3 metadata: 4 name: monitoring-grafana 5 namespace: kube-system 6 spec: 7 replicas: 1 8 template: 9 metadata: 10 labels: 11 task: monitoring 12 k8s-app: grafana 13 spec: 14 containers: 15 - name: grafana 16 image: grafana/grafana:5.0.0 17 ports: 18 - containerPort: 3000 19 protocol: TCP 20 env: 21 - name: INFLUXDB_HOST 22 value: monitoring-influxdb 23 - name: GF_INSTALL_PLUGINS 24 value: grafana-kubernetes-app 然后部署grafana service 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: monitoring-grafana 5 namespace: kube-system 6

Measure service latency with prometheus

ぃ、小莉子 提交于 2019-12-01 21:28:42
问题 I am new to prometheus and grafana... My primary goal is to get the response time per request. For me it seemed to be a simple thing - but whatever I do I do not get the results I require. I need to be able to analyse the service lateny in the last minutes/hours/days. The current implementation I found was a simple SUMMARY (without definition of quantiles) which is scraped every 15s. Is it possible to get the average request latency of the last minute from my prometheus SUMMARY? If YES: How?

Grafana dividing 2 series

南笙酒味 提交于 2019-12-01 19:03:44
问题 I'm trying to divide 2 series to get their ratio. For example I'm got sites (a.com, b.com, c.com) as * (All sites) Each of them has total sections count and errors occurred stats. I'm wanna to show as bars errors/sections where section > errors for each site to each erros for this site. Here I'm whant to got 3 bars. So: A parser.*.sections.total B parser.*.errors.total X-Axis Mode:Series Display:DrawMode: Bars When i'm trying to use divideSeries I'm always got VallueError (divideSeries second

Measure service latency with prometheus

廉价感情. 提交于 2019-12-01 18:22:59
I am new to prometheus and grafana... My primary goal is to get the response time per request. For me it seemed to be a simple thing - but whatever I do I do not get the results I require. I need to be able to analyse the service lateny in the last minutes/hours/days. The current implementation I found was a simple SUMMARY (without definition of quantiles) which is scraped every 15s. Is it possible to get the average request latency of the last minute from my prometheus SUMMARY? If YES: How? If NO: What should I do? Currently I am using the following query: rate(http_response_time_sum

grafana 添加zabbix数据源

喜欢而已 提交于 2019-12-01 15:52:09
简介 就是介绍下流程,grafana的图表肯定是比zabbix好看的,我一般也就看grafana上的,什么是grafana就不介绍了,自己百度去吧 安装grafana 首先clone 下面这个项目 https://github.com/bboysoulcn/awesome-dockercompose.git 之后 进入下面这个目录 cd grafana 修改docker-compose文件为下面这个状态 version: "3" services: grafana: image: "grafana/grafana:6.0.1" container_name: "grafana" ports: - "3000:3000" environment: #- "GF_SERVER_ROOT_URL=grafana.bboysoul.com" - "GF_SECURITY_ADMIN_PASSWORD=你的密码" - "GF_INSTALL_PLUGINS=alexanderzobnin-zabbix-app" restart: "always" volumes: - "grafana-data:/var/lib/grafana" - "grafana-etc:/etc/grafana/" - "grafana-logs:/var/log/grafana" - "grafana-home:

kubernetes 部署 prometheus 和 grafana 监控

∥☆過路亽.° 提交于 2019-12-01 15:05:59
更好的阅读体验建议点击下方原文链接。 原文地址: http://maoqide.live/post/practice/kubernetes-monitoring/ 完整的记录 kubernetes 监控从部署到配置。 prometheus operator/statefulset https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/prometheus # change namespace sed -i s/kube-system/monitoring/g * # dynamic provision storage class kubectl create -f prometheus-configmap.yaml kubectl create -f prometheus-rbac.yaml kubectl create -f prometheus-statefulset.yaml kubectl create -f prometheus-service.yaml # kube-metrics-server kubectl create -f kube-state-metrics-deployment.yaml kubectl create -f kube-state-metrics-rbac

Prometheus+node_exporter+grafana

心不动则不痛 提交于 2019-12-01 09:51:48
Prometheus+node_exporter+grafana 部署环境 IP 系统 组件 10.172.112.1(server) 10.52.210.223 CentOS Linux release 7.2.1511 (Core) Prometheusnode_exporter grafana 10.52.210.224 CentOS Linux release 7.2.1511 (Core) node_exporter 安装步骤 1. prometheus 1-1 解压 tar -xvf prometheus-2.12.0.linux-amd64.tar.gz cd prometheus-2.12.0.linux-amd64/ 1-2查看prometheus版本 ./prometheus –version(查看版本) 1-3 添加监控项 vim prometheus.yml添加监控项 1-4 启动prometheus nohup ./prometheus --config.file=prometheus.yml &启动prometheus 2. 安装node_exporter(客户端安装) 2-1 解压node_exporter Tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz Cd node_exporter-0.18.1