grafana

grafana+zabbix监控

寵の児 提交于 2020-01-07 14:09:26
下载grafana包 wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-5.2.4-1.x86_64.rpm yum安装 yum localinstall grafana-5.2.4-1.x86_64.rpm 启动grafana服务 systemctl start grafana-server 查看grafana服务 ps -ef |grep grafana 查看3000端口 netstat -plnt |grep 3000 安装grafana-zabbix插件 grafana-cli plugins install alexanderzobnin-zabbix-app 安装完grafana-zabbix插件必须重新启动 systemctl restart grafana-server.service 直接访问IP:3000即可访问 默认账号密码都是admin直接登陆 点击添加数据源 Zabbix的API地址为 http://172.16.8.69/zabbix/api_jsonrpc.php 用户秘密为zabbix的密码 保存测试成功即可 创建仪表盘 点击添加查询 选择刚刚添加的zabbix 点击空白处进行添加 添加好对应选项会出现走势图 设置面板标题 设置好后点击保存

Prometheus+Grafana部署监控docker服务

耗尽温柔 提交于 2020-01-07 05:13:07
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.环境 192.168.244.128 Prometheus 监控服务器 192.168.244.129 docker 服务(被监控端) 注:都是centos7.5系统 2.下载安装包 https://prometheus.io/download/ (需要的安装包都可以下载) wget https://github.com/prometheus/prometheus/releases/download/v2.3.2/prometheus-2.3.2.linux-amd64.tar.gz 服务端(监控server) 3.安装prometheus 部署到/usr/local/目录 promethus不用编译安装,解压目录中有配置文件与启动文件 tar -zxvf prometheus-2.3.2.linux-amd64.tar.gz -C /usr/local/ cd /usr/local/ && mv prometheus-2.3.2.linux-amd64/ prometheus 验证 [root @prometheus local]# cd prometheus/ [root @prometheus prometheus]# ./prometheus --version prometheus,

Docker

孤街醉人 提交于 2020-01-07 04:13:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> $ docker cp grafana:/etc/grafana/grafana.ini /home/canaan/programs/grafana/ 来源: oschina 链接: https://my.oschina.net/u/2552286/blog/3152146

Prometheus & Grafana 初探

自古美人都是妖i 提交于 2020-01-06 18:25:34
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 拿到一个新需求,通过 Prometheus & Grafana 监控接口。 有点晚了,长话短说,早点回家。 整合 Prometheus 到 go 项目中 可以参考 官方示例 。 重点只有这一句,表示记录一个值。对于我们来说就是接口运行时间。 rpcDurationsHistogram.Observe(v) 安装启动 Prometheus 请看 官方教程 。 配置 Prometheus 启动后访问 9090 就可以看到数据了,不过这些数据是 Prometheus 自己的。我们还需要将我们的服务加入到监控中。 - job_name: 'game' metrics_path: '/prometheus/metrics' static_configs: - targets: ['localhost:8021'] 名称、路径、端口号。 重启 Prometheus 就可以看到我们自己的数据了。 Grafana 使用和配置 下载、安装、运行,具体过程不表。注意工作目录的路径。 通过默认的 3000 端口进入 Grafana 面板,新建数据源。端口填 Prometheus 的端口,导入自带的三个插件。 配置面板,把需要展示的数据展示出来。 如图是两个请求的耗时比较。数据量比较小,不太好看。 来源: oschina 链接:

Prometheus简单搭建

六月ゝ 毕业季﹏ 提交于 2020-01-06 17:16:16
一.Prometheus介绍 Prometheus(普罗米修斯)是一个最初在SoundCloud上构建的监控系统。自2012年成为社区开源项目,拥有非常活跃的开发人员和用户社区。为强调开源及独立维护,Prometheus于2016年加入云原生云计算基金会(CNCF),成为继Kubernetes之后的第二个托管项目。 https://prometheus.io https://github.com/prometheus 作为新一代的监控框架,Prometheus 具有以下特点: • 多维数据模型:由度量名称和键值对标识的时间序列数据 • PromSQL:一种灵活的查询语言,可以利用多维数据完成复杂的查询 • 不依赖分布式存储,单个服务器节点可直接工作 • 基于HTTP的pull方式采集时间序列数据 • 推送时间序列数据通过PushGateway组件支持 • 通过服务发现或静态配置发现目标 • 多种图形模式及仪表盘支持 Prometheus适用于以机器为中心的监控以及高度动态面向服务架构的监控。 二.Prometheus部署 转载: https://blog.gmem.cc/prometheus-study-note 1.安装环境: server1:centos7.6 主节点 190.168.3.250 server2:centos7.6 节点1 190.168.3.251

