{"id":11393,"date":"2023-12-27T10:00:05","date_gmt":"2023-12-27T01:00:05","guid":{"rendered":"https:\/\/www.ecomottblog.com\/?p=11393"},"modified":"2023-12-27T10:00:05","modified_gmt":"2023-12-27T01:00:05","slug":"grafana%e3%81%a7%e5%a4%89%e6%95%b0%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e7%96%91%e4%bc%bc%e7%9a%84%e3%81%aa%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e3%83%89%e3%83%aa%e3%83%ab%e3%83%80%e3%82%a6%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.ecomottblog.com\/?p=11393","title":{"rendered":"Grafana\u3067\u5909\u6570\u3092\u4f7f\u3063\u305f\u7591\u4f3c\u7684\u306a\u30b0\u30e9\u30d5\u306e\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3092\u8a66\u3059"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u57fa\u76e4\u6574\u5099\u30b0\u30eb\u30fc\u30d7\u306e\u4e0a\u897f\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56deGrafana\u3067Power BI\u306e\u3088\u3046\u306a\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u6a5f\u80fd\u304c\u4f7f\u3048\u308c\u3070\u3044\u3044\u306a\u3041\u3068\u601d\u3044\u8abf\u67fb\u3068\u5b9f\u88c5\u3092\u3057\u305f\u306e\u3067\u3001\u624b\u9806\u3092\u6b8b\u3059\u76ee\u7684\u3067Variables\u3068Data link\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u74b0\u5883<\/h2>\n<p>Grafana 10.2.2<\/p>\n<p>EC2\u4e0a\u306bUbuntu\u30d9\u30fc\u30b9\u306eDocker \u30b3\u30f3\u30c6\u30ca \u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u3063\u3066Grafana\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"lang:default decode:true\">docker run -d --name=grafana -p 3000:3000 grafana\/grafana-enterprise:10.2.2-ubuntu<\/pre>\n<h2>\u4f5c\u696d\u624b\u9806<\/h2>\n<p>\u3042\u304f\u307e\u3067\u7591\u4f3c\u7684\u306a\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u306a\u305f\u3081\u3001\u753b\u9762\u9077\u79fb\u3092\u3055\u305b\u3066\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3055\u305b\u305f\u3088\u3046\u306b\u898b\u305b\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u9077\u79fb\u5143\u3068\u9077\u79fb\u5148\u306e\uff12\u3064\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u624b\u6cd5\u3068\u3057\u3066\u306f\u9077\u79fb\u5143\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u306fData link\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u9077\u79fb\u5148\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30ea\u30f3\u30af\u306b\u30e9\u30d9\u30eb\u540d\u3068\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u304c\u3064\u3044\u305fURL\u3092\u5b9a\u7fa9\u3055\u305b\u307e\u3059\u3002\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3057\u305f\u5148\u3064\u307e\u308a\u9077\u79fb\u5148\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u306fVariables\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u5909\u6570\u306b\u3088\u3063\u3066\u52d5\u7684\u306a\u30b0\u30e9\u30d5\u3092\u4f5c\u308c\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<h2>Data link\u6a5f\u80fd\u3092\u4f7f\u3063\u305f\u9077\u79fb\u5143\u306e\u753b\u9762\u3092\u4f5c\u308b<\/h2>\n<p>\u3053\u3053\u3067\u306fData link\u3092\u4f7f\u3046\u307e\u3067\u306f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3067\u597d\u304d\u306a\u30b0\u30e9\u30d5\u3092\u4f5c\u3063\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<h3>Data link\u306e\u8a2d\u5b9a<\/h3>\n<p>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30d1\u30cd\u30eb\u306e\u4e09\u70b9\u30ea\u30fc\u30c0\u30fc\u304b\u3089Edit\u3067\u7de8\u96c6\u753b\u9762\u306b\u79fb\u308b\u3002<\/p>\n<p>Data links\u306e\u8a2d\u5b9a\u3092\u5165\u529b\u3057\u3066\u3044\u304f\u3001\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/panels-visualizations\/configure-data-links\/\">Grafana Labs &#8220;Configure data links&#8221;<\/a><\/p>\n<p>Data links\u306e\u8a2d\u5b9a\u3067Add link\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u51fa\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>Title<\/strong>\u306f\u30b0\u30e9\u30d5\u3067\u30c7\u30fc\u30bf\u8981\u7d20\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306b\u898b\u3048\u308b\u30bf\u30a4\u30c8\u30eb\u306a\u306e\u3067\u3001\u4f55\u3067\u3082\u826f\u3044\u3067\u3059\u304c\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3055\u305b\u308b\u76ee\u7684\u3067\u4f7f\u7528\u3059\u308b\u306e\u3067\u4eca\u56de\u306fShow details\u3068\u3057\u307e\u3057\u305f\u3002<\/li>\n<li><strong>URL<\/strong>\u306b\u306f\u9077\u79fb\u5148\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eURL\u3092\u8f09\u305b\u307e\u3059\u3002\u3053\u306eURL\u306b\u30e9\u30d9\u30eb\u540d\u3068\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u8f09\u305b\u308b\u305f\u3081\u5f8c\u8ff0\u306e\u52a0\u5de5\u3092\u3057\u307e\u3059\u3002<\/li>\n<li><strong>Open in new tab<\/strong>\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u9077\u79fb\u5148\u306e\u753b\u9762\u304c\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11407\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-22-145016.png\" alt=\"\" width=\"765\" height=\"363\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-22-145016.png 765w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-22-145016-300x142.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-22-145016-304x144.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-22-145016-282x134.png 282w\" sizes=\"(max-width: 765px) 100vw, 765px\" \/><\/p>\n<h4>URL\u306b\u30e9\u30d9\u30eb\u540d\u3068\u30bf\u30a4\u30e0\u30b9\u30bf\u30f3\u30d7\u3092\u6e21\u3059<\/h4>\n<p>URL\u306e\u5165\u529b\u6b04\u3067Cmd+Space\u307e\u305f\u306fCtrl+Space\u3092\u62bc\u3059\u3068\u5165\u529b\u5019\u88dc\u304c\u958b\u304d\u3001\u5909\u6570\u3092\u7c21\u5358\u306b\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u5909\u6570\u3092\u6e21\u3059\u305f\u3081&#8221;Field labels.\u30e9\u30d9\u30eb\u540d&#8221;\u3092\u9078\u629e\u3057\u3066\u30b0\u30e9\u30d5\u306e\u30e9\u30d9\u30eb\u540d\u3092\u6e21\u3057\u307e\u3059\u3002\u4eca\u56de\u306ftest_label\u3068\u3044\u3046\u30e9\u30d9\u30eb\u306b\u3057\u3066\u3044\u307e\u3059\u3002&#8221;Built-in Time range:from&#8221;\u3068&#8221;Built-in Time range:to&#8221;\u3092\u9078\u629e\u3057\u3066\u3044\u3064\u304b\u3089\u3044\u3064\u307e\u3067\u306e\u6642\u9593\u8ef8\u3092\u6e21\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11440\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-123921.png\" alt=\"\" width=\"758\" height=\"355\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-123921.png 758w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-123921-300x141.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-123921-304x142.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-123921-282x132.png 282w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/p>\n<p>\u6700\u7d42\u7684\u306b\u4ee5\u4e0b\u306eURL\u306b\u306a\u308a\u307e\u3059\u3002\u5909\u6570\u540d\u306f\u5f8c\u8ff0\u3059\u308b\u300cVariables\u3067\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u5148\uff08\u9077\u79fb\u5148\uff09\u306e\u753b\u9762\u3092\u4f5c\u308b\u300d\u3067\u5b9a\u7fa9\u3059\u308b\u5909\u6570\u540d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">https:\/\/\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eURL&amp;var-\u5909\u6570\u540d=${__field.labels.\u30e9\u30d9\u30eb\u540d}&amp;from=${__from}&amp;to=${__to}<\/pre>\n<p>&nbsp;<\/p>\n<h2>Variables\u3067\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u5148\uff08\u9077\u79fb\u5148\uff09\u306e\u753b\u9762\u3092\u4f5c\u308b<\/h2>\n<p>Variables\u6a5f\u80fd\u3067\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u306f\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b\u969b\u306e\u30af\u30a8\u30ea\u306e\u4e2d\u3067\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u4ee5\u4e0b\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u8f09\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u7701\u7565\u3057\u306a\u304c\u3089\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/dashboards\/variables\/\">Grafana Labs &#8220;Variables&#8221;<\/a><\/p>\n<p>Dashbord\u306e\u8a2d\u5b9a\u753b\u9762\u304b\u3089Variables\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>Select variable type<\/strong>\u306b\u306fQuery\u3001Label\u3001Custom\u3001Constants\u304c\u9078\u3079\u308b\u304c\u4eca\u56de\u306fQuery\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li><strong>Name<\/strong>\u306f\u5909\u6570\u540d\u306b\u306a\u308b\u306e\u3067\u82f1\u6570\u5b57\u3092\u4f7f\u7528\u3057\u3066\u81ea\u5206\u304c\u5206\u304b\u308a\u6613\u3044\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059\u3002\u4eca\u56de\u306f\u6587\u5b57\u5217\u304c\u5165\u308b\u306e\u3067&#8221;test_string&#8221;\u3068\u3057\u307e\u3059<\/li>\n<li><strong>Label<\/strong>\u306f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u8868\u793a\u3055\u308c\u308b\u5909\u6570\u306e\u30e9\u30d9\u30eb\u306a\u306e\u3067\u4f55\u3067\u3082\u3044\u3044\u3067\u3059\u3002\u4eca\u56de\u306f&#8221;\u30c6\u30b9\u30c8&#8221;\u3068\u3057\u307e\u3059<\/li>\n<li><strong>Description<\/strong>\u306f\u8aac\u660e\u306a\u306e\u3067\u5165\u529b\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082\u826f\u3044\u3067\u3059\u3002<\/li>\n<li><strong>Show on dashboard<\/strong>\u306f\u8a2d\u5b9a\u3057\u305f\u5909\u6570\u304c\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u3069\u306e\u69d8\u306b\u898b\u305b\u308b\u304b\u3067\u3059\u3002\u4eca\u56de\u306f\u30e9\u30d9\u30eb\u3068\u5024\u3092\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u8868\u793a\u3057\u305f\u304b\u3063\u305f\u306e\u3067Label and value\u3092\u9078\u629e\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>Query Option<\/strong>\u3067\u3044\u3088\u3044\u3088value\u3064\u307e\u308a\u5909\u6570\u306b\u5165\u308b\u5024\u3092\u5b9a\u7fa9\u3055\u305b\u307e\u3059\u3002\u4eca\u56de\u306fAthena\u3092\u4f7f\u3063\u3066\u5024\u3092\u51fa\u3057\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11441\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558.png\" alt=\"\" width=\"1019\" height=\"933\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558.png 1019w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558-300x275.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558-768x703.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558-234x214.png 234w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124558-282x258.png 282w\" sizes=\"(max-width: 1019px) 100vw, 1019px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u5b9f\u969b\u306b\u30af\u30a8\u30ea\u304c\u6709\u52b9\u306a\u306e\u304b\u3001\u3069\u306e\u69d8\u306a\u5024\u304c\u53d6\u308c\u308b\u304b\u3092\u3053\u306e\u753b\u9762\u4e0a\u3067\u30c6\u30b9\u30c8\u3067\u304d\u308b\u306e\u3067\u4f55\u5ea6\u304b\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u30c6\u30b9\u30c8\u3059\u308b\u306e\u304c\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u7701\u7565\u3057\u307e\u3059\u304c\u3001Athena\u3092\u4f7f\u7528\u3059\u308b\u306b\u306fGrafana\u3067Athena\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u6709\u52b9\u306b\u3057\u3066\u304b\u3089Athena\u3092\u8a8d\u8a3c\u3059\u308b\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u3053\u307e\u3067\u8a2d\u5b9a\u304c\u3067\u304d\u305f\u3089Save Dashboard\u304b\u3089\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4fdd\u5b58\u3057\u305f\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5909\u6570\u306b\u5165\u3063\u305f\u5024\u306e\u4e00\u89a7\u304c\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u306b\u306a\u3063\u3066\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11442\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124835.png\" alt=\"\" width=\"289\" height=\"460\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124835.png 289w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124835-188x300.png 188w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124835-134x214.png 134w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-25-124835-163x260.png 163w\" sizes=\"(max-width: 289px) 100vw, 289px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u30b0\u30e9\u30d5\u3092\u4f5c\u308b\u969b\u306b\u30af\u30a8\u30ea\u306b\u5909\u6570\u540d\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3067\u3001\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u304b\u3089\u9078\u629e\u3057\u305f\u5024\u304c\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u3066\u30b0\u30e9\u30d5\u304c\u52d5\u7684\u306b\u5909\u5316\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bWHERE\u53e5\u306b\u5165\u308b\u5024\u3092\u5909\u6570\u3067\u5b9a\u7fa9\u3057\u307e\u3057\u305f\u3002$\u3092\u4ed8\u3051\u3066\u5909\u6570\u540d\u3092\u5165\u308c\u308b\u3053\u3068\u3067\u5909\u6570\u306e\u5024\u304c\u5165\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u4eca\u56de\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u56f2\u3093\u3067\u3044\u308b\u306e\u306f\u5909\u6570\u306b\u5165\u308b\u306e\u304c\u6587\u5b57\u5217\u3067\u3042\u3063\u305f\u305f\u3081\u3067\u3059\u3002WHERE\u53e5\u306b\u5909\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u3067\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u3067\u9078\u629e\u3055\u308c\u305f\u5024\u304c\u5909\u6570\u306b\u5165\u308a\u52d5\u7684\u306b\u30b0\u30e9\u30d5\u304c\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">WHERE test_value = '$test_string'<\/pre>\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u9077\u79fb\u5143\u306e\u753b\u9762\u304b\u3089\u6e21\u3055\u308c\u308b\u30e9\u30d9\u30eb\u540d\u3068\u9077\u79fb\u5148\u306e\u753b\u9762\u3067\u5909\u6570\u306b\u5165\u308b\u5024\u3092\u540c\u3058\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Variables\u6a5f\u80fd\u3092\u4f7f\u3044\u5909\u6570\u306e\u5024\u306b\u3088\u308b\u52d5\u7684\u306a\u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b\u3068\u5909\u6570\u306e\u5024\u304c\u5165\u3063\u305fURL\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002\u5b9f\u969b\u306bShow Detail\u3067\u753b\u9762\u9077\u79fb\u3055\u305b\u308bURL\u306f\u4ee5\u4e0b\u306e\u69d8\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u9077\u79fb\u5143\u304b\u3089\u30e9\u30d9\u30eb\u540d\u3092\u57cb\u3081\u8fbc\u3093\u3060URL\u304c\u9077\u79fb\u3059\u308b\u5148\u306e\u5909\u6570\u306e\u5024\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u305f\u3081\u753b\u9762\u9077\u79fb\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">https:\/\/\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eURL=1&amp;var-test_string=test_001&amp;from=1687853744262&amp;to=1690260904918<\/pre>\n<h2>\u5b9f\u969b\u306b\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u3055\u305b\u307e\u3059<\/h2>\n<p>\u9077\u79fb\u5143\u3000\u4f8b\u3048\u3070test_010\u3068\u3044\u3046\u51e1\u4f8b\u306e\u30b0\u30e9\u30d5\u3092\u8868\u793a\u3055\u305b\u3066Show Detail\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-11453\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-1024x581.png\" alt=\"\" width=\"1024\" height=\"581\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-1024x581.png 1024w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-300x170.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-768x435.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-304x172.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208-282x160.png 282w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160208.png 1030w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u753b\u9762\u304c\u9077\u79fb\u3055\u308c\u3066\u7591\u4f3c\u7684\u306b\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u753b\u9762\u306b\u306f\u30c9\u30ed\u30c3\u30d7\u30c0\u30a6\u30f3\u30ea\u30b9\u30c8\u304b\u3089test_010\u304c\u9078\u629e\u3055\u308c\u305f\u72b6\u614b\u3067\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11454\" src=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125.png\" alt=\"\" width=\"951\" height=\"583\" srcset=\"https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125.png 951w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125-300x184.png 300w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125-768x471.png 768w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125-304x186.png 304w, https:\/\/www.ecomottblog.com\/wp-content\/uploads\/2023\/12\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-12-26-160125-282x173.png 282w\" sizes=\"(max-width: 951px) 100vw, 951px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u753b\u9762\u9077\u79fb\u3092\u3055\u305b\u306a\u3044\u5b8c\u5168\u306a\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u306f\u3067\u304d\u306a\u304f\u3001\u8a2d\u5b9a\u3082\u3084\u3084\u3053\u3057\u3044\u3067\u3059\u304cGrafana\u306e\u6a5f\u80fd\u3060\u3051\u3067\u5b8c\u7d50\u3059\u308b\u7591\u4f3c\u7684\u306a\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u5546\u6a19\u4f7f\u7528\u30dd\u30ea\u30b7\u30fc<\/h2>\n<p><a href=\"https:\/\/grafana.com\/trademark-policy\/\">Grafana\u30ed\u30b4\u4f7f\u7528\u30dd\u30ea\u30b7\u30fc<\/a><\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<p><a href=\"https:\/\/tech-lab.sios.jp\/archives\/35172\">SIOS Grafana10\u306e\u65b0\u6a5f\u80fd\u3092\u89e6\u3063\u3066\u307f\u305f\uff01<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/akgo\/items\/ac5ab7f33c27f1db8833\">Qiita Grafana\u3067\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u4f5c\u308b\u3068\u304d\u306b\u4f7f\u3048\u308bTips<\/a><\/p>\n<p><a href=\"https:\/\/qiita.com\/siwa\/items\/f83bfb97ca92514dcb9a\">Qiita Grafana\u3067Variables\u3092\u4f7f\u3046<\/a><\/p>\n<p><a href=\"https:\/\/community.grafana.com\/t\/grafana-drill-down\/31395\/1\">Grafana Labs Comunity &#8220;Grafana Drill Down&#8221;<\/a><\/p>\n<p><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/panels-visualizations\/configure-data-links\/\">Grafana Labs &#8220;Configure data links&#8221;<\/a><\/p>\n<p><a href=\"https:\/\/grafana.com\/docs\/grafana\/latest\/dashboards\/variables\/\">Grafana Labs &#8220;Variables&#8221;<\/a><\/p>\n<div>&nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u57fa\u76e4\u6574\u5099\u30b0\u30eb\u30fc\u30d7\u306e\u4e0a\u897f\u3067\u3059\u3002 \u4eca\u56deGrafana\u3067Power BI\u306e\u3088\u3046\u306a\u30c9\u30ea\u30eb\u30c0\u30a6\u30f3\u6a5f\u80fd\u304c\u4f7f\u3048\u308c\u3070\u3044\u3044\u306a\u3041\u3068\u601d\u3044\u8abf\u67fb\u3068\u5b9f\u88c5\u3092\u3057\u305f\u306e\u3067\u3001\u624b\u9806\u3092\u6b8b\u3059\u76ee\u7684\u3067Variables\u3068Data link\u306e\u6a5f\u80fd\u306b\u3064\u3044\u3066\u307e\u3068\u3081 [&hellip;]<\/p>\n","protected":false},"author":37,"featured_media":11395,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11393"}],"collection":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11393"}],"version-history":[{"count":35,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11393\/revisions"}],"predecessor-version":[{"id":11456,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/posts\/11393\/revisions\/11456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=\/wp\/v2\/media\/11395"}],"wp:attachment":[{"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecomottblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}