モニタリング・メトリックの参照
ここではBaseDBの参照を行う
これは「DBシステムの詳細」画面
これの下部にいくと、
6つのメトリックが確認できる
次に、「データベース詳細」画面で見られるメトリックを確認
モニタリング・メトリックの参照(サービス・メトリック画面での参照)
「メトリック・ネームスペース」を「oci_database_cluster」に設定すると下図の通り
アラーム通知先の作成
確認のメールが送信されてくる
アラーム定義の作成
メール通知されることを確認
サーバ側で負荷をかけるための準備
[root@db-se-sjis ~]# yum repolist all | grep -i epel
ol7_developer_EPEL/x86_64 Oracle Linux 7Server Develop disabled
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# yum-config-manager --enable ol7_developer_EPEL
Loaded plugins: versionlock
=========================== repo: ol7_developer_EPEL ===========================
[ol7_developer_EPEL]
async = True
bandwidth = 0
(---略---)
timeout = 30.0
ui_id = ol7_developer_EPEL/x86_64
ui_repoid_vars = releasever,
basearch
username =
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# yum repolist all | grep -i epel
ol7_developer_EPEL/x86_64 Oracle Linux 7Server Develop enabled: 48883+7
[root@db-se-sjis ~]#
[root@db-se-sjis ~]#
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# yum -y install stress
Loaded plugins: ulninfo, versionlock
Excluding 358 updates due to versionlock (use "yum versionlock status" to show them)
Resolving Dependencies
--> Running transaction check
---> Package stress.x86_64 0:1.0.4-16.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
stress x86_64 1.0.4-16.el7 ol7_developer_EPEL 39 k
Transaction Summary
================================================================================
Install 1 Package
(---略---)
Installed:
stress.x86_64 0:1.0.4-16.el7
Complete!
[root@db-se-sjis ~]#
[root@db-se-sjis ~]#
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# stress -c 2 &
[1] 19527
[root@db-se-sjis ~]# stress: info: [19527] dispatching hogs: 2 cpu, 0 io, 0 vm, 0 hdd
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# ps -ef | grep stress
root 19527 11382 0 08:37 pts/0 00:00:00 stress -c 2
root 19528 19527 52 08:37 pts/0 00:02:00 stress -c 2
root 19529 19527 52 08:37 pts/0 00:02:00 stress -c 2
root 22476 11382 0 08:40 pts/0 00:00:00 grep --color=auto stress
[root@db-se-sjis ~]#
[root@db-se-sjis ~]# top -c
↓↓↓↓↓↓
top - 08:41:29 up 2 days, 3:45, 1 user, load average: 3.24, 2.48, 1.37
Tasks: 559 total, 3 running, 556 sleeping, 0 stopped, 0 zombie
%Cpu(s): 92.8 us, 7.1 sy, 0.0 ni, 0.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 15133024 total, 1447708 free, 11031828 used, 2653488 buff/cache
KiB Swap: 16777212 total, 14356216 free, 2420996 used. 2261512 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
19528 root 20 0 7320 96 0 R 85.6 0.0 2:33.89 stress -c 2
19529 root 20 0 7320 96 0 R 77.1 0.0 2:33.48 stress -c 2
22879 root 20 0 5647228 62136 27712 S 20.6 0.4 0:00.63 /u01/app/1+
コンソールをチェックすると、
メールを確認する
正しくメールが送信された
参照資料