{"id":1570,"date":"2023-03-25T17:52:44","date_gmt":"2023-03-25T09:52:44","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1570"},"modified":"2023-04-27T21:33:29","modified_gmt":"2023-04-27T13:33:29","slug":"grafana-curve-showing-amount-of-new-data-added-per-second","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/25\/grafana-curve-showing-amount-of-new-data-added-per-second\/","title":{"rendered":"Grafana\u66f2\u7ebf\u56fe\u5c55\u793a\u6bcf\u79d2\u65b0\u589e\u6570\u636e\u91cf"},"content":{"rendered":"<p>\u6dfb\u52a0MySQL\u6570\u636e\u6e90 -&gt; \u6dfb\u52a0\u67e5\u8be2\u6761\u4ef6<\/p>\n<p>sql \u6a21\u5f0f\u7f16\u5199\u67e5\u8be2\u6761\u4ef6\uff1a<\/p>\n<p><!-- more --><\/p>\n<pre><code class=\"language-sql\">SELECT\n  $__timeGroupAlias(create_time, $interval),\n  count(order_no) as &#039;\u521b\u5355\u6570\u91cf&#039;\nFROM t_order\nWHERE\n  merchant_id = $merchant_id AND\n  $__timeFilter(create_time)\nGROUP BY 1\nORDER BY\n  $__timeGroup(create_time, $interval);<\/code><\/pre>\n<pre><code class=\"language-sql\">SELECT\n  $__timeGroupAlias(create_time, 1s),\n  count(uuid) AS &quot;num&quot;\nFROM t_user\nWHERE\n  $__timeFilter(create_time)\nGROUP BY 1\nORDER BY $__timeGroup(create_time, 1s)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6dfb\u52a0MySQL\u6570\u636e\u6e90 -&gt; \u6dfb\u52a0\u67e5\u8be2\u6761\u4ef6 sql \u6a21\u5f0f\u7f16\u5199\u67e5\u8be2\u6761\u4ef6\uff1a SELECT $__timeGro [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[386],"tags":[385],"class_list":["post-1570","post","type-post","status-publish","format-standard","hentry","category-monitor","tag-grafana"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1570"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1570\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}