Unknown number of metrics received with statsd and graphite

扶醉桌前 提交于 2020-01-05 08:48:24
问题 I'm trying to gather some data on the performance of graphite and the carbon daemon. Luckily for me the carbon daemon reports to graphite every 60 seconds with some stats on its workings such as the number of metrics received. I'm using statsd to aggregate stats and flush them to the carbon daemon every second, but noticed some weird behavior when setting up to show the number of metrics received in a certain time interval. I'm using grafana to connect to my Graphite instance and pull data

Unable to POST to Grafana using Python3 module requests

倖福魔咒の 提交于 2020-01-04 14:17:40
问题 I'm trying to create a dashboard on Grafana using their backend API. I first test that my API token is set up by using GET and successfully get a return code of 200(shown below). I then try to use POST to create a simple dashboard but I keep getting a return code of 400. I'm pretty sure it has something to do with the payload I'm trying to send, but I have been unable to figure it out. Here is the link to the example page I'm using for their JSON format. http://docs.grafana.org/reference/http

How to use LDAP Authentication with Grafana and Wamp for Single Sign On?

会有一股神秘感。 提交于 2020-01-02 09:20:07
问题 I am trying to add single sign on for grafana using LDAP, I have come across Grafana documentation for LDAP but I did not understand. Can I get Single Sign On feature using LDAP? If yes, Can somebody give me a step by step procedure to follow to setup single sign on using ldap and grafana. Grafana Version : 5.2.1 OS: WINDOWS Update 1 I have been able to configure LDAP with grafana. Now I'm trying to integrate LDAP with wamp for SSO. In apache error log file I'm getting this error auth_ldap

istio1.0.2配置

心已入冬 提交于 2020-01-02 05:13:04
项目的组件相对比较复杂,原有的一些选项是靠 ConfigMap 以及 istioctl 分别调整的,现在通过重新设计的 Helm Chart ,安装选项用 values.yml 或者 helm 命令行的方式来进行集中管理了。 在安装 Istio 之前要确保 Kubernetes 集群(仅支持 v1.9 及以后版本)已部署并配置好本地的 kubectl 客户端。 1. 下载 Istio $ wget https://github.com/istio/istio/releases/download/1.0.2/istio-1.0.2-linux.tar.gz $ tar zxf istio-1.0.2-linux.tar.gz $ cp istio-1.0.2/bin/istioctl /usr/local/bin/ 2. 使用 Helm 部署 Istio 服务 git clone https://github.com/istio/istio.git cd istio 安装包内的 Helm 目录中包含了 Istio 的 Chart,官方提供了两种方法: 用 Helm 生成 istio.yaml ,然后自行安装。 用 Tiller 直接安装。 很明显,两种方法并没有什么本质区别,这里我们采用第一种方法来部署。 $ helm template install/kubernetes/helm

Calculate percentage in Graphite for groupByNode() results

放肆的年华 提交于 2020-01-01 18:16:13
问题 I have two groups of Graphite series, both in this format. The second group is identical, except that instead of "a.b", it has "x.y" prefix. a.b.ccc.a1.hr a.b.ccc.a2.hr a.b.ccc.a3.hr a.b.ddd.a1.hr a.b.ddd.a4.hr To group by 3rd node I use groupByNode(a.b.*.*.hr,2,"sumSeries") , which gets me two series: ccc and ddd . I would like to divide ccc and ddd series from the first group by corresponding series in the second group. How do I use the result of groupByNode in the map/reduce function? 回答1: