{"id":8617,"date":"2025-10-08T09:25:29","date_gmt":"2025-10-08T09:25:29","guid":{"rendered":"https:\/\/pokecon.jp\/job\/?p=8617"},"modified":"2025-10-08T09:25:29","modified_gmt":"2025-10-08T09:25:29","slug":"%e3%83%80%e3%83%83%e3%82%b7%e3%83%a5%e3%83%9c%e3%83%bc%e3%83%89%e4%bd%9c%e3%82%8a%e3%81%8c%e6%8d%97%e3%82%8b%ef%bc%81-metricsql-victoriametrics-%e3%81%ae%e4%be%bf%e5%88%a9%e6%a9%9f%e8%83%bd-cybozu","status":"publish","type":"post","link":"https:\/\/pokecon.jp\/job\/8617\/","title":{"rendered":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd &#8211; Cybozu Inside Out"},"content":{"rendered":"\n<\/p>\n<div>\n<p>\u3053\u3093\u306b\u3061\u306f\u3002DBRE \u30c1\u30fc\u30e0 \u306e\u98ef\u585a\u3067\u3059\u3002<\/p>\n<p>\u30b5\u30a4\u30dc\u30a6\u30ba\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9 <strong>Neco<\/strong> \u3067\u306f\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u4fdd\u5b58\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b <strong><a target=\"_blank\" href=\"https:\/\/victoriametrics.com\/\">VictoriaMetrics<\/a><\/strong> \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u306e\u5229\u7528\u8005\u3068\u3057\u3066\u3001\u3053\u306e VictoriaMetrics \u306b\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u4fdd\u5b58\u3057\u305f\u308a\u3001\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u307e\u3068\u3081\u3066\u898b\u308b\u305f\u3081\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u3063\u305f\u308a\u3001\u30b5\u30fc\u30d3\u30b9\u30ec\u30d9\u30eb\u3068\u95a2\u9023\u3059\u308b\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u305f\u308a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>VictoriaMetrics \u3067\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u5206\u6790\u30fb\u96c6\u8a08\u3059\u308b\u305f\u3081\u306e\u30af\u30a8\u30ea\u3092\u66f8\u304f\u306e\u306b\u4f7f\u308f\u308c\u308b\u30af\u30a8\u30ea\u8a00\u8a9e\u304c <strong>MetricsQL<\/strong> \u3067\u3059\u3002MetricsQL \u306f\u3001Prometheus \u306e\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3042\u308b PromQL \u306b\u72ec\u81ea\u306e\u62e1\u5f35\u3092\u52a0\u3048\u305f\u30af\u30a8\u30ea\u8a00\u8a9e\u3067\u3059\u3002\u3053\u306e <a target=\"_blank\" href=\"https:\/\/docs.victoriametrics.com\/victoriametrics\/metricsql\/\">\u72ec\u81ea\u306e\u62e1\u5f35\u90e8\u5206<\/a> \u306e\u4e2d\u306b\u306f\u304b\u306a\u308a\u4fbf\u5229\u306a\u6a5f\u80fd\u3082\u3042\u308a\u3001\u79c1\u306b\u3068\u3063\u3066\u300c\u3053\u306e\u6a5f\u80fd\u306a\u3057\u3067\u306f PromQL \u306b\u306f\u623b\u308c\u306a\u3044\u3088 \ud83d\ude2d\u300d\u3068\u601d\u3046\u3088\u3046\u306a\u6a5f\u80fd\u3055\u3048\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u79c1\u304c\u7279\u306b\u4fbf\u5229\u3060\u3068\u611f\u3058\u3066\u3044\u308b MetricsQL \u306e\u62e1\u5f35\u90e8\u5206\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f <a target=\"_blank\" href=\"https:\/\/cybozu.github.io\/summer-blog-fes-2025\/\">CYBOZU SUMMER BLOG FES &#8217;25<\/a> \u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<h2 id=\"WITH-templates-WITH-expressions\">WITH templates (WITH expressions)<\/h2>\n<p>WITH templates \u306f\u30af\u30a8\u30ea\u306e\u5f0f\u3092\u66f8\u304f\u3068\u304d\u306b\u5909\u6570\u306e\u3088\u3046\u306a\u3082\u306e\u3092\u5c0e\u5165\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u516c\u5f0f\u306e\u89e3\u8aac\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/play.victoriametrics.com\/select\/0\/prometheus\/graph\/#\/expand-with-exprs\">WITH templates &#8211; vmui<\/a><\/p>\n<p>\u4f8b\u3092\u6319\u3052\u307e\u3059\u3002Kubernetes \u4e0a\u306e MySQL \u30b3\u30f3\u30c6\u30ca\u306e CPU \u4f7f\u7528\u7387\uff08<code>.spec.containers[].resources.limits.cpu<\/code> \u306b\u5bfe\u3059\u308b CPU \u6642\u9593\u306e\u5272\u5408\uff09\u3092\u8868\u793a\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u308b\u306a\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30a8\u30ea\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"code text\" data-lang=\"text\" data-unlink=\"\">\/\/ $namespace \u3084 $pod \u306f Grafana \u304b\u3089\u4e0e\u3048\u3089\u308c\u308b\u5909\u6570\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3067\u3059\n\nrate(container_cpu_usage_seconds_total{namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\"}[5m])\n\/ on (pod)\nkube_pod_container_resource_limits{namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\",resource=\"cpu\"}<\/pre>\n<p>\u3053\u308c\u304f\u3089\u3044\u306e\u30b5\u30a4\u30ba\u306e\u30af\u30a8\u30ea\u3067\u3042\u308c\u3070\u3001\u6163\u308c\u3066\u3044\u308b\u4eba\u306a\u3089\u3059\u3050\u306b <code>usage \/ limits<\/code> \u3068\u3044\u3046\u5358\u7d14\u306a\u5272\u308a\u7b97\u306e\u5f62\u3092\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u898b\u629c\u3051\u308b\u3067\u3057\u3087\u3046\u3002\u3057\u304b\u3057\u3053\u3093\u306a\u5358\u7d14\u306a\u5f62\u306e\u30af\u30a8\u30ea\u3060\u3051\u3067\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304c\u4f5c\u3089\u308c\u308b\u3053\u3068\u306f\u307b\u307c\u3042\u308a\u307e\u305b\u3093\u3002\u5c11\u3057\u8907\u96d1\u306a\u30af\u30a8\u30ea\u3092\u66f8\u3053\u3046\u3068\u3057\u305f\u3060\u3051\u3067\u3001\u89e3\u8aac\u306a\u3057\u3067\u30af\u30a8\u30ea\u3092\u8aad\u307f\u89e3\u304f\u306e\u304c\u96e3\u3057\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u4e88\u60f3\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30af\u30a8\u30ea\u3092\u8aad\u307f\u89e3\u304f\u306e\u3092\u96e3\u3057\u304f\u3057\u3066\u3044\u308b\u306e\u306f\u3001\u9577\u3044\u30e1\u30c8\u30ea\u30af\u30b9\u540d\uff08<code>container_cpu_usage_seconds_total<\/code> \u306a\u3069\uff09\u3084\u8907\u96d1\u306a\u30d5\u30a3\u30eb\u30bf\uff08<code>{namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\"}<\/code> \u306a\u3069\uff09\u304c\u8133\u5185\u306e\u30ef\u30fc\u30ad\u30f3\u30b0\u30e1\u30e2\u30ea\u3092\u5727\u8feb\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u308c\u3089\u306f\u982d\u306e\u7247\u9685\u306b\u8ffd\u3044\u3084\u3063\u3066\u304a\u304d\u3001 <code>usage \/ limits<\/code> \u3068\u3044\u3046\u5358\u7d14\u306a\u5272\u308a\u7b97\u306e\u5f62\u3067\u66f8\u3051\u308c\u3070\u3088\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u305d\u3046\u3044\u3046\u9858\u3044\u3092\u304b\u306a\u3048\u3066\u304f\u308c\u308b\u306e\u304c WITH templates \u3067\u3059\u3002WITH templates \u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u6570\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"code text\" data-lang=\"text\" data-unlink=\"\">\/\/ $namespace \u3084 $pod \u306f Grafana \u304b\u3089\u4e0e\u3048\u3089\u308c\u308b\u5909\u6570\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u3067\u3059\n\nWITH (\n    usage = rate(container_cpu_usage_seconds_total{namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\"}[5m]),\n    limits = kube_pod_container_resource_limits{namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\",resource=\"cpu\"}\n)\nusage \/ on (pod) limits<\/pre>\n<p>\u3053\u308c\u3067 <code>usage \/ limits<\/code> \u3068\u3044\u3046\u5358\u7d14\u306a\u5272\u308a\u7b97\u306e\u5f62\u5f0f\u3067\u898b\u901a\u305b\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002WITH templates \u306b\u306f\u305d\u306e\u307b\u304b\u306b\u3082\u6b21\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30d5\u30a3\u30eb\u30bf\u306e\u30e9\u30d9\u30eb\u90e8\u5206\u3060\u3051\u5909\u6570\u306b\u7f6e\u304f\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 <code>WITH ( commonFilters = {namespace=\"$namespace\",pod=\"$pod\",container=\"mysqld\"} )<\/code> \u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u3066\u304a\u3044\u3066 <code>rate(container_cpu_usage_seconds_total{commonFilters})<\/code> \u306e\u3088\u3046\u306b\u4f7f\u3044\u307e\u3059<\/li>\n<li>\u95a2\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 <code>WITH ( f(a,b) = a + b )<\/code> \u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<h2 id=\"histogram_share\">histogram_share<\/h2>\n<p>\u4f55\u3089\u304b\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u306e\u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\u3092\u57fa\u6e96\u3068\u3057\u3066\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u305f\u3081\u306b <a target=\"_blank\" href=\"https:\/\/prometheus.io\/docs\/prometheus\/latest\/querying\/functions\/#histogram_quantile\">histogram_quantile<\/a> \u3092\u4f7f\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u65b9\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f \u4f8b\u3068\u3057\u3066\u3001\u4f55\u3089\u304b\u306e HTTP \u30b5\u30fc\u30d0\u30fc\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u304c\u3042\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u9045\u5ef6\u306e\u50be\u5411\u3092\u6349\u3048\u3066\u30a2\u30e9\u30fc\u30c8\u306b\u3059\u308b\u7528\u9014\u306b\u306f histogram_quantile \u304c\u6709\u7528\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/k\/kujira16\/20251006\/20251006161135.png\" width=\"1200\" height=\"349\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span><\/p>\n<ul>\n<li>HTTP \u30b5\u30fc\u30d0\u30fc\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u304c\u3042\u308a\u3001\u76f4\u8fd1 3 \u5206\u9593\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u50be\u5411\u306b\u7740\u76ee\u3059\u308b\u3068\u3057\u307e\u3059\uff08\u5de6\u306e\u56f3\uff09<\/li>\n<li>\u76f4\u8fd1 3 \u5206\u9593\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3059\uff08\u4e2d\u592e\u306e\u56f3\uff09<\/li>\n<li>\u30d2\u30b9\u30c8\u30b0\u30e9\u30e0\u304b\u3089\u7d2f\u7a4d\u5206\u5e03\u3092\u4f5c\u6210\u3057\u307e\u3059\uff08\u53f3\u306e\u56f3\uff09<\/li>\n<\/ul>\n<p>\u3053\u306e\u7d2f\u7a4d\u5206\u5e03\u304b\u3089\u3001\u4f8b\u3048\u3070\u300c95 \u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\u304c 800 \u30df\u30ea\u79d2\u3092\u8d85\u3048\u3066\u3044\u305f\u3089\u8b66\u544a\u3092\u51fa\u3059\u300d\u3068\u3044\u3063\u305f\u7528\u9014\u306b histogram_quantile \u306f\u5229\u7528\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u969b\u306e\u30a2\u30e9\u30fc\u30c8\u306e\u30af\u30a8\u30ea\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"code text\" data-lang=\"text\" data-unlink=\"\">histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[3m])) &gt; 0.8<\/pre>\n<p>\u3053\u3053\u3067\u4f8b\u3068\u3057\u3066\u8a2d\u5b9a\u3057\u305f\u300c95 \u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\u304c 800 \u30df\u30ea\u79d2\u3092\u8d85\u3048\u3066\u3044\u305f\u3089\u8b66\u544a\u3092\u51fa\u3059\u300d\u3068\u3044\u3046\u30a2\u30e9\u30fc\u30c8\u306f\u3001\u8a00\u3044\u63db\u3048\u308b\u3068\u300c800 \u30df\u30ea\u79d2\u4ee5\u5185\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u5272\u5408\u304c 95%\u3092\u4e0b\u56de\u3063\u305f\u3089\u8b66\u544a\u3092\u51fa\u3059\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u30ec\u30d9\u30eb\u306b\u3064\u3044\u3066\u8b70\u8ad6\u3059\u308b\u969b\u306b\u306f\u3001\u524d\u8005\u306e\u3088\u3046\u306b <strong>\u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u8a31\u5bb9\u3055\u308c\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0<\/strong> \u3092\u8003\u3048\u308b\u3088\u308a\u3082\u3001\u3080\u3057\u308d\u5f8c\u8005\u306e\u3088\u3046\u306b\u3001<strong>\u3042\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306b\u5bfe\u3057\u3066\u8a31\u5bb9\u3055\u308c\u308b\u30a8\u30e9\u30fc\u30d0\u30b8\u30a7\u30c3\u30c8<\/strong> \u3092\u8b70\u8ad6\u3059\u308b\u3053\u3068\u306e\u307b\u3046\u304c\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f\u305d\u3046\u8003\u3048\u308b\u3068\u3001\u30a2\u30e9\u30fc\u30c8\u306e\u72b6\u6cc1\u3092\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u8868\u793a\u3057\u305f\u3044\u3068\u304d\u306b\u306f histogram_quantile \u306e <strong>\u9006\u95a2\u6570<\/strong> \u306e\u3088\u3046\u306a\u3082\u306e\u304c\u6b32\u3057\u304f\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u305f\u3081\u306b MetricsQL \u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u304c <a target=\"_blank\" href=\"https:\/\/docs.victoriametrics.com\/victoriametrics\/metricsql\/#histogram_share\">histogram_share<\/a> \u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u4f8b\u3067\u306f histogram_quantile \u3068 histogram_share \u306f\u305d\u308c\u305e\u308c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u610f\u5473\u3092\u6301\u3064\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>histogram_quantile: \u300c\u76f4\u8fd1 3 \u5206\u9593\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e 95 \u30d1\u30fc\u30bb\u30f3\u30bf\u30a4\u30eb\u306e\u5024\u300d<\/li>\n<li>histogram_share: \u300c\u76f4\u8fd1 3 \u5206\u9593\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30bf\u30a4\u30e0\u306e\u3046\u3061\u3001800 \u30df\u30ea\u79d2\u4ee5\u5185\u306e\u3082\u306e\u306e\u5272\u5408\u300d<\/li>\n<\/ul>\n<p>histogram_quantile \u306e\u4ee3\u308f\u308a\u306b histogram_share \u3067\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30af\u30a8\u30ea\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"code text\" data-lang=\"text\" data-unlink=\"\">histogram_share(0.8, rate(http_request_duration_seconds_bucket[3m])) \n\n\n<h2 id=\"range_min-range_max\">range_min, range_max<\/h2>\n\n<p>\u79c1\u306e\u6240\u5c5e\u3059\u308b DBRE \u30c1\u30fc\u30e0\u306f\u793e\u5185\u306b\u5411\u3051\u3066 MySQL \u30de\u30cd\u30b8\u30e1\u30f3\u30c8\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u7acb\u5834\u3068\u3057\u3066\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u4e0a\u306b\u4f5c\u6210\u3055\u308c\u305f\u5168\u3066\u306e MySQL \u306e\u72b6\u6cc1\u3092\u6982\u89b3\u3067\u304d\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002\u3088\u304f\u898b\u308b\u30d1\u30cd\u30eb\u306f <a target=\"_blank\" href=\"https:\/\/cybozu-go.github.io\/moco\/metrics.html\">moco_cluster_healthy<\/a> \u3068\u3044\u3046\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u95a2\u3059\u308b\u3082\u306e\u3067\u30013 \u53f0\u3067\u5197\u9577\u5316\u3055\u308c\u305f MySQL \u30af\u30e9\u30b9\u30bf\u306e\u3046\u3061 1 \u53f0\u3067\u3082\u7570\u5e38\u304c\u3042\u308c\u3070 0\u3001\u3059\u3079\u3066\u6b63\u5e38\u306a\u3089 1 \u306b\u306a\u308b\u30e1\u30c8\u30ea\u30af\u30b9\u3067\u3059\u3002\u6211\u3005\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u3067\u306f\u6570\u767e\u4ee5\u4e0a\u306e MySQL \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u7a3c\u50cd\u3057\u3066\u3044\u308b\u305f\u3081\u30b5\u30fc\u30d0\u30fc\u6545\u969c\u306a\u3069\u306e\u8981\u56e0\u3067 Unhealthy \u306b\u306a\u308b\u3053\u3068\u81ea\u4f53\u306f\u3088\u304f\u3042\u308a\u3001\u77ed\u6642\u9593\u3060\u3051 Unhealthy \u306b\u306a\u308b\u3053\u3068\u81ea\u4f53\u306b\u306f\u30a2\u30e9\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u305b\u3093\uff08\u307e\u305f\u3001\u5178\u578b\u7684\u306a\u6545\u969c\u30d1\u30bf\u30fc\u30f3\u3067\u306f\u81ea\u52d5\u5fa9\u65e7\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff09\u3002\u3057\u304b\u3057\u610f\u56f3\u3057\u306a\u3044\u7406\u7531\u306b\u3088\u3063\u3066 Unhealthy \u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b\u3068\u3044\u3046\u61f8\u5ff5\u306f\u3042\u308b\u305f\u3081\u3001\u9031\u6b21\u3067\u3053\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u72b6\u6cc1\u3092\u3056\u3063\u3068\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u78ba\u8a8d\u306b\u306f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u5185\u306e\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d1\u30cd\u30eb\u3092\u53c2\u7167\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/k\/kujira16\/20251006\/20251006161212.png\" width=\"1200\" height=\"279\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span><\/p>\n\n<p>\u524d\u7f6e\u304d\u304c\u9577\u304f\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u78ba\u8a8d\u3057\u3066\u3044\u308b moco_cluster_healthy \u306f\u6570\u767e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5206\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u304c\u3042\u308b\u305f\u3081\u3001Grafana \u3067\u305d\u306e\u307e\u307e\u5168\u30e1\u30c8\u30ea\u30af\u30b9\u3092\u8868\u793a\u3059\u308b\u3068\u91cd\u304f\u306a\u3063\u305f\u308a\u64cd\u4f5c\u304c\u96e3\u3057\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u3046\u3044\u3046\u5834\u9762\u3067\u91cd\u5b9d\u3057\u3066\u3044\u308b\u306e\u304c MetricsQL \u306e <a target=\"_blank\" href=\"https:\/\/docs.victoriametrics.com\/victoriametrics\/metricsql\/#range_min\">range_min, range_max<\/a> \u3067\u3059\u3002<\/p>\n\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/k\/kujira16\/20251007\/20251007103244.png\" width=\"1200\" height=\"997\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span><\/p>\n\n<p>MetricsQL \u306e range_min, range_max \u306f PromQL \u306e min_over_time, max_over_time \u306a\u3069\u3068\u306f\u5225\u306e\u6319\u52d5\u3092\u3057\u307e\u3059\u3002PromQL \u306e min_over_time, max_over_time \u306f\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\u3067 <code>[d]<\/code> \u306e\u3088\u3046\u306b\u3057\u3066\u6307\u5b9a\u3057\u305f lookbehind window \u306e\u4e2d\u3067\u306e\u6700\u5c0f\u5024\u3084\u6700\u5927\u5024\u3092\u8fd4\u3059\u95a2\u6570\u3067\u3059\uff08\u753b\u50cf\u5185\u306e\u4e2d\u592e\u306e\u56f3\uff09\u3002Grafana \u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u306e\u7bc4\u56f2\u306f\u7d50\u679c\u306b\u95a2\u4fc2\u3057\u307e\u305b\u3093\u3002<\/p>\n\n<p>\u4e00\u65b9\u3001MetricsQL \u306e range_min, range_max \u306f <strong>\u6e21\u3055\u308c\u305f\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u306e\u5168\u7de8\u3092\u901a\u3057\u305f\u6700\u5c0f\u5024\u3084\u6700\u5927\u5024<\/strong> \u3092\u8fd4\u3057\u307e\u3059\u3002Grafana \u3068\u4e00\u7dd2\u306b\u4f7f\u3063\u305f\u5834\u5408\u306b\u306f\u3001Grafana \u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u5185\u3067\u306e\u6700\u5c0f\u5024\u3084\u6700\u5927\u5024\u306b\u7f6e\u304d\u63db\u308f\u308a\u307e\u3059\uff08\u753b\u50cf\u5185\u306e\u4e0b\u5074\u306e\u56f3\uff09\u3002\u3053\u308c\u3092\u3069\u306e\u3088\u3046\u306b\u6d3b\u7528\u3067\u304d\u308b\u304b\u3068\u3044\u3046\u3068\u3001Grafana \u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u306e\u7bc4\u56f2\u306e\u4e2d\u3067\u4e00\u5ea6\u3067\u3082 moco_cluster_healthy \u304c 0 \u306b\u306a\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u30e1\u30c8\u30ea\u30af\u30b9\u3060\u3051\u53d6\u308a\u51fa\u3059\u3001\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n<pre class=\"code text\" data-lang=\"text\" data-unlink=\"\">moco_cluster_healthy{namespace=\"$namespace\"} and (range_min(moco_cluster_healthy{namespace=\"$namespace\"}) == 0)<\/pre>\n<p>\u3053\u3053\u3067\u306f <a target=\"_blank\" href=\"https:\/\/prometheus.io\/docs\/prometheus\/latest\/querying\/operators\/#logicalset-binary-operators\">logical binary operator<\/a> \u306e <code>and<\/code> \u3092\u4f7f\u3063\u3066 <code>moco_cluster_healthy{namespace=\"$namespace\"}<\/code> \u304b\u3089\u300cGrafana \u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u306e\u7bc4\u56f2\u306e\u4e2d\u3067\u4e00\u5ea6\u3067\u3082 moco_cluster_healthy \u304c 0 \u306b\u306a\u3063\u305f\u3053\u3068\u304c\u3042\u308b\u30e1\u30c8\u30ea\u30af\u30b9\u300d\u3060\u3051\u53d6\u308a\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"topk_max-topk_min-bottomk_max-bottomk_min\">topk_max, topk_min, bottomk_max, bottomk_min<\/h2>\n<p>topk_max, topk_min, bottomk_max, bottomk_min \u3082\u5229\u7528\u76ee\u7684\u3068\u3057\u3066\u306f range_min, range_max \u3068\u4f3c\u3066\u3044\u307e\u3059\u3002\u8a18\u4e8b\u306e\u5192\u982d\u3067\u793a\u3057\u305f CPU \u4f7f\u7528\u7387\u306b\u95a2\u3059\u308b\u30af\u30a8\u30ea\u3067\u3059\u304c\u3001\u6570\u767e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5206\u306e CPU \u4f7f\u7528\u7387\u3092\u3059\u3079\u3066\u63cf\u753b\u3057\u3066\u3082\u3050\u3061\u3083\u3050\u3061\u3083\u3057\u305f\u8a33\u306e\u308f\u304b\u3089\u306a\u3044\u30b0\u30e9\u30d5\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u3002\u672c\u5f53\u306b\u95a2\u5fc3\u304c\u3042\u308b\u306e\u306f\u300c<strong>CPU \u4f7f\u7528\u7387\u304c\u9ad8\u304b\u3063\u305f\u3053\u3068\u304c\u3042\u308b<\/strong> MySQL \u306e\u524d\u5f8c\u306e CPU \u4f7f\u7528\u7387\u306e\u63a8\u79fb\u300d\u3060\u3063\u305f\u308a\u3001\u300cCPU \u4f7f\u7528\u7387\u304c\u305a\u3063\u3068\u4f4e\u3044 MySQL \u306e\u72b6\u6cc1\u300d\u3060\u3063\u305f\u308a\u3057\u307e\u3059\u3002\u3053\u3046\u3044\u3046\u3068\u304d\u306b\u4f7f\u3048\u308b\u306e\u304c <a target=\"_blank\" href=\"https:\/\/docs.victoriametrics.com\/victoriametrics\/metricsql\/#topk_max\">topk_max, topk_min, bottomk_max, bottomk_min<\/a> \u306a\u3069\u306e\u95a2\u6570\u7fa4\u3067\u3059\u3002<\/p>\n<p><a target=\"_blank\" href=\"https:\/\/docs.victoriametrics.com\/victoriametrics\/metricsql\/#topk_max\">topk_max<\/a> \u3092\u4f8b\u306b\u3057\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002topk_max \u306f\u307e\u305a\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u306e\u7bc4\u56f2\uff08Grafana \u3067\u6642\u9593\u7bc4\u56f2\u3092\u5165\u529b\u3059\u308b\u30dc\u30c3\u30af\u30b9\u3067\u6307\u5b9a\u3057\u305f\u6642\u9593\u7bc4\u56f2\u304c\u4f7f\u308f\u308c\u308b\uff09\u306e\u4e2d\u3067\u306e\u5168\u7de8\u306b\u6e21\u3063\u3066\u306e\u6700\u5927\u5024\u3092\u305d\u308c\u305e\u308c\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u3064\u3044\u3066\u8a08\u7b97\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u305d\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u3054\u3068\u306e\u6700\u5927\u5024\u3092\u4f7f\u3063\u3066\u3001\u591a\u6570\u306e\u30e1\u30c8\u30ea\u30af\u30b9\u304b\u3089 top k \u3060\u3051\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u300cCPU \u4f7f\u7528\u7387\u304c\u9ad8\u304b\u3063\u305f\u3053\u3068\u304c\u3042\u308b MySQL \u306e\u524d\u5f8c\u306e CPU \u4f7f\u7528\u7387\u306e\u63a8\u79fb\u300d\u3092\u8868\u793a\u3059\u308b\u306e\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span itemscope=\"\" itemtype=\"http:\/\/schema.org\/Photograph\"><img decoding=\"async\" src=\"https:\/\/cdn-ak.f.st-hatena.com\/images\/fotolife\/k\/kujira16\/20251006\/20251006161231.png\" width=\"1200\" height=\"596\" loading=\"lazy\" title=\"\" class=\"hatena-fotolife\" itemprop=\"image\"\/><\/span><\/p>\n<p>Prometheus \u306e topk \u95a2\u6570\u3068\u306e\u5dee\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002topk \u95a2\u6570\u306f\u6307\u5b9a\u3055\u308c\u305f\u6642\u9593\u7bc4\u56f2\u5168\u7de8\u306b\u6e21\u3063\u305f\u6f14\u7b97\u3067\u306f\u306a\u304f\u3001\u305d\u308c\u305e\u308c\u306e\u30c7\u30fc\u30bf\u30dd\u30a4\u30f3\u30c8\u3067 topk \u3092\u8a08\u7b97\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<h2 id=\"\u304a\u308f\u308a\u306b\">\u304a\u308f\u308a\u306b<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u79c1\u304c\u904b\u7528\u306e\u305f\u3081\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u4fbf\u5229\u306b\u6d3b\u7528\u3057\u3066\u3044\u308b MetricsQL \u306e\u4fbf\u5229\u306a\u6a5f\u80fd\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u904b\u7528\u306b\u643a\u308f\u308b\u7686\u69d8\u306e\u4e00\u52a9\u3068\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<hr\/>\n<p>\u79c1\u305f\u3061\u306f\u30b5\u30a4\u30dc\u30a6\u30ba\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u304c\u5229\u7528\u3059\u308b\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\u306e\u4fe1\u983c\u6027\u3092\u9ad8\u3081\u308b\u305f\u3081\u306b\u65e5\u3005\u6d3b\u52d5\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u3054\u8208\u5473\u3092\u6301\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u3089\u3001\u305c\u3072\u63a1\u7528\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><iframe src=\"https:\/\/hatenablog-parts.com\/embed?url=https%3A%2F%2Fcybozu.co.jp%2Frecruit%2Fentry%2Fcareer%2Fdatastore.html\" title=\"\u30af\u30e9\u30a6\u30c9\u57fa\u76e4\u30a8\u30f3\u30b8\u30cb\u30a2\uff08SRE\/\u30c7\u30fc\u30bf\u30b9\u30c8\u30a2\uff09\u30ad\u30e3\u30ea\u30a2\u63a1\u7528 \u52df\u96c6\u8981\u9805 | \u63a1\u7528\u60c5\u5831 | \u30b5\u30a4\u30dc\u30a6\u30ba\u682a\u5f0f\u4f1a\u793e\" class=\"embed-card embed-webcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 155px; max-width: 500px; margin: 10px 0px;\" loading=\"lazy\"><\/iframe><cite class=\"hatena-citation\"><a target=\"_blank\" href=\"https:\/\/cybozu.co.jp\/recruit\/entry\/career\/datastore.html\">cybozu.co.jp<\/a><\/cite><\/p>\n<\/div>\n<p><script>(function(d, s, id) {\n  var js, fjs = d.getElementsByTagName(s)[0];\n  if (d.getElementById(id)) return;\n  js = d.createElement(s); js.id = id;\n  js.src = \"\/\/connect.facebook.net\/ja_JP\/sdk.js#xfbml=1&version=v2.3\";\n  fjs.parentNode.insertBefore(js, fjs);\n}(document, 'script', 'facebook-jssdk'));<\/script><br \/>\n<br \/>\n<br \/><a href=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000\">\u5143\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3059\u308b <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u3093\u306b\u3061\u306f\u3002DBRE \u30c1\u30fc\u30e0 \u306e\u98ef\u585a\u3067\u3059\u3002 \u30b5\u30a4\u30dc\u30a6\u30ba\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9 Neco \u3067\u306f\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u4fdd\u5b58\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b VictoriaMetrics \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u306e\u5229\u7528\u8005\u3068\u3057\u3066\u3001\u3053\u306e [&hellip;]","protected":false},"author":1,"featured_media":8618,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-8617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-company-tec"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"og:description\" content=\"\u3053\u3093\u306b\u3061\u306f\u3002DBRE \u30c1\u30fc\u30e0 \u306e\u98ef\u585a\u3067\u3059\u3002 \u30b5\u30a4\u30dc\u30a6\u30ba\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9 Neco \u3067\u306f\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u4fdd\u5b58\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b VictoriaMetrics \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u306e\u5229\u7528\u8005\u3068\u3057\u3066\u3001\u3053\u306e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000\" \/>\n<meta property=\"og:site_name\" content=\"\u30dd\u30b1\u30b3\u30f3\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-08T09:25:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1300\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"info@pokecon.jp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"info@pokecon.jp\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/8617\\\/\"},\"author\":{\"name\":\"info@pokecon.jp\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"headline\":\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd &#8211; Cybozu Inside Out\",\"datePublished\":\"2025-10-08T09:25:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/8617\\\/\"},\"wordCount\":130,\"image\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png\",\"articleSection\":[\"\u4f01\u696d\u30c6\u30c3\u30af\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/8617\\\/\",\"url\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000\",\"name\":\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png\",\"datePublished\":\"2025-10-08T09:25:29+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#primaryimage\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png\",\"contentUrl\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png\",\"width\":1300,\"height\":683},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.cybozu.io\\\/entry\\\/2025\\\/10\\\/08\\\/173000#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd &#8211; Cybozu Inside Out\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#website\",\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/\",\"name\":\"\u30dd\u30b1\u30b3\u30f3\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/#\\\/schema\\\/person\\\/16c9f07b1ba984d165d9aee259bda997\",\"name\":\"info@pokecon.jp\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g\",\"caption\":\"info@pokecon.jp\"},\"url\":\"https:\\\/\\\/pokecon.jp\\\/job\\\/author\\\/infopokecon-jp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000","og_locale":"ja_JP","og_type":"article","og_title":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","og_description":"\u3053\u3093\u306b\u3061\u306f\u3002DBRE \u30c1\u30fc\u30e0 \u306e\u98ef\u585a\u3067\u3059\u3002 \u30b5\u30a4\u30dc\u30a6\u30ba\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9 Neco \u3067\u306f\u30e1\u30c8\u30ea\u30af\u30b9\u306e\u4fdd\u5b58\u3068\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u306b VictoriaMetrics \u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u306f\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30af\u30e9\u30a6\u30c9\u306e\u5229\u7528\u8005\u3068\u3057\u3066\u3001\u3053\u306e [&hellip;]","og_url":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000","og_site_name":"\u30dd\u30b1\u30b3\u30f3","article_published_time":"2025-10-08T09:25:29+00:00","og_image":[{"width":1300,"height":683,"url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png","type":"image\/png"}],"author":"info@pokecon.jp","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"info@pokecon.jp","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"2\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#article","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/8617\/"},"author":{"name":"info@pokecon.jp","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"headline":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd &#8211; Cybozu Inside Out","datePublished":"2025-10-08T09:25:29+00:00","mainEntityOfPage":{"@id":"https:\/\/pokecon.jp\/job\/8617\/"},"wordCount":130,"image":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png","articleSection":["\u4f01\u696d\u30c6\u30c3\u30af"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/pokecon.jp\/job\/8617\/","url":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000","name":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd - Cybozu Inside Out - \u30dd\u30b1\u30b3\u30f3","isPartOf":{"@id":"https:\/\/pokecon.jp\/job\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#primaryimage"},"image":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#primaryimage"},"thumbnailUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png","datePublished":"2025-10-08T09:25:29+00:00","author":{"@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997"},"breadcrumb":{"@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#primaryimage","url":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png","contentUrl":"https:\/\/pokecon.jp\/job\/wp-content\/uploads\/2025\/10\/https3A2F2Fcdn-ak.f.st-hatena.com2Fimages2Ffotolife2Fk2Fkujira162F202510062F20251006160956.png","width":1300,"height":683},{"@type":"BreadcrumbList","@id":"https:\/\/blog.cybozu.io\/entry\/2025\/10\/08\/173000#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/pokecon.jp\/job\/"},{"@type":"ListItem","position":2,"name":"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308a\u304c\u6357\u308b\uff01 MetricsQL (VictoriaMetrics) \u306e\u4fbf\u5229\u6a5f\u80fd &#8211; Cybozu Inside Out"}]},{"@type":"WebSite","@id":"https:\/\/pokecon.jp\/job\/#website","url":"https:\/\/pokecon.jp\/job\/","name":"\u30dd\u30b1\u30b3\u30f3","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pokecon.jp\/job\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/pokecon.jp\/job\/#\/schema\/person\/16c9f07b1ba984d165d9aee259bda997","name":"info@pokecon.jp","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2b0549cd9f7907c092ca5fbb283baf72337f235726e4b46fa39ec0b701ac2fe2?s=96&d=wavatar&r=g","caption":"info@pokecon.jp"},"url":"https:\/\/pokecon.jp\/job\/author\/infopokecon-jp\/"}]}},"_links":{"self":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/8617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/comments?post=8617"}],"version-history":[{"count":1,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/8617\/revisions"}],"predecessor-version":[{"id":8619,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/posts\/8617\/revisions\/8619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media\/8618"}],"wp:attachment":[{"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/media?parent=8617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/categories?post=8617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pokecon.jp\/job\/wp-json\/wp\/v2\/tags?post=8617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}