-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7149e3
commit 5726202
Showing
37 changed files
with
558 additions
and
15 deletions.
There are no files selected for viewing
Binary file added
BIN
+539 KB
...tatic/kubernetes/monitor/prometheus/prometheus_exporters/node_exporter_full.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
source/_static/performance/pcp/retrospective-architecture.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. _kindle_download_helper: | ||
|
||
========================= | ||
kindle电子书批量下载 | ||
========================= | ||
|
||
参考 | ||
====== | ||
|
||
- `Kindle_download_helper (Github) <https://github.com/yihong0618/Kindle_download_helper>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ce/kubernetes/monitor/prometheus/prometheus_exporters/node_exporter/install_node_exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version=1.6.1 | ||
wget https://github.com/prometheus/node_exporter/releases/download/v${version}/node_exporter-${version}.linux-amd64.tar.gz | ||
tar xvfz node_exporter-${version}.linux-amd64.tar.gz | ||
cd node_exporter-${version}.linux-amd64/ | ||
sudo mv node_exporter /usr/local/bin/ | ||
|
||
# 直接运行 | ||
#/usr/local/bin/node_exporter |
18 changes: 18 additions & 0 deletions
18
...ce/kubernetes/monitor/prometheus/prometheus_exporters/node_exporter/node_exporter.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=node_exporter | ||
Wants=network-online.target | ||
After=network-online.target | ||
|
||
StartLimitIntervalSec=500 | ||
StartLimitBurst=5 | ||
|
||
[Service] | ||
User=prometheus | ||
Group=prometheus | ||
Type=simple | ||
Restart=on-failure | ||
RestartSec=5s | ||
ExecStart=/usr/local/bin/node_exporter | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
6 changes: 6 additions & 0 deletions
6
source/kubernetes/monitor/prometheus/prometheus_exporters/node_exporter/prometheus.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
... | ||
scrape_configs: | ||
... | ||
- job_name: "node" | ||
static_configs: | ||
- targets: ["localhost:9100"] |
3 changes: 3 additions & 0 deletions
3
...ce/kubernetes/monitor/prometheus/prometheus_exporters/node_exporter/systemd_node_exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
systemctl daemon-reload | ||
systemctl enable --now node_exporter | ||
systemctl status node_exporter |
20 changes: 20 additions & 0 deletions
20
...rnetes/monitor/prometheus/prometheus_exporters/node_exporter/systemd_node_exporter_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
● node_exporter.service - node_exporter | ||
Loaded: loaded (/etc/systemd/system/node_exporter.service; enabled; vendor preset: enabled) | ||
Active: active (running) since Tue 2023-07-18 15:12:23 CST; 2min 37s ago | ||
Main PID: 484617 (node_exporter) | ||
Tasks: 5 (limit: 464040) | ||
Memory: 3.2M | ||
CPU: 20ms | ||
CGroup: /system.slice/node_exporter.service | ||
└─484617 /usr/local/bin/node_exporter | ||
|
||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.618Z caller=node_exporter.go:117 level=info collector=thermal_zone | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.618Z caller=node_exporter.go:117 level=info collector=time | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=timex | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=udp_queues | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=uname | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=vmstat | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=xfs | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=node_exporter.go:117 level=info collector=zfs | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.619Z caller=tls_config.go:274 level=info msg="Listening on" address=[::]:9100 | ||
Jul 18 15:12:23 zcloud.staging.huatai.me node_exporter[484617]: ts=2023-07-18T07:12:23.620Z caller=tls_config.go:277 level=info msg="TLS is disabled." http2=false address=[::]:9100 |
9 changes: 9 additions & 0 deletions
9
.../monitor/prometheus/prometheus_exporters/node_exporter_ipmitool_text_plugin.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.. _node_exporter_ipmitool_text_plugin: | ||
|
||
=================================== | ||
Node Exporter ipmitool 文本插件 | ||
=================================== | ||
|
||
通过 :ref:`node_exporter_textfile-collector` 可以将几乎所有文本转换成Prometheus的metrics,也包括 :ref:`ipmi` 。这种方式可以帮助我们监控服务器的硬件: | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
...es/monitor/prometheus/prometheus_exporters/node_exporter_textfile-collector.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _node_exporter_textfile-collector: | ||
|
||
====================================== | ||
Node Exporter的Textfile Collector扩展 | ||
====================================== | ||
|
||
参考 | ||
======== | ||
|
||
- `Node Exporter (GitHub)#Textfile Collector <https://github.com/prometheus/node_exporter#textfile-collector>`_ | ||
- `Prometheus Textfile Collectors <https://www.nine.ch/en/blog/prometheus-textfile-collectors>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ Kubernetes安全 | |
falco/index | ||
cert-manager/index | ||
spiffe/index | ||
vault/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.. _vault: | ||
|
||
========================================= | ||
vault: 安全访问secrets工具 | ||
========================================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
intro_vault.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _intro_vault: | ||
|
||
================= | ||
vault简介 | ||
================= | ||
|
||
`vault (GitHub) <https://github.com/hashicorp/vault>`_ 是著名的 HashiCorp 公司开发的安全凭证(secrets)管理工具。Vault能够为secrets提供统一的接口,同时提供严格的访问控制并记录详细的审计日志。 | ||
|
||
现代系统需要访问大量的secrets: 例如数据库凭证,外部服务的API密钥,面向服务的架构通信的凭证。如果没有secrets管理解决方案,密钥的生命管理、安全存储和详细的审计是不可能的,这就是valut提供的功能。 | ||
|
||
Vault提供的关键功能: | ||
|
||
- 安全的secret存储: 任意key/value secrets可以存储在Vault中。secrets写入持久化存储前进行加密,以确保对原始存储访问权限不能访问secrets。 | ||
- 动态secrets: Vault 可以为某些系统(例如 AWS 或 SQL 数据库)按需生成secrets(按需生成有效期限的密钥对,租约到期后自动撤销) | ||
- 数据加密: 可以自定义加密参数,加密数据可以存储在SQL数据库,无需用户设计自己的加密方法 | ||
- 租赁和续订:Vault 中的所有secrets都有与其关联的租约。 租约结束时,Vault 将自动撤销该秘密 | ||
- 撤销:Vault 内置了对secrets撤销的支持 | ||
|
||
待学习实践... | ||
|
||
参考 | ||
====== | ||
|
||
- `vault (GitHub) <https://github.com/hashicorp/vault>`_ |
Oops, something went wrong.