-
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
cdfa394
commit d96e0e1
Showing
26 changed files
with
301 additions
and
12 deletions.
There are no files selected for viewing
Binary file added
BIN
+254 KB
source/_static/kubernetes/monitor/grafana/grafana_mysql_data_source.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+41.8 KB
source/_static/kubernetes/monitor/grafana/grafana_mysql_datasource_query.png
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. _ansible_config_raid: | ||
|
||
======================= | ||
Ansible配置RAID存储 | ||
======================= | ||
|
||
.. note:: | ||
|
||
Ansible可以配置本机RAID实现 :ref:`mdadm_raid10` 相同功能,待续...我准备用Ansible来实现 | ||
|
||
参考 | ||
======= | ||
|
||
- `Product Documentation > Red Hat Enterprise Linux > 9 > 管理存储设备 > 18.7. 使用存储系统角色配置 RAID 卷 <https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/9/html/managing_storage_devices/configuring-a-raid-volume-using-the-storage-system-role_managing-raid>`_ |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ Ansible | |
:maxdepth: 1 | ||
|
||
introduce_ansible.rst | ||
ansible_config_raid.rst | ||
|
||
.. only:: subproject and html | ||
|
||
|
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 @@ | ||
ps -T -p <PID> |
1 change: 1 addition & 0 deletions
1
source/kernel/process/process_vs_thread/ps_special_thread_count
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 @@ | ||
ps -T -p <PID> | awk '{print $5}' | sort | uniq -c | sort -n -k1 |
6 changes: 6 additions & 0 deletions
6
source/kernel/process/process_vs_thread/ps_special_thread_count_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,6 @@ | ||
... | ||
3 listener_loop | ||
3 reaper | ||
3 rund-1f1b78d6 | ||
4 prealloc-memnum | ||
23758 client_handler |
9 changes: 9 additions & 0 deletions
9
source/kernel/process/process_vs_thread/ps_special_thread_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,9 @@ | ||
PID SPID TTY TIME CMD | ||
39112 39112 ? 00:00:00 rund-1f1b78d6 | ||
39112 39115 ? 00:00:00 tokio-runtime-w | ||
39112 40565 ? 3-11:35:27 vmm_master | ||
39112 41223 ? 00:00:00 blk_iothread_q0 | ||
39112 43205 ? 39-17:59:40 fc_vcpu0 | ||
39112 43206 ? 34-22:50:52 fc_vcpu1 | ||
39112 43207 ? 34-23:18:56 fc_vcpu2 | ||
... |
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,7 @@ | ||
#cat /proc/303564/stack | ||
[<0>] futex_wait_queue_me+0xb6/0x110 | ||
[<0>] futex_wait+0xe9/0x240 | ||
[<0>] do_futex+0xa7/0x150 | ||
[<0>] __x64_sys_futex+0x146/0x1c0 | ||
[<0>] do_syscall_64+0x2d/0x40 | ||
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 |
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
3 changes: 3 additions & 0 deletions
3
source/kubernetes/monitor/grafana/grafana_mysql_data_source/grant_grafana_mysql_account
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 @@ | ||
grant usage on notifier.* to grafanaReader@'%' identified by 'PASSWORD'; | ||
grant select on notifier.* to 'grafanaReader'; | ||
flush privileges; |
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
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 @@ | ||
.. _mdadm_raid10: | ||
|
||
===================== | ||
mdadm构建RAID10 | ||
===================== | ||
|
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
SELECT count(alert) as 告警数量, date(gmt_create) as 日期 FROM notifier.notifier_alert_statistics | ||
where gmt_create between '2023-07-01 00:00:00' and '2023-07-31 23:59:59' | ||
GROUP BY date( gmt_create ) order by date(gmt_create); |
13 changes: 13 additions & 0 deletions
13
source/mysql/query/mysql_query_date_time/count_rows_per_day_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,13 @@ | ||
+--------------+------------+ | ||
| 告警数量 | 日期 | | ||
+--------------+------------+ | ||
| 1 | 2023-07-01 | | ||
| 6 | 2023-07-03 | | ||
| 2 | 2023-07-05 | | ||
| 7 | 2023-07-06 | | ||
...... | ||
| 9 | 2023-07-27 | | ||
| 3 | 2023-07-28 | | ||
| 1 | 2023-07-29 | | ||
+--------------+------------+ | ||
25 rows in set (0.00 sec) |
3 changes: 3 additions & 0 deletions
3
source/mysql/query/mysql_query_date_time/count_rows_per_hour_order_by_number
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 @@ | ||
SELECT count(alert) as 告警数量, hour(gmt_create) as 小时 FROM notifier.notifier_alert_statistics | ||
where gmt_create between '2023-07-01 00:00:00' and '2023-07-31 23:59:59' | ||
GROUP BY hour(gmt_create) order by cast(hour(gmt_create) as unsigned); |
10 changes: 10 additions & 0 deletions
10
source/mysql/query/mysql_query_date_time/count_rows_per_hour_order_by_number_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,10 @@ | ||
+--------------+--------+ | ||
| 告警数量 | 小时 | | ||
+--------------+--------+ | ||
| 3 | 0 | | ||
| 3 | 1 | | ||
| 2 | 2 | | ||
...... | ||
| 4 | 23 | | ||
+--------------+--------+ | ||
24 rows in set (0.00 sec) |
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,5 @@ | ||
# Do NOT show hidden files (beginning with ".", i.e., .*): | ||
find DirsRoot/* -maxdepth 0 -type f | ||
|
||
# DO show hidden files: | ||
find DirsRoot/ -maxdepth 1 -type f |