§¥§Ñ§ß§ß§í§Ö, §Ü§à§ä§à§â§í§Ö §á§â§Ö§Õ§ã§ä§Ñ§Ó§Ý§Ö§ß§í §Ó §æ§à§â§Þ§Ñ§ä§Ö Prometheus §ã§ä§â§à§Ü §Þ§à§Ø§ß§à §Ú§ã§á§à§Ý§î§Ù§à§Ó§Ñ§ä§î §Õ§Ý§ñ §ß§Ú§Ù§Ü§à§å§â§à§Ó§ß§Ö§Ó§à§Ô§à §à§Ò§ß§Ñ§â§å§Ø§Ö§ß§Ú§ñ.
§³§Þ§à§ä§â§Ú§ä§Ö Prometheus §á§â§à§Ó§Ö§â§Ü§Ú §Õ§Ý§ñ §á§à§Ý§å§é§Ö§ß§Ú§ñ §Ò§à§Ý§Ö§Ö §á§à§Õ§â§à§Ò§ß§í§ç §ã§Ó§Ö§Õ§Ö§ß§Ú§Û §à §ä§à§Þ, §Ü§Ñ§Ü §Ó Áú»¢¶Ä²© §â§Ö§Ñ§Ý§Ú§Ù§à§Ó§Ñ§ß §Ù§Ñ§á§â§à§ã Prometheus §Õ§Ñ§ß§ß§í§ç.
§±§â§Ñ§Ó§Ú§Ý§à §ß§Ú§Ù§Ü§à§å§â§à§Ó§ß§Ö§Ó§à§Ô§à §à§Ò§ß§Ñ§â§å§Ø§Ö§ß§Ú§ñ §ß§Ö§à§Ò§ç§à§Õ§Ú§Þ§à §ã§à§Ù§Õ§Ñ§ä§î §Ü§Ñ§Ü §Ù§Ñ§Ó§Ú§ã§Ú§Þ§í§Û §ï§Ý§Ö§Þ§Ö§ß§ä §Õ§Ñ§ß§ß§í§ç §Ü §à§ã§ß§à§Ó§ß§à§Þ§å §ï§Ý§Ö§Þ§Ö§ß§ä§å §Õ§Ñ§ß§ß§í§ç HTTP, §Ü§à§ä§à§â§í§Û §ã§à§Ò§Ú§â§Ñ§Ö§ä §Õ§Ñ§ß§ß§í§Ö Prometheus.
§£ §á§â§Ñ§Ó§Ú§Ý§Ö §à§Ò§ß§Ñ§â§å§Ø§Ö§ß§Ú§ñ §á§Ö§â§Ö§Û§Õ§Ú§ä§Ö §ß§Ñ §Ó§Ü§Ý§Ñ§Õ§Ü§å §±§â§Ö§Õ§à§Ò§â§Ñ§Ò§à§ä§Ü§Ñ §Ú §Ó§í§Ò§Ö§â§Ú§ä§Ö §à§á§è§Ú§ð §á§â§Ö§Õ§à§Ò§â§Ñ§Ò§à§ä§Ü§Ú Prometheus §Ó JSON. §¥§Ý§ñ §à§Ò§ß§Ñ§â§å§Ø§Ö§ß§Ú§ñ §á§à§ä§â§Ö§Ò§å§ð§ä§ã§ñ §Õ§Ñ§ß§ß§í§Ö §Ó JSON §æ§à§â§Þ§Ñ§ä§Ö §Ú, §Ü§Ñ§Ü §â§Ñ§Ù, §Ó §ï§ä§à§Þ §æ§à§â§Þ§Ñ§ä§Ö §Õ§Ñ§ß§ß§í§ç §Ó§à§Ù§Ó§â§Ñ§ë§Ñ§Ö§ä §à§á§è§Ú§ñ §á§â§Ö§Õ§à§Ò§â§Ñ§Ò§à§ä§Ü§Ú Prometheus §Ó JSON, §ã§à §ã§Ý§Ö§Õ§å§ð§ë§Ú§Þ§Ú §Ñ§ä§â§Ú§Ò§å§ä§Ñ§Þ§Ú:
§¯§Ñ§á§â§Ú§Þ§Ö§â, §Ù§Ñ§á§â§à§ã wmi_logical_disk_free_bytes
:
§ã§à §ï§ä§Ú§ç §ã§ä§â§à§Ü Prometheus:
# HELP wmi_logical_disk_free_bytes Free space in bytes (LogicalDisk.PercentFreeSpace)
# TYPE wmi_logical_disk_free_bytes gauge
wmi_logical_disk_free_bytes{volume="C:"} 3.5180249088e+11
wmi_logical_disk_free_bytes{volume="D:"} 2.627731456e+09
wmi_logical_disk_free_bytes{volume="HarddiskVolume4"} 4.59276288e+08
§Ó§Ö§â§ß§×§ä:
[
{
"name": "wmi_logical_disk_free_bytes",
"help": "Free space in bytes (LogicalDisk.PercentFreeSpace)",
"type": "gauge",
"labels": {
"volume": "C:"
},
"value": "3.5180249088e+11",
"line_raw": "wmi_logical_disk_free_bytes{volume=\"C:\"} 3.5180249088e+11"
},
{
"name": "wmi_logical_disk_free_bytes",
"help": "Free space in bytes (LogicalDisk.PercentFreeSpace)",
"type": "gauge",
"labels": {
"volume": "D:"
},
"value": "2.627731456e+09",
"line_raw": "wmi_logical_disk_free_bytes{volume=\"D:\"} 2.627731456e+09"
},
{
"name": "wmi_logical_disk_free_bytes",
"help": "Free space in bytes (LogicalDisk.PercentFreeSpace)",
"type": "gauge",
"labels": {
"volume": "HarddiskVolume4"
},
"value": "4.59276288e+08",
"line_raw": "wmi_logical_disk_free_bytes{volume=\"HarddiskVolume4\"} 4.59276288e+08"
}
]
§³§Ý§Ö§Õ§å§ð§ë§Ú§Þ §ê§Ñ§Ô§à§Þ §Ó§Ñ§Þ §ß§Ö§à§Ò§ç§à§Õ§Ú§Þ§à §á§Ö§â§Ö§Û§ä§Ú §ß§Ñ §Ó§Ü§Ý§Ñ§Õ§Ü§å LLD §Þ§Ñ§Ü§â§à§ã§à§Ó §Ú §ã§Õ§Ö§Ý§Ñ§ä§î §ã§Ý§Ö§Õ§å§ð§ë§å§ð §Ü§Ñ§â§ä§å §ã§à§à§ä§Ó§Ö§ä§ã§ä§Ó§Ú§Û:
§£§í §Þ§à§Ø§Ö§ä§Ö §ã§à§Ù§Õ§Ñ§ä§î §á§â§à§ä§à§ä§Ú§á §ï§Ý§Ö§Þ§Ö§ß§ä§à§Ó §Õ§Ñ§ß§ß§í§ç §ã§Ý§Ö§Õ§å§ð§ë§Ú§Þ §à§Ò§â§Ñ§Ù§à§Þ:
§ã §à§á§è§Ú§ñ§Þ§Ú §á§â§Ö§Õ§à§Ò§â§Ñ§Ò§à§ä§Ü§Ú: