grafana

【弄nèng - Grafana】入门篇(四)—— Elasticsearch数据源绘制singlestat Panel

那年仲夏 提交于 2019-12-09 12:33:18
文章目录 1. General 1.1 Drilldown / detail link 2. Metrics 3. Options 3.1 Value 3.2 Coloring 3.3 Spark lines 3.4 Gauge 4. Value Mappings 5. Time range 项目推荐 Singlestat panel 允许您显示SINGLE系列的一个主要摘要状态。它将序列简化为一个数字(通过查看序列中的最大值,最小值,平均值或总和)。Singlestat还提供用于为统计信息或面板背景着色的阈值。它还可以将单个数字转换为文本值,并显示该系列的迷你图摘要。 官网 传送门 1. General General和Metrics页面属性同graph一样, Graph教程传送门 点击Title – Edit进入编辑界面 属性解释 Repeat: 可以选择变量,根据变量增加减少图形(之后博客会详解复制)。 detail link: 可以添加http链接或者dashboard链接。 Title: 可以使用变量(之后博客会详解变量) 1.1 Drilldown / detail link dashboard和超链接属性不同 absolute使用 配置好后返回主页面,点击图形右上角进行跳转,生成的连接是 https://www.baidu.com/?from=now-6h&to

Prometheus+Grafana监控

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 11:48:30
什么是Prometheus? Prometheus是由SoundCloud开发的开源监控报警系统和时序列数据库(TSDB)。Prometheus使用Go语言开发,是Google BorgMon监控系统的开源版本。 2016年由Google发起Linux基金会旗下的原生云基金会(Cloud Native Computing Foundation), 将Prometheus纳入其下第二大开源项目。 Prometheus目前在开源社区相当活跃。 Prometheus和Heapster(Heapster是K8S的一个子项目,用于获取集群的性能数据。)相比功能更完善、更全面。Prometheus性能也足够支撑上万台规模的集群。 Prometheus的特点 多维度数据模型。 灵活的查询语言。 不依赖分布式存储,单个服务器节点是自主的。 通过基于HTTP的pull方式采集时序数据。 可以通过中间网关进行时序列数据推送。 通过服务发现或者静态配置来发现目标服务对象。 支持多种多样的图表和界面展示,比如Grafana等。 Prometheus监控基本原理 Prometheus的基本原理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的HTTP接口就可以接入监控。不需要任何SDK或者其他的集成过程。这样做非常适合做虚拟化环境监控系统,比如VM、Docker、Kubernetes等

Grafana 安装配置 对接zabbix

£可爱£侵袭症+ 提交于 2019-12-08 22:31:27
1.下载安装 wget https://dl.grafana.com/oss/release/grafana-6.5.1-1.x86_64.rpm yum install grafana-6.5.1-1.x86_64.rpm -y systemctl restart grafana-server.service 浏览器输入 http://192.168.0.25:3000/ IP加3000端口登录,默认账号密码,admin admin ,第一登录需要改密码 grafana-cli plugins install alexanderzobnin-zabbix-app #安装连接zabbix的控件 systemctl restart grafana-server.service #安装完成需要重启一下 2.添加监控项 英文不好的同学建议使用谷歌浏览器打开,可以机翻成中文 #先点击+ 图标选择可视化添加仪表盘 #由于我第一个准备添加内存百分比,这个数值只会在0-100直接,所以我用第三个显示效果最佳 #在点击上面第一个添加数据源,在"询问"的下拉列表里选中zabbix为数据源,在弹出的框中,先选中zabbix的组--主机--应用集(我这没有所以不用选)--监控项,选完后上面的图标就有值了。 #在选中左边第二个,微调一下图形的显示 #在选第三个,设置一下面板标题,由于我上面已经设置了标题

Hide grafana panels based on selected template variable

为君一笑 提交于 2019-12-08 17:30:33
问题 I am trying to develop kind of dropdown list with metrics and accordingly to selected metric specific panel supposed to appear on dashboard. And vice versa if metric unselected, panel should be hidden. I found the link http://search-devops.com/m/k2DBF2DCJuDrRWa1&subj=Re+grafana+Hide+panels+based+on+results where 2015-10-26 it was told that it is not possible to do. But maybe some functionality was developed until that time which allow to show/hide grafana panel? Thank you 回答1: Need to use

K8S安装prometheus+grafana

我是研究僧i 提交于 2019-12-08 02:58:25
k8s安装Prometheus+Grafana: 1.在kubernetest集群中创建namespace: [root@master k8s-promethus]# cat namespace.yaml apiVersion: v1 kind: Namespace metadata: name: ns-monitor labels: name: ns-monitor [root@master k8s-promethus]# kubectl apply -f namespace.yaml 2.安装node-exporter: [root@master k8s-promethus]# cat node-exporter.yaml kind: DaemonSet apiVersion: apps/v1 metadata: labels: app: node-exporter name: node-exporter namespace: ns-monitor spec: revisionHistoryLimit: 10 selector: matchLabels: app: node-exporter template: metadata: labels: app: node-exporter spec: containers: - name: node-exporter image:

Clear old data in Grafana

陌路散爱 提交于 2019-12-07 18:23:38
问题 I'm using Prometheus and Grafana for monitoring the servers. Grafana data were stored in /home/user/data folder. This folder occupied the majority of the file system . Need to remove the old data in Grafana data folder ( Data which is older than a month ) 回答1: Grafana does not saves data from Prometheus. It queries Prometheus and displays UI. In this case, you would have to look at purging Prometheus data. Prometheus by default has a 15 day retention period. But this could be adjusted by the

Schema design in influxdb

假装没事ソ 提交于 2019-12-07 13:46:05
问题 My use case for influxDB is for storing and trending process data coming from different PLCs. I visualize this data using grafana. In a first pilot, I used the schema design guidelines from influxDB, using a generic measurement name and separating the different value sources by means of tags. For example, when I have 2 pumps in the 'acid' pump group and 2 pumps in the 'caustic' pump group of which I recond the pressure: - pump_pressure {pump: pump_1, group: acid} - pump_pressure {pump: pump_2

Obtaining a total of two series of data from InfluxDB in Grafana

霸气de小男生 提交于 2019-12-07 10:04:39
问题 I am perplexed at this point. I spent a day or three in the deep end of Influx and Grafana, to get some graphs plotted that are crucial to my needs. However, with the last one I need to total up two metrics (two increment counts, in column value). Let's call them notifications.one and notifications.two. In the graph I would like them displayed, it would work well as a total of the two, a single graph line, showing (notifications.one + notifications.two) instead of two separate ones. I tried

Calculating request per second using InfluxDB on Grafana

孤街浪徒 提交于 2019-12-07 08:45:46
问题 I use telegraf plugin nginx to read Nginx's basic status information (ngx_http_stub_status_module) This is my query raw sql: SELECT derivative(mean("requests"), 1s) FROM "nginx" WHERE $timeFilter GROUP BY time($interval) fill(null) This is my data time accepts active handled host port reading requests server waitingwriting 1464921070000000000 7 1 7 hysm 80 0 17 localhost 0 1 1464921080000000000 8 1 8 hysm 80 0 19 localhost 0 1 1464921090000000000 8 1 8 hysm 80 0 20 localhost 0 1

性能工具之JMeter+InfluxDB+Grafana打造压测可视化实时监控

时间秒杀一切 提交于 2019-12-07 02:07:20
文章目录 概述 引言 解决方案 JMeter&InfluxDB集成 InfluxDB安装 安装要求 下载安装 InfluxDB配置 JMeter配置 Grafana&InfluxDB集成 安装启动 导入Dashboard模版 概述 本文我们将介绍如何使用JMeter+InfluxDB+Grafana打造压测可视化实时监控。 引言 我们很多时候在使用JMeter做性能测试,我们很难及时察看压测过程中应用的性能状况,总是需要等到测试完成后去看Report,如果是长时间压测,比如压测1~2天,那就更烦人了。 压测的时候,我们实时通过监听器 GenerateSummaryResults汇总输出,可以看到如下内容 GenerateSummaryResults汇总展示了压测中需要关注的大量信息,其中包括:Avg (Average), Min (Minimum) 、Max (Maximum)响应时间,TPS,错误率,活跃线程数等, jmeter.properties默认是30秒的统计频率,如果我们想使用小于30秒更细颗粒度的统计频率的时候,那么在控制台会有大量的输出,这个时候我们就不好观察结果了。 # jmeter.properties # Define the following property to automatically start a summariser with that