{"id":43888,"date":"2022-12-15T09:37:08","date_gmt":"2023-10-06T05:09:11","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/"},"modified":"2024-04-29T05:21:21","modified_gmt":"2024-04-28T21:21:21","slug":"%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/","title":{"rendered":"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868"},"content":{"rendered":"<p>\u4f7f\u7528OSS\u7684\u56fe\u5f62\u751f\u6210\u5de5\u5177Grafana\uff0c\u60f3\u8981\u5728PostgreSQL\u6570\u636e\u5e93\u4e2d\u4ee5\u56fe\u8868\u5f62\u5f0f\u5c55\u793a\u6570\u636e\uff0c\u8fd9\u6837\u7684\u6587\u7ae0\u3002<\/p>\n<p>Grafana\u4e0ePrometheus\u7ed3\u5408\u5728Kubernetes\u9886\u57df\u4e2d\u901a\u5e38\u7528\u4f5c\u4e3a\u663e\u793aCPU\u4f7f\u7528\u7387\u7b49\u6307\u6807\u4fe1\u606f\u7684\u56fe\u5f62\u5de5\u5177\uff0c\u4f46\u7531\u4e8e\u6570\u636e\u6e90\u662fPrometheus\uff0c\u56de\u6eaf\u4e00\u5b9a\u671f\u9650\uff08\u5982\u534a\u5e74\u524d\uff09\u4ee5\u663e\u793a\u56fe\u5f62\u53d8\u5f97\u56f0\u96be\uff0c\u56e0\u6b64\u5728\u65e7\u6570\u636e\u65b9\u9762\uff0c\u5c06\u5176\u4fdd\u7559\u5728\u6570\u636e\u5e93\u4e2d\uff08\u6216\u91cd\u65b0\u52a0\u8f7d\u6570\u636e\u5230\u6570\u636e\u5e93\uff09\u5e76\u8fdb\u884c\u663e\u793a\u53ef\u80fd\u662f\u6709\u7528\u7684\u8981\u6c42\u6216\u60f3\u6cd5\u3002<\/p>\n<p>\u5982\u679c\u4f60\u6709AWS\u8d26\u6237\uff0c\u5e76\u4e14\u719f\u6089\u7684\u8bdd\uff0c\u5927\u7ea65\u5206\u949f\u5c31\u53ef\u4ee5\u529e\u597d\u3002<\/p>\n<h1>\u521b\u5efa\u865a\u62df\u673a<\/h1>\n<p>\u9996\u5148\uff0c\u5728AWS Lightsail\u4e0a\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u673a\u3002\u540c\u65f6\u5c06\u5176\u517c\u4f5cPostgreSQL\u548cGrafana\u670d\u52a1\u5668\u3002<br \/>\nhttps:\/\/aws.amazon.com\/jp\/lightsail-vps\/<\/p>\n<p>\u53ea\u8981\u6309\u7167\u672c\u6587\u6240\u8ff0\u7684\u65b9\u6cd5\u6267\u884c\uff0c\u5373\u4f7f\u662f512MB\u5185\u5b58\u548c1\u4e2avCPU\u7684\u5b9e\u4f8b\uff0c\u5728\u7b2c\u4e00\u4e2a\u6708\u4e5f\u662f\u514d\u8d39\u7684\u3002<\/p>\n<h1>\u5b89\u88c5PostgreSQL<\/h1>\n<p>\u767b\u5f55\u5230\u521b\u5efa\u7684\u865a\u62df\u673a\u4e0a\uff0c\u5e76\u4f7f\u7528ssh\u8fde\u63a5\uff0c\u83b7\u5f97root\u6743\u9650\u3002<\/p>\n<pre class=\"post-pre\"><code>Using username \"centos\".\r\nAuthenticating with public key \"imported-openssh-key\"\r\n[centos@ip-172-26-4-90 ~]$ sudo -i\r\n[root@ip-172-26-4-90 ~]#\r\n<\/code><\/pre>\n<p>\u5b89\u88c5PostgreSQL\u3002<\/p>\n<pre class=\"post-pre\"><code># yum -y install postgresql-server\r\n# postgresql-setup initdb\r\n# systemctl enable postgresql.service\r\n# systemctl start postgresql.service\r\n<\/code><\/pre>\n<p>\u521b\u9020\u4e00\u4e2agrafana\u8981\u8fde\u63a5\u7684\u6570\u636e\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code># sudo -u postgres psql -c \"CREATE DATABASE grafana;\"\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3adata1\u7684\u6570\u636e\u8868\u4f5c\u4e3a\u56fe\u8868\u7684\u57fa\u7840\u3002\u5141\u8bb8PUBLIC\u8fdb\u884cSELECT\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code># cat &gt; create_table.sql &lt;&lt; 'EOF'\r\nCREATE TABLE data1\r\n(\r\n  id serial,\r\n  time timestamp with time zone NOT NULL DEFAULT now(),\r\n  data integer NOT NULL,\r\n  PRIMARY KEY (id)\r\n)\r\nEOF\r\n\r\n# sudo -u postgres psql -d grafana &lt; create_table.sql\r\n# sudo -u postgres psql -d grafana -c \"GRANT SELECT ON data1 TO PUBLIC;\"\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u540e\u7eed\u6570\u636e\u5c55\u793a\u7684\u76ee\u7684\uff0c\u6682\u65f6\u521b\u5efa\u51e0\u6761\u8bb0\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code># sudo -u postgres psql -d grafana -c \"INSERT INTO data1 (data) values (1);\"\r\n# sudo -u postgres psql -d grafana -c \"INSERT INTO data1 (data) values (2);\"\r\n# sudo -u postgres psql -d grafana -c \"INSERT INTO data1 (data) values (3);\"\r\n\r\n# sudo -u postgres psql -d grafana -c \"SELECT * from data1;\"\r\ncould not change directory to \"\/root\"\r\n id |             time              | data\r\n----+-------------------------------+------\r\n  1 | 2020-12-09 06:39:12.954322+00 |    1\r\n  2 | 2020-12-09 06:39:16.469155+00 |    2\r\n  3 | 2020-12-09 06:39:19.221617+00 |    3\r\n(3 rows)\r\n<\/code><\/pre>\n<p>\u4e3a\u4e86\u4f7fgrafana\u7528\u6237\u80fd\u591f\u767b\u5f55\u5e76\u663e\u793a\u6570\u636e\uff0c\u8c03\u6574PostgreSQL\u7684\u8ba4\u8bc1\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code># sed -i \/var\/lib\/pgsql\/data\/pg_hba.conf -e \"s\/host    all             all             127.0.0.1\\\/32            ident\/host    all             all             127.0.0.1\\\/32            md5\/\"\r\n# systemctl restart postgresql.service\r\n# sudo -u postgres psql -d grafana -c \"CREATE USER grafana WITH LOGIN PASSWORD 'grafana';\"\r\n\r\n# psql -h 127.0.0.1 -d grafana -U grafana -W -c \"SELECT * FROM data1;\"\r\nPassword for user grafana:\r\n id |             time              | data\r\n----+-------------------------------+------\r\n  1 | 2020-12-09 06:39:12.954322+00 |    1\r\n  2 | 2020-12-09 06:39:16.469155+00 |    2\r\n  3 | 2020-12-09 06:39:19.221617+00 |    3\r\n(3 rows)\r\n<\/code><\/pre>\n<h1>\u5b89\u88c5Grafana<\/h1>\n<p>\u8bf7\u67e5\u770b\u4ee5\u4e0b\u94fe\u63a5\u4ee5\u83b7\u53d6\u8be6\u7ec6\u4fe1\u606f\uff1a<br \/>\nhttps:\/\/grafana.com\/docs\/grafana\/latest\/installation\/rpm\/<\/p>\n<p>\uff11\uff0e\u5b89\u88c5Grafana\u3002<\/p>\n<pre class=\"post-pre\"><code># cat &gt; \/etc\/yum.repos.d\/grafana-oss.repo &lt;&lt; 'EOF'\r\n[grafana]\r\nname=grafana\r\nbaseurl=https:\/\/packages.grafana.com\/oss\/rpm\r\nrepo_gpgcheck=1\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=https:\/\/packages.grafana.com\/gpg.key\r\nsslverify=1\r\nsslcacert=\/etc\/pki\/tls\/certs\/ca-bundle.crt\r\nEOF\r\n\r\n# yum install -y grafana\r\n# systemctl daemon-reload\r\n# systemctl enable grafana-server\r\n# systemctl start grafana-server\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/23-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u901a\u8fc7Web\u6d4f\u89c8\u5668\u8bbf\u95ee\u4ee5\u4e0bURL\uff0c\u5e76\u767b\u5f55Grafana\u3002<br \/>\nhttp:\/\/&lt;\u865a\u62df\u673a\u7684IP\u5730\u5740&gt;:3000<\/p>\n<p>\u7531\u4e8e\u521d\u59cb\u7528\u6237\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u662fadmin \/ admin\uff0c\u8bf7\u5c3d\u5feb\u767b\u5f55\u5e76\u66f4\u6539\u5bc6\u7801\uff0c\u8fd9\u662f\u975e\u5e38\u7406\u60f3\u7684\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/26-2.png\" alt=\"image.png\" \/><\/div>\n<h1>\u6dfb\u52a0PostgreSQL\u6570\u636e\u6e90<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/28-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/29-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/30-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/31-1.png\" alt=\"image.png\" \/><\/div>\n<h1>\u4f7f\u7528 PostgreSQL \u6570\u636e\u8fdb\u884c\u56fe\u8868\u5c55\u793a\u3002<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/33-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/34-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/35-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/36-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/37-0.png\" alt=\"image.png\" \/><\/div>\n<h1>\u5c06\u6bcf\u4e2a\u5206\u6bb5\u7684\u8bb0\u5f55\u6570\u7ed8\u5236\u6210\u56fe\u8868\u3002<\/h1>\n<p>\u5982\u679c\u80fd\u6765\u5230\u8fd9\u4e00\u6b65\uff0c\u4e4b\u540e\u53ef\u4ee5\u901a\u8fc7\u64cd\u7eb5\u5c4f\u5e55\u8fdb\u884c\u5404\u79cd\u6539\u53d8\u548c\u4fee\u6539\u9762\u677f\u7684\u6807\u9898\u3002<br \/>\n\u53e6\u5916\uff0c\u5148\u524d\u663e\u793a\u7684\u56fe\u8868\u662f\u57fa\u4e8edata1\u8868\u683c\u4e2d\u7684\u6570\u636e\u503c\u6240\u751f\u6210\u7684\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7b80\u5355\u5730\u5c06data1\u8868\u683c\u4e2d\u7684\u8bb0\u5f55\u6570\u91cf\u4f5c\u4e3a\u65f6\u95f4\u5e8f\u5217\u7684\u56fe\u8868\u8fdb\u884c\u8868\u793a\u3002\u8fd9\u5728\u5e94\u7528\u4e8e\u65e5\u5fd7\u6570\u91cf\u7b49\u65b9\u9762\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/40-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u5728\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u5728\u670d\u52a1\u5668\u7aef\u7684\u63d0\u793a\u7b26\u4e0b\uff0c\u53ea\u9700\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5373\u53ef\u5c06\u6bcf\u5206\u949f\u6267\u884c\u7684\u547d\u4ee4\u6b21\u6570\u53cd\u6620\u5728\u56fe\u8868\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code># sudo -u postgres psql -d grafana -c \"INSERT INTO data1 (data) values (1);\"\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/43-0.png\" alt=\"image.png\" \/><\/div>\n<p>Grafana\u771f\u5389\u5bb3\uff0c\u56e0\u4e3a\u8981\u81ea\u5df1\u7f16\u5199SQL\u8bed\u53e5\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u5f88\u56f0\u96be\uff0c\u800cGrafana\u53ef\u4ee5\u901a\u8fc7\u51e0\u6b21\u9f20\u6807\u70b9\u51fb\u5c31\u80fd\u5b9e\u73b0\u56fe\u5f62\u663e\u793a\u3002<\/p>\n<p>\u5c06Grafana\u7684\u56fe\u8868\u5d4c\u5165HTML\u6587\u6863\u4e2d\u3002\uff08\u9644\u52a0\u4fe1\u606f\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528OSS\u7684\u56fe\u5f62\u751f\u6210\u5de5\u5177Grafana\uff0c\u60f3\u8981\u5728PostgreSQL\u6570\u636e\u5e93\u4e2d\u4ee5\u56fe\u8868\u5f62\u5f0f\u5c55\u793a\u6570\u636e\uff0c\u8fd9\u6837\u7684\u6587\u7ae0\u3002 G [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-43888","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868 - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/\u7528grafana\u5c06postgresql\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\" \/>\n<meta property=\"og:description\" content=\"\u4f7f\u7528OSS\u7684\u56fe\u5f62\u751f\u6210\u5de5\u5177Grafana\uff0c\u60f3\u8981\u5728PostgreSQL\u6570\u636e\u5e93\u4e2d\u4ee5\u56fe\u8868\u5f62\u5f0f\u5c55\u793a\u6570\u636e\uff0c\u8fd9\u6837\u7684\u6587\u7ae0\u3002 G [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7528grafana\u5c06postgresql\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-06T05:09:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T21:21:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/23-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/\",\"name\":\"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-06T05:09:11+00:00\",\"dateModified\":\"2024-04-28T21:21:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/\u7528grafana\u5c06postgresql\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868","og_description":"\u4f7f\u7528OSS\u7684\u56fe\u5f62\u751f\u6210\u5de5\u5177Grafana\uff0c\u60f3\u8981\u5728PostgreSQL\u6570\u636e\u5e93\u4e2d\u4ee5\u56fe\u8868\u5f62\u5f0f\u5c55\u793a\u6570\u636e\uff0c\u8fd9\u6837\u7684\u6587\u7ae0\u3002 G [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u7528grafana\u5c06postgresql\u7684\u6570\u636e\u5236\u6210\u56fe\u8868\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-06T05:09:11+00:00","article_modified_time":"2024-04-28T21:21:21+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d55bd37434c4406cd73b6\/23-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/","name":"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-06T05:09:11+00:00","dateModified":"2024-04-28T21:21:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u7528Grafana\u5c06PostgreSQL\u7684\u6570\u636e\u5236\u6210\u56fe\u8868"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%94%a8grafana%e5%b0%86postgresql%e7%9a%84%e6%95%b0%e6%8d%ae%e5%88%b6%e6%88%90%e5%9b%be%e8%a1%a8%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43888","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=43888"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43888\/revisions"}],"predecessor-version":[{"id":83292,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/43888\/revisions\/83292"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=43888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=43888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=43888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}