grafana

zabbix & Grafana 监控搭建

安稳与你 提交于 2020-02-04 02:13:40
zabbix 监控 Grafana 搭建 zabbix grafana 搭建步骤 1.安装nignx 1.1 添加nginx环境变量 启动 验证 nginx服务 1.2 创建systemctl文件 1.3 修改nginx.conf 1.4 检查配置文件 2.安装php 2.1添加php环境变量 检查配置文件 2.2 创建systemctl 文件 3.安装mysql 3.1mqsql配置文件 3.2初始化mysql 3.3 创建systemctl 文件 4.验证LNMP 环境 来源: CSDN 作者: Evan_HXF 链接: https://blog.csdn.net/lxbee/article/details/104155233

Gitlab服务器搭建

妖精的绣舞 提交于 2020-01-31 00:37:28
Gitlab服务器搭建 云服务器配置要求 免费服务器申请、配置 服务器设置 swap设置 内存大小调整 超时问题 Gitlab install TODO 为了满足自己一些业余项目的版本管理需要,搭建了自己的gitlab服务器。本文记录了搭建过程以及其中遇到的一些问题和解决方法。中间参考了官方文档和很多前辈的blog,感谢。也感谢腾讯云提供的免费服务器^ - ^。 云服务器配置要求 https://docs.gitlab.com/ee/install/requirements.html 参考gitlab的官方文档,需要关注Memory一条,实际使用中发现需要2GB RAM + 2G swap才能正常安装、运行gitlab。 免费服务器申请、配置 目前我使用的是腾讯云提供的免费云服务器 申请链接 ,1核/1GB/1Mbps/50GB,操作系统使用的是ubuntu16.04.1,目前腾讯有提供活动,个人用户只需要1元钱即可试用1个月(比较适合用于学习,后面长期使用还需要再挑选合适的服务商,哪位朋友有合适的欢迎推荐)。 服务器设置 swap设置 需要注意的是默认系统配置中没有使用swap,之前没有接触过服务器端不清楚这是不是云服务器的普遍配置方式。 安装、配置gitlab时内存开销会大于1G,在目前的服务器上出现out of memory的问题

Prometheus监控实践

