![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
prometheus
文章平均质量分 62
我家小宝_朱朱
这个作者很懒,什么都没留下…
展开
-
02 初识Prometheus - 利用grafana让mysql数据生成折线图,柱状图
https://cloud.tencent.com/developer/article/1582979step1新建一个表testgraph,用来存放查询的数据。DROP TABLE IF EXISTS `testgraph`;CREATE TABLE `testgraph` ( `id` int(10) NOT NULL AUTO_INCREMENT, `create_time` datetime(0) NULL DEFAULT NULL, `value` int(20) N转载 2021-06-27 11:23:36 · 3909 阅读 · 1 评论 -
02 初识Prometheus - Grafana:table
其实使用Table图表的核心思路可以概括为:显示之前的数据处理使用Transform 样式以及结果改写使用Override 所有数据为Instant数据最终效果:1. grafana的 metrics配置主机名node_uname_info{job=~"194node"}{domainname="(none)", instance="ip:8080", job="194node", machine="x86_64", nodename="xxx", relea...转载 2021-06-26 10:50:34 · 2571 阅读 · 0 评论 -
02 初识Prometheus - Grafana:变量
Variableshttps://yunlzheng.gitbook.io/prometheus-book/part-ii-prometheus-jin-jie/grafana/templating通过Dashboard页面的Settings选项,可以进入Dashboard的配置页面并且选择Variables子菜单:用户需要指定变量的名称,后续用户就可以通过$variable_name的形式引用该变量。Grafana目前支持6种不同的变量类型,而能和Prometheus一起工作的主要包含以下转载 2021-06-24 20:59:08 · 10181 阅读 · 0 评论 -
01 初识Prometheus:PromQL
理解时间序列Prometheus会将所有采集到的样本数据以时间序列(time-series)的方式保存在内存数据库中,并且定时保存到硬盘上。time-series是按照时间戳和值的序列顺序存放的,我们称之为向量(vector). 每条time-series通过指标名称(metrics name)和一组标签集(labelset)命名。如下所示,可以将time-series理解为一个以时间为Y轴的数字矩阵:在time-series中的每一个点称为一个样本(sample),样本由以下三部分组成:转载 2021-06-23 11:09:29 · 229 阅读 · 0 评论 -
01 初识Prometheus - Grafana安装及配置一个 Prometheus 的数据源
Grafana是一个开源的可视化平台,并且提供了对Prometheus的完整支持。下载首先我们从https://grafana.com/grafana/download下载对应系统的安装包,下载解压后用下面的命令启动转载 2021-06-21 20:15:14 · 648 阅读 · 0 评论 -
01 初识Prometheus -使用PromQL查询监控数据
https://www.bookstack.cn/read/prometheus_practice/promql-summary.md转载 2021-06-20 11:28:41 · 594 阅读 · 0 评论 -
01 初识Prometheus -使用Node Exporter采集主机运行数据
在Prometheus的架构设计中,Prometheus Server并不直接服务监控特定的目标,其主要任务负责数据的收集,存储并且对外提供数据查询支持。因此为了能够能够监控到某些东西,如主机的CPU使用率,我们需要使用到Exporter。Prometheus周期性的从Exporter暴露的HTTP服务地址(通常是/metrics)拉取监控样本数据。安装Node Exporter...转载 2021-06-19 17:43:21 · 1423 阅读 · 0 评论 -
01 初识Prometheus -安装prometheus
Prometheus是一个开放性的监控解决方案,用户可以非常方便的安装和使用Prometheus并且能够非常方便的对其进行扩展。为了能够更加直观的了解Prometheus Server,接下来我们将在本地部署并运行一个Prometheus Server实例,通过Node Exporter采集当前主机的系统资源使用情况。 并通过Grafana创建一个简单的可视化仪表盘...转载 2021-06-19 17:26:02 · 413 阅读 · 0 评论 -
解决prometheus部署在公网IP上的安全认证问题
认证就是在登陆的时候提示输入账号密码。在这里我们是通过nginx上的HTTP Basic Auth来实现。1、部署nginxyum install -y nginx2、安装apache-htpasswd工具yum -y install httpd-tools3、创建账号密码cd /etc/nginxhtpasswd -c ht.passwd prometheusht.passwd : 文件名prometheus: 帐号名输入密码4、在nginx.conf里面编辑反向代理转载 2021-06-17 17:11:26 · 1153 阅读 · 0 评论