grafana

Grafana: global variables to access [from,to] values of the time range

蓝咒 提交于 2020-01-13 20:28:05
问题 I am doing some tests with a MySQL data-source and make use of the timefilter inside the SQL query: // my query goes here... WHERE $__timeFilter(time_start); which generates something like the following: WHERE time_start >= FROM_UNIXTIME(1505207821) AND time_start <= FROM_UNIXTIME(1505229421); Are there any variables that can give me access to the 2 timestamps that define the time range? For instance, at the example above: from = 1505207821 to = 1505229421 回答1: Yes, $__timeFrom() and $_

Grafana: global variables to access [from,to] values of the time range

心不动则不痛 提交于 2020-01-13 20:27:58
问题 I am doing some tests with a MySQL data-source and make use of the timefilter inside the SQL query: // my query goes here... WHERE $__timeFilter(time_start); which generates something like the following: WHERE time_start >= FROM_UNIXTIME(1505207821) AND time_start <= FROM_UNIXTIME(1505229421); Are there any variables that can give me access to the 2 timestamps that define the time range? For instance, at the example above: from = 1505207821 to = 1505229421 回答1: Yes, $__timeFrom() and $_

Writing OpenTSDB to Bigtable with HTTP POST not working (using Kubernetes(

烂漫一生 提交于 2020-01-12 11:15:50
问题 Updated with more information I am trying to set up OpenTSDB on Bigtable, following this guide: https://cloud.google.com/solutions/opentsdb-cloud-platform Works well, all good. Now I was trying to open the opentsdb-write service with a LoadBalancer (type). Seems to work well, too. Note: using a GCP load balancer. I am then using insomnia to send a POST to the ./api/put endpoint - and I get a 204 as expected (also, using the ?details shows no errors, neither does the ?sync ) (see http:/

分布式监控系统Zabbix--使用Grafana进行图形展示

可紊 提交于 2020-01-11 20:52:03
今天介绍一款高颜值监控绘图工具Grafana,在使用Zabbix监控环境中,通常我们会结合Grafana进行图形展示。Grafana默认没有zabbix作为数据源,需要手动给zabbix安装一个插件,然后再添加进Grafana即可,非常简单。下面就介绍下Grafana的使用: Grafana的官网: http://docs.grafana.org/installation/rpm/ 1)Centos下的安装步骤 # wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.3.1-1.x86_64.rpm # yum install initscripts fontconfig # rpm -Uvh grafana-4.3.1-1.x86_64.rpm Grafana配置文件 Systemd服务和daemon服务在后台运行时,都使用文件/etc/sysconfig/grafana-server来设置环境变量,可以通过修改garfana-server文件来设置日志目录等其他变量。 #默认日志文件:/var/log/grafana #数据库设置 #缺省配置指定一sqlite3数据库位于/var/lib/grafana/grafana.db。请在升级前备份这个数据库

Centos 7.5安装Grafana5.3结合Zabbix3.4实现可视化图形

旧时模样 提交于 2020-01-11 20:49:07
一、Grafana5.3安装及配置 官方下载 https://grafana.com/grafana/download/5.3.4 http://docs.grafana.org/installation/rpm/ 1.下载 rpm 包 wget https://dl.grafana.com/oss/release/grafana-5.3.4-1.x86_64.rpm 2.安装本地rpm包 yum -y localinstall grafana-5.3.4-1.x86_64.rpm 3.安装图像呈现组件 yum -y install fontconfig yum -y install freetype* yum -y install urw-fonts 4.启动grafana,并设置开机启动 $ systemctl daemon-reload $ systemctl start grafana-server $ systemctl status grafana-server sudo systemctl enable grafana-server.service 5. 访问Grafana     地址:http://ServerIP:3000     默认登录用户名密码:admin/admin 二、Grafana插件 官方文档 http://docs.grafana.org

Zabbix结合Grafana绘图

点点圈 提交于 2020-01-11 20:47:42
参考网站: https://www.jianshu.com/p/6eec985c5c94 注意事项: 1、在ganafa添加datasource的时候url写成http://10.116.33.116/zabbix/api_jsonrpc.php 在主机上可以查找对应的文件, [root@yao ~]# find / -name api_jsonrpc.php /var/www/html/zabbix/api_jsonrpc.php /usr/local/zabbix-3.2.6/frontends/php/api_jsonrpc.php [root@yao ~]# 在zabbix-api details的选项里面添加zabbix系统的登陆名和密码 2、grafana获取可用插件列表 [root@yao ~]# /usr/sbin/grafana-cli plugins list-remote 来源: https://www.cnblogs.com/yaok430/p/9288780.html

重置grafana密码

元气小坏坏 提交于 2020-01-10 10:40:52
[root@host~]# sqlite3 /var/lib/grafana/grafana.db SQLite version 3.7.17 2013-05-20 00:56:22 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select * from user; 1|0|admin|admin@localhost||9ae4590dc0933b5086b24d6f3f844f34634c8855b4cf2e4b325179431712b7f26da88222fe22875af3981f42129251d9fe2c|MrxEF1hOqo|oZ6ineBsQI||1|1|0||2019-06-28 09:33:20|2019-06-28 09:35:55|0|2019-06-28 10:14:13 sqlite> update user set password = '59acf18b94d7eb0694c61e60ce44c110c7a683ac6a8f09580d626f90f4a242000746579358d77dd9e570e83fa24faa88a8a6', ...> salt = 'F3FAxVm33R' ...> where login =

Grafana相关配置

送分小仙女□ 提交于 2020-01-10 10:09:31
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> #百分比配置 100*(sum(redis_memory_used_bytes{kubernetes_pod_name=~"$pod"} ) / sum(redis_memory_max_bytes{kubernetes_pod_name=~"$pod"})) #持续时间 (max_over_time(redis_uptime_in_seconds{alias=~"$pod"}[$__interval])) 来源: oschina 链接: https://my.oschina.net/jjjjjjjjjjj11111/blog/3155661

istio+prometheus+grafana 流量监控

南楼画角 提交于 2020-01-07 15:50:53
从零到一配置 OpenAP : 概要 Istio采集指标prometheus+grafana方案,搭建(promethues+prometheus-postgresql-adapter+pg_prometheus) promethues·监控存储平台, 通过Istio+grafana 进行istio流量注入grafana图表展示,实现对API流量的统计。 配置 Prometheus 并且把数据存储至 Postgres (Prometheus + Postgres[TimescaleDB(pg_prometheus)]) 安装配置 Prometheus 安装prometheus 配置promethues.yaml. 配置参数如下: global: scrape_interval: 5s evaluation_interval: 5s external_labels: monitor: 'codelab-monitor' scrape_configs: - job_name: prometheus static_configs: - targets: - node-exporter-default:9100 - job_name: dx-servicemesh static_configs: - targets: - istio-telemetry.istio-system:42422

Grafana采用Prometheus数据源监控linux服务器学习篇一

此生再无相见时 提交于 2020-01-07 15:12:01
操作系统环境:centos7.6 Grafana版本号: Grafana v6.5.2 (742d165) Prometheus版本号: 2.15.0 node_exporter版本号:node_exporter-0.18.1.linux-amd64 linux服务器监控模板json文件如下: { "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "description": "支持 Node Exporter v0.16及以上的版本,精简优化重要指标展示。包含:CPU 内存 磁盘 IO 网络 温度等监控指标。", "editable": true, "gnetId": 8919, "graphTooltip": 0, "id": 5, "iteration": 1578373076201, "links": [ { "asDropdown": false, "icon": "info", "includeVars": false,