百般思念 提交于 2020-01-29 16:02:35
prometheus存储的是 时序数据 ,即按相同时序(相同名称和标签),以时间维度存储连续的数据的集合。 一、架构图 二、部署 1. Prometheus Server端部署 1、解压安装包:(各组件最新版下载地址: https://prometheus.io/download/ ) 1 mkdir /opt/monitor;cd /opt/monitor 2 unzip prometheus.zip ./ 3 tar zxf prometheus-2.11.1.linux-amd64.tar.gz 4 mv prometheus-2.11.1.linux-amd64 prometheus-2.11.1 2、添加为系统服务 1 vim /usr/lib/systemd/system/prometheus-server.service 2 3 [Unit] 4 Description=prometheus-server 5 After=network.target 6 7 [Service] 8 Type=simple 9 User=root 10 ExecStart=/opt/monitor/prometheus/prometheus-2.11.1/prometheus --config.file=/opt/monitor/prometheus/prometheus-2.11.1

Docker+JMeter+InfluxDB+Grafana从容器内部发起压测

让人想犯罪 __ 提交于 2020-01-26 19:12:31
1、自由定制JMeter镜像: Dockerfile文件: FROM java:8# 基础镜像MAINTAINER yangjianliang <526861348@qq.com># 作者ENV http_proxy ""ENV https_proxy ""RUN mkdir /test && \ chmod -R 777 /test# 创建/test目录,用于存放jmx脚本、jtl结果文件、html测试报告文件ENV JMETER_VERSION=5.1.1ENV JMETER_HOME=/usr/local/apache-jmeter-${JMETER_VERSION}ENV JMETER_PATH=${JMETER_HOME}/bin:${PATH}ENV PATH=${JMETER_HOME}/bin:${PATH}# 设置JMeter环境变量COPY apache-jmeter-${JMETER_VERSION}.tgz /usr/local# 复制JMeter压缩包RUN cd /usr/local && \ tar -xzvf apache-jmeter-${JMETER_VERSION}.tgz# 解压JMeter# 如果是基于Ubuntu或者CentOS的镜像,COPY之后不需要解压要这一步RUN sed -i '$a sampleresult.default

http_request_duration_seconds_sum / http_request_duration_seconds_count shows 2 graphs

自古美人都是妖i 提交于 2020-01-25 06:51:16
问题 I have a Grafana dashboard, where I try to plot some of the prometheus metrics. I am trying to calculate the average response time for 2 endpoints using the formula: http_request_duration_seconds_sum / http_request_duration_seconds_count but when plotting the query into the Grafana graph panel, I get 4 graphs (2 for each) instead of only 2, which I don't understand. Can anyone tell me, why there are 4 curves instead of 2? The two on the top are from the same query and likewise for the two in

How to mix bar and lines in Grafana in one chart

戏子无情 提交于 2020-01-25 06:45:13
问题 How can I display one dataseries as bar and another as a line in one graph like it is used in the last comment of: see last picture 回答1: Short answer: It's not possible (yet) using the Grafana UI, only by hand. Long answer: As far as I know there is no way of doing this using the UI switches; you'll have to use the use the "alias or regex" fields below the visualisation configuration. Prepare your data Before you start, make sure that your queries A and B retrieve actual data. You won't see

Grafana+Zabbix+Prometheus 监控系统

我只是一个虾纸丫 提交于 2020-01-25 05:24:47
环境说明 软件 版本 操作系统 IP地址 Grafana 5.4.3-1 Centos7.5 192.168.18.231 Prometheus 2.6.1 Centos7.5 192.168.18.232 Zabbix 4.0.4 Centos7.5 192.168.18.233 一、部署Grafana Grafana是一个开源的指标量监测和可视化工具,官方网站为: https://grafana.com/ 。Grafana的安装非常简单,官方就有软件仓库可以直接使用,也可以通过docker镜像等方式直接本地启动。还可以直接下载rpm包、二进制包进行安装。大家可以从 https://grafana.com/grafana/download 下载rpm安装包。 1.1 安装 cd /usr/local/src/ wget https://dl.grafana.com/oss/release/grafana-5.4.3-1.x86_64.rpm yum localinstall grafana-5.4.3-1.x86_64.rpm #默认情况下,grafana的配置存储于sqlite3中,如果你想使用其他存储后端,如mysql,postgresql等,请参考官方文档配置: http://docs.grafana.org/installation/configuration/ 1.2

Hpa not fetching existing custom metric?

给你一囗甜甜゛ 提交于 2020-01-24 22:13:34
问题 I'm using mongodb-exporter for store/query the metrics via prometheus . I have set up a custom metric server and storing values for that . That is the evidence of prometheus-exporter and custom-metric-server works compatible . Query: kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/monitoring/pods/*/mongodb_mongod_wiredtiger_cache_bytes" Result: {"kind":"MetricValueList","apiVersion":"custom.metrics.k8s.io/v1beta1","metadata":{"selfLink":"/apis/custom.metrics.k8s.io/v1beta1

Hpa not fetching existing custom metric?

末鹿安然 提交于 2020-01-24 22:12:06
问题 I'm using mongodb-exporter for store/query the metrics via prometheus . I have set up a custom metric server and storing values for that . That is the evidence of prometheus-exporter and custom-metric-server works compatible . Query: kubectl get --raw "/apis/custom.metrics.k8s.io/v1beta1/namespaces/monitoring/pods/*/mongodb_mongod_wiredtiger_cache_bytes" Result: {"kind":"MetricValueList","apiVersion":"custom.metrics.k8s.io/v1beta1","metadata":{"selfLink":"/apis/custom.metrics.k8s.io/v1beta1

InfluxDB and Grafana graph using midnight as 0 on Y-axis derivative

被刻印的时光 ゝ 提交于 2020-01-24 08:46:10
问题 I am graphing with Grafana (2.6.0) and I have an InfluxDB (0.10.2) database with the following data in it: > select * from "WattmeterMainskwh" where time > now() - 5m name: WattmeterMainskwh ----------------------- time value 1457579891000000000 15529.322 1457579956000000000 15529.411 1457580011000000000 15529.425 1457580072000000000 15529.460 1457580135000000000 15529.476 ...etc... This data collects my household kilowatt usage as measured by a kWH gauge that steadily increments the usage