07 2021 档案

摘要:./cert-tool.sh ca 365 ./cert-tool.sh server 365 #!/bin/bash mkdir -p cert if [ -n "$2" ]; then day=$2 else day=10000 fi clear_old(){ rm -f cert/* } re 阅读全文
posted @ 2021-07-19 12:03 三木燕 阅读(178) 评论(0) 推荐(0)
摘要:配置文件 global: resolve_timeout: 5m smtp_from: ops@example.com smtp_smarthost: smtp.exmail.qq.com:465 smtp_hello: k8s smtp_auth_username: ops@example.com 阅读全文
posted @ 2021-07-02 11:45 三木燕 阅读(318) 评论(0) 推荐(0)
摘要:配置文件例子 global: scrape_interval: 15s evaluation_interval: 15s alerting: alertmanagers: - static_configs: - targets: - localhost:9093 rule_files: - "rul 阅读全文
posted @ 2021-07-02 11:41 三木燕 阅读(481) 评论(0) 推荐(0)
摘要:在k8s集群内prometheus可以通过service自动发现node_exporter和其它的一些target 如果需要接入裸机上面的node_exporter可以使用静态配置,很明显静态配置在机器数量比较多的时候不方便维护 scrape_configs: - job_name: 'node_e 阅读全文
posted @ 2021-07-01 15:29 三木燕 阅读(634) 评论(0) 推荐(0)