自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(140)
  • 收藏
  • 关注

转载 Centos8 配置静态IP

安装centos 8之后,重启启动网络时,会出现以下报错报错信息如下:Failed to start network.service: Unit network.service not found.意思为无法重启网络服务,原因是无法找到network.service网络服务。在rhel8(含centos8)上,在/etc/sysconfig/network-scrip...

2019-09-26 15:12:00 768

转载 Prometheus Node_exporter 详解

Basic CPU / Mem / Disk Info     https://www.cnblogs.com/qianyuliang/p/10479515.html Basic CPU / Mem / Disk Gauge    https://www.cnblogs.com/qianyuliang/p/10...

2019-03-16 16:39:00 777

转载 Prometheus Node_exporter 之 Node Exporter

Node Exporter1. Node Exporter Scrape Timetype: GraphUnit: secondsLabel: Seconds{{collector}} - 各个收集器持续时间metrics: node_scrape_collector_duration_seconds{instance=~"$node:$port",job=~"$job"}...

2019-03-16 16:17:00 367

转载 Prometheus Node_exporter 之 Network Netstat ICMP

Network Netstat ICMP /proc/net/snmp1. ICMP Errors 1type: GraphUnit: shortLabel: Messages out (-) / in (+)InErrors - 接收的 ICMP 错误的报文(例如ICMP校验和错误、长度错误等)metrics: irate(node_netstat_Icmp_InErro...

2019-03-16 16:16:00 364

转载 Prometheus Node_exporter 之 Network Netstat UDP

Network Netstat UDP /proc/net/snmp1. UDP In / Outtype: GraphUnit: shortLabel: Datagrams out (-) / in (+)InDatagrams - 平均接收的 UDP 数据包(5分钟内)metrics: irate(node_netstat_Udp_InDatagrams{instanc...

2019-03-16 16:14:00 405

转载 Prometheus Node_exporter 之 Network Netstat TCP Linux MIPs

Network Netstat TCP Linux MIPs1. TCP Aborts / Tiemoutstype: GraphUnit: shortLabel: ConnectionsTCPAbortOnClose - 由于用户关闭中止的连接数metrics: irate(node_netstat_TcpExt_TCPAbortOnClose{instance=~"$node:...

2019-03-16 16:08:00 703

转载 Prometheus Node_exporter 之 Network Netstat TCP

Network Netstat TCP /proc/net/snmp1. TCP Segmentstype: GraphUnit: shortLabel: Segments out (-) / in (+)InCsumErrors - 接收的带有校验和错误的报文数(5分钟内)metrics: irate(node_netstat_Tcp_InCsumErrors{in...

2019-03-16 16:07:00 1262

转载 Prometheus Node_exporter 之 Network Netstat

Network Netstat /proc/net/netstat1. Netstat IP In / Outtype: GraphUnit: shortLabel: Datagrams out (-) / in (+)InReceives - 接收到的 ip 数据报metrics: irate(node_netstat_Ip_InReceives{instance=~"$...

2019-03-16 16:06:00 492

转载 Prometheus Node_exporter 之 Network Sockstat

Network Sockstat proc/net/sockstat1. Sockstat TCPtype: GraphUnit: shortLabel: SocketsTCP_alloc - 已分配(已建立、已申请到sk_buff)的TCP套接字数量metrics: node_sockstat_TCP_alloc{instance=~"$node:$port",job=~...

2019-03-16 16:04:00 1387

转载 Prometheus Node_exporter 之 Network Traffic Detail

Network Traffic Detail /proc/net/dev1. Network Traffic by Packetstype: GraphUnit: packets/secLabel: Packets out (-) / in (+){{device}} - Receive 各个接口每秒接收的数据包总数metrics: irate(node_network_r...

2019-03-16 16:03:00 588

转载 Prometheus Node_exporter 之 FileSystem Detail

FileSystem Detail /proc/filesystems1. Filesystem space availabletype: GraphUnit: bytesLabel: Bytes{{mountpoint}} - 挂载的文件系统可用空间metrics: node_filesystem_avail_bytes{instance=~"$node:$port",j...

2019-03-16 16:00:00 809

转载 Prometheus Node_exporter 之 Disk Datail /proc/diskstats

Disk Datail /proc/diskstats1. Disk IOps Completedtype: GraphUnit: I/O ops/sec(iops)Label: IO read(-)/write(+){{device}} - Reads completed: 每个磁盘分区每秒读完成次数metrics: irate(node_disk_reads_compl...

2019-03-16 15:59:00 1421

转载 Prometheus Node_exporter 之 System Detail

System Detail1. Context Switches / Interruptstype: GraphUnit: shortLabel: CounterContext switches - CPU 的 context switch 平均次数(5分钟内)metrics: irate(node_context_switches_total{instance=~"$no...

2019-03-16 15:58:00 949

转载 Prometheus Node_exporter 之 Memory Detail Vmstat Counters

Memory Detail Vmstat Counters1. Memory Page Activetype: GraphUnit: shortLabel: PagesActive_anon - pages最近被使用过的匿名虚拟内存页 /proc/vmstat nr_active_anonmetrics: node_vmstat_nr_active_anon{in...

2019-03-16 15:57:00 189

转载 Prometheus Node_exporter 之 Memory Detail Vmstat

Memory Detail Vmstat查看/proc/vmstat 文件的内容1. Memory Pages In / Outtype: GraphUnit: shortLabel: PagesPagesin - 从启动到现在读入的内存页数的速率(5分钟内) /proc/vmstat pgpginmetrics: irate(node_vmstat_pgpgin{...

2019-03-16 15:54:00 910

转载 Prometheus Node_exporter 之 Memory Detail Meminfo /proc/meminfo

1. Memory Active / Inactivetype: GraphUnit: bytesLabel: BytesInactive - 最近使用较少的内存, 优先被回收利用 /proc/meminfo Inactivemetrics: node_memory_Inactive_bytes{instance=~"$node:$port",job=~"$job"} ...

2019-03-05 20:54:00 796

转载 Prometheus Node_exporter 之 CPU Memory Net Disk

1. CPUtype: GraphUnit: shortmax: "100"min: "0"Label: PercentageSystem - cpu 在内核模式下执行的进程占比metrics: sum by (mode)(irate(node_cpu_seconds_total{mode="system",instance=~"$node:$port",job=~"$job"...

2019-03-05 20:53:00 314

转载 Prometheus Node_exporter 之 Basic Net / Disk Info

1. Network Traffic Basic 每个接口的基本网络信息type: GraphUnit: bytesrecv {{device}} 各个网络接口的下载量recv lo: 本地环回接口recv eth0: 以太网接口recv docker0: docker0 网络接口metrics: rate(node_network_receive_bytes_total{in...

2019-03-05 20:49:00 191

转载 Prometheus Node_exporter 之 Basic CPU / Mem Graph

1. CPU Basic cpu 的基本信息 /proc/stattype: GraphUnit: shortBusy System: cpu 处于核心态的占比metrics: sum by (instance)(rate(node_cpu_seconds_total{mode="system",instance=~"$node:$port",job=~"$job"}[5m])...

2019-03-05 20:48:00 385

转载 Prometheus Node_exporter 之 Basic CPU / Mem / Disk Gauge

1. CPU Busy :收集所有 cpu 内核 busy 状态占比type: SinglestatUnit: perent(0-100)(所有 cpu使用情况 - 5分钟内 cpu 空闲的平均值) / 所有 cpu使用情况metrics: (((count(count(node_cpu_seconds_total{instance=~\"$node:$port\",job=...

2019-03-05 20:44:00 393

转载 Prometheus Node_exporter metrics 之 Basic CPU / Mem / Disk Info

Basic CPU / Mem / Disk Info1. CPU Cores 物理 CPU 的核数 cat /proc/cpuinfo| grep "cpu cores"| uniqtype:SinglestatUnit: shortmetrics: count(count(node_cpu_seconds_total{instance=~\"$node:$port\",...

2019-03-05 20:40:00 319

转载 Linux 运维工程师一定要知道的六类好习惯和23个教训

一、线上操作规范1.测试使用当初学习Linux的使用,从基础到服务到集群,都是在虚拟机做的,虽然老师告诉我们跟真机没有什么差别,可是对真实环境的渴望日渐上升,不过虚拟机的各种快照却让我们养成了各种手贱的习惯,以致于拿到服务器操作权限时候,就迫不及待的想去试试。记得上班第一天,老大把root密码交给我,由于只能使用putty,我就想使用xshell,于是悄悄登录服务器尝试改为xsh...

2019-01-17 09:46:00 66

转载 容易被误读的iostat

iostat(1)是在Linux系统上查看I/O性能最基本的工具,然而对于那些熟悉其它UNIX系统的人来说它是很容易被误读的。比如在HP-UX上 avserv(相当于Linux上的 svctm)是最重要的I/O指标,反映了硬盘设备的性能,它是指I/O请求从SCSI层发出、到I/O完成之后返回SCSI层所消耗的时间,不包括在SCSI队列中的等待时间,所以avserv体现了硬盘设备处理I/O...

2019-01-11 15:50:00 64

转载 初探diskstats

内核很多重要子系统均通过proc文件的方式,将自身的一些统计信息输出,方便最终用户查看各子系统的运行状态,这些统计信息被称为metrics。 直接查看metrics并不能获取到有用的信息,一般都是由特定的应用程序(htop/sar/iostat等)每隔一段时间读取相关metrics,并进行相应计算,给出更具用户可读性的输出。 常见的metrics文件有:• cpu调度统计信息的/proc...

2019-01-11 15:41:00 177

转载 JVM参数简述

java虚拟机启动时会带有很多的启动参数,Java命令本身就是一个多参数的启动命令。那么具体JVM启动包含哪些参数呢?这篇文章针对java8的情况做一篇汇总解读,包含大多数常见和不常见的命令参数,过于小众的就不写了。我们知道java虚拟机启动时会带有很多的启动参数,Java命令本身就是一个多参数的启动命令。那么具体JVM启动包含哪些参数呢?这篇文章针对java8的情况做一篇汇总解读,包含...

2019-01-10 16:56:00 88

转载 304 Not Modified 简述

在客户端向服务端发送http请求时,若返回状态码为304 Not Modified 则表明此次请求为条件请求。在请求头中有两个请求参数:If-Modified-Since 和 If-None-Match。当客户端缓存了目标资源但不确定该缓存资源是否是最新版本的时候, 就会发送一个条件请求。在进行条件请求时,客户端会提供给服务器一个If-Modified-Since请求头,其值为服...

2018-12-21 15:25:00 150

转载 vmstat命令

vmstat 命令用途:vmstat是Virtual Meomory Statistics(虚拟内存统计)的缩写,可对操作系统的虚拟内存、进程、CPU活动进行监视。它是对系统的整体情况进行统计,不足之处是无法对某个进程进行深入分析。参数:-V prints version.-n causes the headers not to be reprinted regularl...

2018-12-21 10:55:00 62

转载 iostat 工具分析I/O性能

iostat命令用途:主要用于监控系统设备的IO负载情况,iostat首次运行时显示自系统启动开始的各项统计信息,之后运行iostat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。iostat有一个弱点,就是它不能对某个进程进行深入分析,仅对系统的整体情况进行分析。iostat属于sysstat软件包。可以用yum install sysst...

2018-12-21 10:17:00 652

转载 git添加公钥后报错sign_and_send_pubkey: signing failed: agent refused operation

在服务器添加完公钥后报错    sign_and_send_pubkey: signing failed: agent refused operation解决方案:    eval "$(ssh-agent -s)"    ssh-add补充:  linux shell中的eval 语法:eval cmdLine...

2018-11-28 14:46:00 86

转载 Mysql ibdata1简述

What is stored in ibdata1?当启用innodb_file_per_table时,表存储在它们自己的表空间中,但共享表空间仍用于存储其他InnoDB的内部数据:数据字典也就是InnoDB表的元数据改变缓冲区双写缓冲区撤消日志其中一些可以在Percona Server上配置,以避免变得太大。例如,您可以使用innodb_ibuf_max...

2018-11-06 17:04:00 108

转载 Mysql 事务日志(Ib_logfile)

mysql的innodb中事务日志ib_logfile(0/1)概念:事务日志或称redo日志,在mysql中默认以ib_logfile0,ib_logfile1名称存在,可以手工修改参数,调节开启几组日志来服务于当前mysql数据库,mysql采用顺序,循环写方式,每开启一个事务时,会把一些相关信息记录事务日志中(记录对数据文件数据修改的物理位置或叫做偏移量);这个系列文件个数由参数i...

2018-11-06 17:00:00 420

转载 MySQL经典错误

本文目录:Top 1:Too many connections(连接数过多,导致连接不上数据库,业务无法正常进行)Top 2:(主从复制报错类型)Top 3:MySQL安装过程中的报错Top 4:数据库密码忘记的问题Top 5:truncate 删除数据,导致自动清空自增ID,前端返回报错 not found。Top 6:阿里云 MySQL 的配置文件中,需要注意一个参数设置就是:T...

2018-11-01 09:47:00 234

转载 Mysql备份 -----innobackupex

一,原理及介绍〇 xtrabackup能做哪些 对InnoDB引擎的表做热备 增量备份 流压缩传输到另外的服务器上 在线移动表 更简单的创建从库 备份时不增加服务器负载〇 原理 备份及恢复大致涉及三个步骤:备份 -> prepare -> 恢复 备份运行时,工具会记住当时的LSN号,并打开xtrabackup_logfil...

2018-10-30 15:33:00 235

转载 Mysql:1236常见错误

常见的error 1236 报错一, logevent超过max_allowed_packet 大小 1. Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allow...

2018-09-17 11:54:00 130

转载 UltraISO制作U盘启动盘教程

Step 1:首先需要安装UltraISO,完成安装后打开软碟通,文件->打开,打开我们的iso镜像安装包可以百度搜索Step 2:然后选择我们的U盘Step 3:然后点击启动->写入硬盘映像Step 4:写入方式有zip和hdd两种,一般选择hdd或hdd+,选择了写入方式之后要先格式化,格式化完毕之后点击写入等待写入完毕即...

2018-08-17 15:45:00 134

转载 Linux中的官方源、镜像源汇总

转载一篇文章,很有用(一)、企业站搜狐:http://mirrors.sohu.com/网易:http://mirrors.163.com/阿里云:http://mirrors.aliyun.com/腾讯:http://android-mirror.bugly.qq.com:8080/(仅针对APP开发的软件,限流,不推荐)淘宝:http://...

2018-08-06 08:57:00 97

转载 提示"libc.so.6: version `GLIBC_2.14' not found"

启动php 提示"libc.so.6: version `GLIBC_2.14' not found",原因可能是glibc版本太低,php使用了较高的glibc版本引起的1,首先查看系统glibc的版本$ strings /lib64/libc.so.6 |grep GLIBC_GLIBC_2.2.5GLIBC_2.2.6GLIBC_2.3GLIBC_2.3.2...

2018-07-22 16:12:00 230

转载 win8.1 安装msi软件出现 2503、2502

问题现象:  安装Msi封包的程序的时候,老是提示 2503 和 2502 错误。解决办法:  命令提示符提示安装程序权限右击开始按钮,然后选择命令提示如(管理员)在用户账户控制对话框上点击是:假如要安装的文件地址为d:acad.msi ,那么在命令提示符界面输入msiexec /package d:acad.msi后回车:如下图所示,即可正...

2018-07-11 23:11:00 115

转载 平均负载(Load average)

load average 的含义平均负载(load average)是指系统的运行队列的平均利用率,也可以认为是可运行进程的平均数。top命令中load average显示的是最近1分钟、5分钟和15分钟的系统平均负载。系统平均负载表示  系统平均负载被定义为在特定时间间隔内运行队列中(在CPU上运行或者等待运行多少进程)的平均进程数。如果一个进程满足以下条件则其就会位于运行队列...

2018-06-08 13:43:00 314

转载 oracle 导入报错:field in data file exceeds maximum length

今天用sqlldr导入数据时候报错:" Record 1: Rejected - Error on table ks_test, column khname.Field in data file exceeds maximum length "看到这个错误后以为是字段值过小导致,将原来的varchar2(1000) 改到了varchar2(2000)发现还是不可以,依旧报如上...

2018-05-08 11:04:00 198

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除