ãã¹ã詳細ç»é¢ããµã¼ãã¹è©³ç´°ç»é¢ã§è¡¨ç¤ºãããã¡ããªãã¯ã®ç¨®é¡ã«ã¤ãã¦è§£èª¬ãã¾ãã
ã·ã¹ãã ã¡ããªãã¯
ã·ã¹ãã ã¡ããªãã¯ã¨ã¯ãmackerel-agent ãã¤ã³ã¹ãã¼ã«ããã¨èªåçã«ãã¹ãã«æ稿ãããã¡ããªãã¯ç¾¤ã§ãã
Linux
loadavg, cpu, memory, disk, interface, filesystem ã®6種é¡ã®ã°ã©ãã表示ããããããã以ä¸ã®ã¡ããªãã¯åã®å¤ãæç»ããã¾ãã
- loadavgï¼æãç·ï¼
loadavg1
loadavg5
loadavg15
- cpuï¼ç©ã¿ä¸ãï¼
cpu.user.percentage
cpu.iowait.percentage
cpu.system.percentage
cpu.idle.percentage
cpu.nice.percentage
cpu.irq.percentage
cpu.softirq.percentage
cpu.steal.percentage
cpu.guest.percentage
- memoryï¼ç©ã¿ä¸ãããã ã
total
,swap_total
,swap_used
,swap_cached
ã¯æãç·ï¼- Kernel 3.14以éã®Linux
memory.used
ï¼total - available ã§ç®åºããå¤ï¼memory.available
memory.total
memory.swap_used
memory.swap_cached
memory.swap_total
- ãã以å¤ã®Linux
memory.free
memory.buffers
memory.cached
memory.used
ï¼total - free - buffers - cached ã§ç®åºããå¤ï¼memory.total
memory.swap_used
memory.swap_cached
memory.swap_total
- Kernel 3.14以éã®Linux
- diskï¼æãç·ï¼
disk.*.reads.delta
disk.*.writes.delta
- interfaceï¼æãç·ï¼
interface.*.rxBytes.delta
ï¼åä¿¡ãã¤ãæ°ï¼interface.*.txBytes.delta
ï¼éä¿¡ãã¤ãæ°ï¼
- filesystemï¼æãç·ï¼
filesystem.*.size
filesystem.*.used
ã¾ããmackerel-agent ãç¨ããå ´åã®ä¸è¨ããããã®ã¡ããªãã¯ã®åå¾å ã¯ä»¥ä¸ã®éãã§ããmackerel-agent ã®ã½ã¼ã¹ã³ã¼ã㯠ãã¡ã ã§å ¬éãã¦ãã¾ãã®ã§ä½µãã¦ã確èªãã ããã
- loadavg
/proc/loadavg
ã®å 容ããã¼ã¹ãããã¨ã§åå¾
- cpu
/proc/stat
ã®å 容ããã¼ã¹ãããã¨ã§åå¾
- memory
/proc/meminfo
ã®å 容ããã¼ã¹ãããã¨ã§åå¾
- disk
/proc/diskstats
ã®å 容ããã¼ã¹ãããã¨ã§åå¾
- interface
/proc/net/dev
ã®å 容ããã¼ã¹ãããã¨ã§åå¾
- filesystem
df
ã³ãã³ãã®å®è¡çµæããã¼ã¹ãããã¨ã§åå¾
Windows
processor queue length, cpu, memory, disk, interface, filesystem ã®6種é¡ã®ã°ã©ãã表示ããããããã以ä¸ã®ã¡ããªãã¯åã®å¤ãæç»ããã¾ãã
- processor queue lengthï¼æãç·ï¼
processor_queue_length
- cpuï¼ç©ã¿ä¸ãï¼
cpu.user.percentage
cpu.system.percentage
cpu.idle.percentage
- memoryï¼ç©ã¿ä¸ãããã ã
total
,pagefile_free
,pagefile_total
ã¯æãç·ï¼memory.free
memory.used
memory.total
memory.pagefile_free
memory.pagefile_total
- diskï¼æãç·ï¼
disk.*.reads.delta
disk.*.writes.delta
- interfaceï¼æãç·ï¼
interface.*.rxBytes.delta
ï¼åä¿¡ãã¤ãæ°ï¼interface.*.txBytes.delta
ï¼éä¿¡ãã¤ãæ°ï¼
- filesystemï¼æãç·ï¼
filesystem.*.size
filesystem.*.used
ã¾ããmackerel-agent ãç¨ããå ´åã®ä¸è¨ããããã®ã¡ããªãã¯ã®åå¾å ã¯ä»¥ä¸ã®éãã§ããmackerel-agent ã®ã½ã¼ã¹ã³ã¼ã㯠ãã¡ã ã§å ¬éãã¦ãã¾ãã®ã§ä½µãã¦ã確èªãã ããã
- processor queue length
- Windows Performance Data Helper API ã«ãã£ã¦æ å ±ãåå¾
- cpu
- Windows Performance Data Helper API ã«ãã£ã¦æ å ±ãåå¾
- memory
- Win32 API ã§ãã
GlobalMemoryStatusEx
ãå¼ã³åºããçµæããåå¾
- Win32 API ã§ãã
- disk
- WMI ã使ç¨ãã¦
Win32_PerfFormattedData_PerfDisk_LogicalDisk
ã¯ã©ã¹ããæ å ±ãåå¾
- WMI ã使ç¨ãã¦
- interface
- Windows Performance Data Helper API ã«ãã£ã¦æ å ±ãåå¾
- filesystem
- Win32 API ã§ãã以ä¸ã®é¢æ°ãå¼ã³åºããçµæããåå¾ãè¨ç®ã
GetLogicalDriveStringsW
QueryDosDeviceW
GetVolumeInformationW
GetDiskFreeSpaceExW
- Win32 API ã§ãã以ä¸ã®é¢æ°ãå¼ã³åºããçµæããåå¾ãè¨ç®ã
ã«ã¹ã¿ã ã¡ããªãã¯
ã«ã¹ã¿ã ã¡ããªãã¯ã¨ã¯ããã©ã°ã¤ã³ã Mackerel API ãªã©ãå©ç¨ãã¦ã¦ã¼ã¶ãä»»æã§ãã¹ãã«æ稿ã§ãããã·ã¹ãã ã¡ããªãã¯ä»¥å¤ã®ã¡ããªãã¯ã§ãã
- ä¾:
custom.foo
,custom.foo.bar
- ã¡ããªãã¯åã®æå¾ã®
.
ï¼ãããï¼ã¾ã§ãå ±éããã¡ããªãã¯ããã²ã¨ã¤ã®ã°ã©ãã«æ稿ãã¾ãã - ã¡ããªãã¯åã«ã¯ãã¬ãã£ãã¯ã¹ãå¿
è¦ã§ããmackerel-agent ããæ稿ãããã«ã¹ã¿ã ã¡ããªãã¯ã«ã¯
custom.
ãèªåçã«ä»ä¸ããã¾ããï¼ãã¼ã¸ã§ã³ 0.6.1 以éï¼ - ã«ã¹ã¿ã ã¡ããªãã¯åã®è©³ããä»æ§ã«ã¤ãã¦ã¯ ãã¡ã ãåç §ãã¦ãã ããã
- ã¡ããªãã¯åã®æå¾ã®
ã«ã¹ã¿ã ã¡ããªãã¯ãæ稿ããæ¹æ³ã«ã¤ãã¦ã¯ä¸è¨ãåç §ãã¦ãã ããã
- å ¬å¼ãã©ã°ã¤ã³ãå©ç¨ãã¦ã«ã¹ã¿ã ã¡ããªãã¯ãæ稿ãã
- mackerel-agent ããã¦ã¼ã¶ã¼å®ç¾©ã®ã«ã¹ã¿ã ã¡ããªãã¯ãæ稿ãã
- Mackerel API ãå©ç¨ãã¦ã¦ã¼ã¶ã¼å®ç¾©ã®ã«ã¹ã¿ã ã¡ããªãã¯ãæ稿ãã
ãµã¼ãã¹ã¡ããªãã¯
ãµã¼ãã¹ã¡ããªãã¯ã¨ã¯ãç¹å®ã®ãã¹ãã§ã¯ãªããµã¼ãã¹ã«ç´ä»ãã¡ããªãã¯ã§ããURL å¤å½¢ç£è¦ ããµã¼ãã¹ã«ç´ä»ããéã«å¯è¦åãããã¬ã¹ãã³ã¹ã¿ã¤ã ããµã¼ãã¹ã¡ããªãã¯ã¨ãã¦æ稿ããã¾ãããµã¼ãã¹ã¡ããªãã¯ã®ã°ã©ã㯠åãµã¼ãã¹ ã®è©³ç´°ç»é¢ã§é²è¦§ã§ãã¾ãã
ãµã¼ãã¹ã¡ããªãã¯ãæ稿ããæ¹æ³ã«ã¤ãã¦ã¯ Mackerel API ããã¥ã¡ã³ã ã® ãµã¼ãã¹ã¡ããªãã¯ã®æ稿 ãåç §ãã¦ãã ããã