unsigned int block_buf1[BLOCKSIZ]; fd = tmpfile(); char* buf = (char * )malloc((FILEBLK+K)*BLOCKSIZ );// 申请空间 fseek( fd, 0, SEEK_SET ); fwrite( buf, 1, (FILEBLK+K)*BLOCKSIZ , fd ); free(buf); filsys.s_nfree = FILEBLK ; // 空闲文件块数 // 把第1组空闲盘块...
node_filesystem_device_error{device="nerv/ROOT/arch/245413ee2ca8ef56e5fe470b58840955358d7f29c7510dda2159830d2783765f",fstype="zfs",mountpoint="/var/lib/docker/zfs/graph/245413ee2ca8ef56e5fe470b58840955358d7f29c7510dda2159830d2783765f"} 1 node_filesystem_device_error{device="nerv/ROOT/...
When using v0.14.0, I can see the filesystem metrics for that device/mountpoint (seen below). Yet the new version v0.15.0 does not export the same metrics. docker run --log-driver none --name node-exporter --net host --pid host --volume /proc:/host/proc --volume /sys:/host/sy...
Prometheus 官方和一些第三方,已经把一些常用数据库、系统、中间件等的指标数据的采集做成了一个个 ...
AzureBlobFileSystemConfiguration AzureFileShareConfiguration BatchError BatchErrorDetail BatchErrorException CIFSMountConfiguration CachingType Certificate CertificateAddHeaders CertificateAddOptions CertificateAddParameter CertificateCancelDeletionHeaders CertificateCancelDeletionOptions CertificateDeleteHeaders Certifica...
DTS_E_CERTERROR DTS_E_CHANGESYSTEMVARIABLENAMEFAILED DTS_E_CHANGESYSTEMVARIABLENAMESPACEFAILED DTS_E_CHANGESYSTEMVARIABLEREADONLYFAILED DTS_E_CHECKENVELOPEFAILED DTS_E_CHECKPOINTFILEALREADYEXISTS DTS_E_CHECKPOINTFILELOCKED DTS_E_CHECKPOINTFILENOTSPECIFIED DTS_E_CHECKPOINTLOADXML DTS_E_CHECKPOINTMISMATCH DT...
要监控磁盘容量,需要用到node_filesystem_*相关的指标,比如要查询节点磁盘空间使用率,则可以同样用总的减去可用的来进行计算,磁盘可用空间使用node_filesystem_avail_bytes指标,但是由于会有一些我们不关心的磁盘信息,所以我们可以使用fstype标签过滤关心的磁盘信息,比如ext4或者xfs格式的磁盘: ...
要查询磁盘空间使用率,则使用查询语句(1 - node_filesystem_avail_bytes{fstype=~"ext4|xfs"} / node_filesystem_size_bytes{fstype=~"ext4|xfs"}) * 100即可: 磁盘空间使用率 这样就可以得到我们关心的磁盘空间使用率了。 磁盘IO 监控 要监控磁盘 IO,就要区分是读的 IO,还是写的 IO,读 IO 使用node_dis...
File Nodes Size type: Graph Unit: short Label: File Nodes {{mountpoint}} - File nodes total:挂载的文件系统的文件节点大小 metrics: node_filesystem_files{instance=~"$node:$port",job=~"$job",device!~'rootfs'} 5. Filesystem in ReadOnly type: Graph Unit: short Label: Read Only {{mount...
/dev/hd-cfg0: *** WARNING: Filesystem still has errors *** e2fsck 1.42.1 (17-Feb-2012) /dev/hd-cfg1: recovering journal /sbin/e2fsck: unable to set superblock flags on /dev/hd-cfg1 2. The system is able to proactively raise faults related to the SSD (F3073 or F3074 based o...