原创 dns的搭建及配置

1.1、系統初始化(centos7)1.2、yum安裝bindyum install bind-utils bind bind-devel bind-chroot1.3、配置dns配置文件: 編輯/etc/named.confoptions

原创 Centos下安裝FTP並進行虛擬用戶訪問方式配置

1.1.安裝認證所需包[root@localhost]#yum install pam* [root@localhost]#yum install db4*首先安裝PAM(用於用戶認證)和DB4(用於生成虛擬用戶的用戶名密碼的db文件)。1

原创 Prometheus 自定義exporter 監控key

Prometheus 自定義exporter 監控key當Prometheus的node_exporter中沒有我們需要的一些監控項時,就可以如zabbix一樣定製一些key,讓其支持我們所需要的監控項。例如,我要根據 邏輯cpu核數 來確

原创 sed刪除中文字符

LANG=C sed -r "s/[\x81-\xFE][\x40-\xFE]+//g" test.txt

原创 電影專場

在線電影:https://www.5ixu.com/type/dianying/ 

原创 Go語言優秀文檔

go語言資料彙總 : https://blog.zhnytech.com/articles/2016/07/15/Golang%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%96%99%E6%94%B6%E9%9B%86.ht

原创 監控進程自身監控

[root@prometheus-linkdoc application]# cat test.sh#!/bin/bash Alert_gateway_process_num=$(ps -ef |grep alert_gateway|gre

原创 kubernetes優秀文檔

prometheus-operator 監控kubernetes集羣: https://www.codercto.com/a/49349.html

原创 Consul_template自動註冊prometheus

第1章 Consul_template自動註冊prometheushttps://github.com/hashicorp/consul-template#templating-language1.1 搭建blackbox_exporter

原创 nginx用戶真實IP

    set_real_ip_from 10.0.0.31;    set_real_ip_from 127.0.0.1;    real_ip_header X-Forwarded-For;    real_ip_recursive o

原创 prometheus監控

客戶端window-exporter https://github.com/martinlindhe/wmi_exporter

原创 consul_exporter

官方文檔https://github.com/prometheus/consul_exporter1、編譯運行# 獲取方式1go get github.com/prometheus/consul_exportercd ${GOPATH-/r

原创 consul安裝部署

consul_template: https://www.hi-linux.com/posts/36431.html1、下載安裝包 並解壓consul 得到consul二進制文件https://releases.hashicorp.com/

原创 Prometheus監控k8s指標表達式梳理

Pod內存使用率的計算Pod 內存使用率的計算就簡單多了,直接用內存實際使用量除以內存限制使用量即可:sum by(pod_name, namespace, job) (container_memory_rss{image!=""}) / 

原创 雲服務器 ECS Linux Ubuntu 系統修改 resolv 文件中的 DNS信息後重啓自動還

問題現象雲服務器 ECS Ubuntu系統修改 resolv.conf 文件後,重啓系統後,自動還原了之前的 DNS 配置信息。如下圖所示: 問題原因Ubuntu 系統中 /etc/resolv.conf 其實是一個軟連接(Link),它其