<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Visualization on PIGSTY</title>
    <link>https://v27.pgsty.pro/tags/visualization/</link>
    <description>Recent content in Visualization on PIGSTY</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Mon, 11 Mar 2024 00:00:00 +0000</lastBuildDate>
    
    
      <atom:link href="https://v27.pgsty.pro/tags/visualization/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>Analyse CSVLOG Sample with the built-in PGLOG</title>
        <link>https://v27.pgsty.pro/docs/applet/pglog/</link>
        <pubDate>Wed, 18 May 2022 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/pglog/</guid>
        <description>&lt;p&gt;PGLOG is a sample application included with Pigsty that uses the &lt;code&gt;pglog.sample&lt;/code&gt; table in MetaDB as the data source.&#xA;Simply populate this table with logs and access the corresponding Dashboard.&lt;/p&gt;&#xA;&lt;p&gt;Pigsty provides some handy commands to fetch CSV logs and load them into the sample table. The following shortcut commands are available on the master node by default:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-6648abd7-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;8&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-6648abd7-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;catlog  &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;node&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;localhost&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;  &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;nv&#34;&gt;date&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;today&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;   &lt;span class=&#34;c1&#34;&gt;# Print CSV logs to standard output&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pglog                                    &lt;span class=&#34;c1&#34;&gt;# Load CSVLOG from standard input&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pglog12                                  &lt;span class=&#34;c1&#34;&gt;# Load CSVLOG in PG12 format&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pglog13                                  &lt;span class=&#34;c1&#34;&gt;# Load CSVLOG in PG13 format&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pglog14                                  &lt;span class=&#34;c1&#34;&gt;# Load CSVLOG in PG14 format (=pglog)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;catlog &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; pglog                       &lt;span class=&#34;c1&#34;&gt;# Analyze logs of the current node for today&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;catlog node-1 &lt;span class=&#34;s1&#34;&gt;&amp;#39;2021-07-15&amp;#39;&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;|&lt;/span&gt; pglog   &lt;span class=&#34;c1&#34;&gt;# Analyze CSV logs of node-1 for 2021-07-15&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Next, you can visit the following links to view sample log analysis dashboards:&lt;/p&gt;</description>
      </item>
    <item>
        <title>NOAA ISD Station</title>
        <link>https://v27.pgsty.pro/docs/applet/isd/</link>
        <pubDate>Mon, 04 Jan 2021 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/isd/</guid>
        <description>&lt;p&gt;Including 30000 meteorology station, daily, sub-hourly observation records, from 1900-2023. &lt;a href=&#34;https://github.com/Vonng/isd&#34;&gt;https://github.com/Vonng/isd&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/isd-overview&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://github.com/Vonng/isd/assets/8587410/827c1961-6426-46c6-9fb1-25cd93507924&#34; alt=&#34;ISD Overview&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;It is recommended to use with &lt;a href=&#34;https://github.com/Vonng/pigsty&#34;&gt;Pigsty&lt;/a&gt;, the battery-included PostgreSQL distribution with Grafana &amp;amp; echarts for visualization. It will setup everything for your with &lt;code&gt;make all&lt;/code&gt;;&lt;/p&gt;&#xA;&lt;p&gt;Otherwise, you&amp;rsquo;ll have to provide your own PostgreSQL instance, and setup grafana dashboards manually.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;h2 id=&#34;quick-start&#34;&gt;Quick Start&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Clone this repo&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-a0a7509d-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-a0a7509d-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/Vonng/isd.git&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; isd&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;&lt;strong&gt;Prepare a PostgreSQL Instance&lt;/strong&gt;&lt;/p&gt;</description>
      </item>
    <item>
        <title>WHO COVID-19 Data Analysis</title>
        <link>https://v27.pgsty.pro/docs/applet/covid/</link>
        <pubDate>Tue, 18 Jan 2022 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/covid/</guid>
        <description>&lt;p&gt;The on-line demo：&lt;a href=&#34;https://demo.pigsty.cc/d/covid-overview&#34;&gt;https://demo.pigsty.cc/d/covid-overview&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-overview&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/docs/app/covid-overview.jpeg&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-country&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/docs/app/covid-country.jpeg&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-timeline-map?var-data_type=new_cases&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/docs/app/covid-map.jpeg&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;installation&#34;&gt;Installation&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;在管理节点上进入应用目录，执行&lt;code&gt;make&lt;/code&gt;以完成安装。&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-851e6939-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;3&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-851e6939-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make            &lt;span class=&#34;c1&#34;&gt;# 如果本地数据可用&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make all        &lt;span class=&#34;c1&#34;&gt;# 完整安装，从WHO官网下载数据&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;makd reload     &lt;span class=&#34;c1&#34;&gt;# 重新下载并加载最新数据&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;其他一些子任务：&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-851e6939-fence-1&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;bash&#34; data-td-line-count=&#34;6&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-851e6939-fence-1-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make reload     &lt;span class=&#34;c1&#34;&gt;# download latest data and pour it again&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make ui         &lt;span class=&#34;c1&#34;&gt;# install grafana dashboards&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make sql        &lt;span class=&#34;c1&#34;&gt;# install database schemas&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make download   &lt;span class=&#34;c1&#34;&gt;# download latest data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make load       &lt;span class=&#34;c1&#34;&gt;# load downloaded data into database&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;make reload     &lt;span class=&#34;c1&#34;&gt;# download latest data and pour it into database&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;dashboards&#34;&gt;Dashboards&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-overview&#34;&gt;Covid Overview&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-country&#34;&gt;Covid Country&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://demo.pigsty.cc/d/covid-timeline-map?var-data_type=new_cases&#34;&gt;Covid Timeline&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
      </item>
    <item>
        <title>Solve the 24-Point Card Game with One SQL Statement</title>
        <link>https://v27.pgsty.pro/docs/applet/poker24/</link>
        <pubDate>Thu, 11 Jan 2024 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/poker24/</guid>
        <description>&lt;h2 id=&#34;problem&#34;&gt;Problem&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The challenge is described in &lt;a href=&#34;https://www.ninedata.cloud/sql_poker24&#34;&gt;Database Programming Contest: Calculate 24 with One SQL Statement&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;code&gt;cards&lt;/code&gt; table has an auto-incrementing &lt;code&gt;id&lt;/code&gt; and four columns, &lt;code&gt;c1&lt;/code&gt; through &lt;code&gt;c4&lt;/code&gt;; each card is a random integer from 1 to 10. One SQL statement must return a valid arithmetic expression whose result is 24, or &lt;code&gt;NULL&lt;/code&gt; when no solution exists.&lt;/p&gt;&#xA;&lt;p&gt;The rules allow only addition, subtraction, multiplication, division, and parentheses. Every input number must be used exactly once. Built-in database functions are allowed, but stored procedures, user-defined functions, and code blocks are not. The submitted SQL must be smaller than 10 KB and was evaluated on a 4-core, 32 GB server.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Visualization Applet</title>
        <link>https://v27.pgsty.pro/docs/applet/</link>
        <pubDate>Mon, 11 Mar 2024 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/</guid>
        <description>&lt;p&gt;&lt;a href=&#34;https://github.com/Vonng/pigsty/tree/v2.7.0/app&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/pigsty/app.jpg&#34; alt=&#34;pigsty-app.jpg&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;An Applet is a self-contained, data-driven mini-application that runs within the Pigsty infrastructure.&lt;/p&gt;&#xA;&lt;p&gt;A typical Pigsty application includes at least one or all of the following components:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Graphical Interface (Grafana Dashboard definitions)&lt;/strong&gt; located in the &lt;code&gt;ui&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Data Definitions (PostgreSQL DDL Files)&lt;/strong&gt; located in the &lt;code&gt;sql&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Data Files (various resources that need to be downloaded)&lt;/strong&gt; located in the &lt;code&gt;data&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Logic Scripts (scripts for executing various logic)&lt;/strong&gt; located in the &lt;code&gt;bin&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Pigsty comes with several sample applications by default:&lt;/p&gt;</description>
      </item>
    <item>
        <title>StackOverflow Global Developer Survey</title>
        <link>https://v27.pgsty.pro/docs/applet/sf-survey/</link>
        <pubDate>Sun, 11 Jun 2023 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/sf-survey/</guid>
        <description>&lt;hr&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;GitHub Repository: &lt;a href=&#34;https://github.com/Vonng/pigsty-app/tree/11fbbc03031b0a060cf4da0f87f3f12a4ec2f126/db&#34;&gt;https://github.com/Vonng/pigsty-app/tree/11fbbc03031b0a060cf4da0f87f3f12a4ec2f126/db&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Online Demo: &lt;a href=&#34;https://demo.pigsty.io/d/sf-survey&#34;&gt;https://demo.pigsty.io/d/sf-survey&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.io/d/sf-survey&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/docs/app/sf-survey.jpg&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;</description>
      </item>
    <item>
        <title>DB-Engines Database Popularity Trend Analysis</title>
        <link>https://v27.pgsty.pro/docs/applet/db-engine/</link>
        <pubDate>Sun, 11 Jun 2023 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/db-engine/</guid>
        <description>&lt;hr&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;GitHub Repository: &lt;a href=&#34;https://github.com/Vonng/pigsty-app/tree/11fbbc03031b0a060cf4da0f87f3f12a4ec2f126/db&#34;&gt;https://github.com/Vonng/pigsty-app/tree/11fbbc03031b0a060cf4da0f87f3f12a4ec2f126/db&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Online Demo: &lt;a href=&#34;https://demo.pigsty.io/d/db-engine&#34;&gt;https://demo.pigsty.io/d/db-engine&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://demo.pigsty.io/d/db-engine&#34;&gt;&lt;img class=&#34;td-image&#34; src=&#34;https://v27.pgsty.pro/img/docs/app/db-engine.jpg&#34; alt=&#34;&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&lt;/a&gt;&lt;/p&gt;</description>
      </item>
    <item>
        <title>AWS &amp; Aliyun Server Pricing</title>
        <link>https://v27.pgsty.pro/docs/applet/cloud/</link>
        <pubDate>Mon, 11 Mar 2024 00:00:00 +0000</pubDate>
        
        <guid>https://v27.pgsty.pro/docs/applet/cloud/</guid>
        <description>&lt;hr&gt;&#xA;&lt;h2 id=&#34;overview&#34;&gt;Overview&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Historical source note: the advertised &lt;code&gt;pigsty-app/cloud&lt;/code&gt; directory was not present in the last immutable app repository snapshot before v2.7.0; the SQL and recovered images below come from the frozen documentation repository.&lt;/p&gt;&#xA;&lt;p&gt;Online Demo: &lt;a href=&#34;https://demo.pigsty.io/d/ecs&#34;&gt;https://demo.pigsty.io/d/ecs&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Article: &lt;a href=&#34;https://pigsty.io/blog/cloud/ecs&#34;&gt;Analyzing Computing Costs: Has Aliyun Really Reduced Prices?&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;data-source&#34;&gt;Data Source&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Aliyun ECS pricing can be obtained as raw CSV data from &lt;a href=&#34;https://www.aliyun.com/price/product#/commodity/vm&#34;&gt;Price Calculator - Pricing Details - Price Download&lt;/a&gt;.&lt;/p&gt;</description>
      </item>
    
  </channel>
</rss>
