{"id":46671,"date":"2021-10-29T00:00:00","date_gmt":"2021-10-29T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/blog\/part-two-vuejs-dashboard\/"},"modified":"2025-11-13T12:55:37","modified_gmt":"2025-11-13T20:55:37","slug":"part-two-vuejs-dashboard","status":"publish","type":"post","link":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/blog\/part-two-vuejs-dashboard\/","title":{"rendered":"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB"},"content":{"rendered":"<p>Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.<\/p>\n<p>In this tutorial, we&#8217;ll create a server memory monitor for a Node.js server. This will take a reading of system memory every second and store it in a database.<\/p>\n<p>This data will then be displayed with a dashboard visualization in a frontend Vue app.<\/p>\n<p>We&#8217;ll also be using GridDB which makes it easy to write and retrieve time-series data. We&#8217;ll expose the data as a public API using the Express framework.<\/p>\n<p>I&#8217;ll presume you have Docker installed on your computer and have a basic understanding of Vue, Node.js, and GridDB.<\/p>\n<p>You can access the complete code in <a href=\"https:\/\/github.com\/anthonygore\/express-griddb-docker\">this repo<\/a>.<\/p>\n<h2>Environment setup with Docker<\/h2>\n<p>In my <a href=\"https:\/\/griddb.net\/en\/blog\/part-one-vuejs-dashboard\/\">last tutorial<\/a>, I explained how to set up a Node &amp; Express API connected to GridDB. I used a Docker container as this makes it really easy to spin up GridDB on any OS.<\/p>\n<p>In this tutorial, we&#8217;ll be using that Docker boilerplate again so we can quickly get started. I recommend you <a href=\"https:\/\/griddb.net\/en\/blog\/part-one-vuejs-dashboard\/\">refer to the previous tutorial<\/a> if you need to understand the setup further.<\/p>\n<p>Unless you&#8217;ve followed the previous tutorial, clone <a href=\"https:\/\/github.com\/anthonygore\/node-griddb-docker\">this repo<\/a> on your computer:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ git clone https:\/\/github.com\/anthonygore\/node-griddb-docker.git<\/code><\/pre>\n<\/div>\n<p>Now, enter the newly-created directory and run Docker Compose to install and launch the virtual environment:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ cd node-griddb-docker\n$ docker-compose up --build<\/code><\/pre>\n<\/div>\n<p>Once that has finished installing, you will have an Express server set up and running alongside a GridDB database instance.<\/p>\n<p>Confirm everything is working by making a request to the Express server using Curl<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ curl http:\/\/localhost:3000<\/code><\/pre>\n<\/div>\n<p>You should see the &#8220;Hello, World&#8221; message in your console.<\/p>\n<h2>Getting a reading of system memory<\/h2>\n<p>Our objective is to create an app that measures free memory on our server and makes that data available as an API.<\/p>\n<p>We can easily get the amount of free memory on our server using the Node package <code>node-os-utils<\/code>.<\/p>\n<p>Let&#8217;s begin by installing that:<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ npm i -S node-os-utils<\/code><\/pre>\n<\/div>\n<p>We&#8217;ll now need to restart the Docker container, as we&#8217;ve added a new NPM dependency. Use <code>Ctrl+C<\/code> to kill the current container, and then run <code>docker build --rm .<\/code> to re-build the image with the new dependency and remove the previous image. Then run <code>docker-compose up<\/code> to restart the container.<\/p>\n<p>Let&#8217;s use Node OS Utils to make it so our Express API returns the amount of free memory at the path <code>\/data<\/code>.<\/p>\n<p><em>server.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst osu = require('node-os-utils')\n\n...\n\napp.get('\/data', async (req, res) => {\n  const info = await osu.mem.info()\n  res.send(info);\n});<\/code><\/pre>\n<\/div>\n<p>You can test this using Curl in the terminal again. This time, you&#8217;ll see stats about system memory in the response.<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ curl http:\/\/localhost:3000\/data\n\n# {\"totalMemMb\":1986.16,\"usedMemMb\":848.47,\"freeMemMb\":1137.69,\"usedMemPercentage\":42.72,\"freeMemPercentage\":57.28}<\/code><\/pre>\n<\/div>\n<h2>Interval memory readings<\/h2>\n<p>If we&#8217;re going to create a monitor, we want to store time-series values in a database so they can be viewed over a particular interval.<\/p>\n<p>To do this, we&#8217;ll take a reading every second after our server is activated. Let&#8217;s use <code>setInterval<\/code> for this. For now, we&#8217;ll just print those values to the console.<\/p>\n<p><em>server.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nsetInterval(async() => {\n  const info = await osu.mem.info();\n  console.log(info.freeMemPercentage);\n}, 1000);<\/code><\/pre>\n<\/div>\n<h2>Creating a container<\/h2>\n<p>How do we now get this data into our database? The first thing we&#8217;ll need to do is create a container.<\/p>\n<p>To do this, we&#8217;ll define a schema for a GridDB time-series container called &#8220;FreeMemoryPercentage&#8221;. This will be a container with two columns &#8211; <code>timestamp<\/code>, which will obviously be a <code>TIMESTAMP<\/code> type, and <code>freeMemPercentage<\/code>, which will be a <code>DOUBLE<\/code> type.<\/p>\n<p>We&#8217;ll then call the <code>putContainer<\/code> method of the store to create the container.<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst containerName =\"FreeMemoryPercentage\";\nconst schema = new griddb.ContainerInfo({\n    name: containerName,\n    columnInfoList: [\n    [\"timestamp\", griddb.Type.TIMESTAMP],\n    [\"freeMemPercentage\", griddb.Type.DOUBLE]\n  ],\n    type: griddb.ContainerType.TIME_SERIES,\n    rowKey: true\n});\nconst container = await store.putContainer(schema, false);<\/code><\/pre>\n<\/div>\n<p>So where do we put this code in our project? Let&#8217;s head over to our database file and create a function <code>createContainer<\/code>. Here, we&#8217;ll first attempt to retrieve the container (on the assumption it may already have been created) by calling <code>store.getContainer<\/code>.<\/p>\n<p>If the container is <code>null<\/code>, we&#8217;ll create it with the code above.<\/p>\n<p>With that done, we&#8217;ll call and return this method from our <code>connect<\/code> method. This allow us to pass in the store to the container and begin creating an API for database access as will be explained further below.<\/p>\n<p><em>db.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst createContainer = async (store) => {\n  let container = await store.getContainer(containerName);\n  if (container === null) {\n    try {\n      const schema = new griddb.ContainerInfo({\n                name: containerName,\n                columnInfoList: [\n            [\"timestamp\", griddb.Type.TIMESTAMP],\n            [\"freeMemPercentage\", griddb.Type.DOUBLE]\n          ],\n                type: griddb.ContainerType.TIME_SERIES,\n                rowKey: true\n      });\n      container = await store.putContainer(schema, false);\n    } catch (err) {\n            console.log(err);\n    }\n  }\n}\n\nconst connect = async () => {\n  ...\n  createContainer(store);\n};<\/code><\/pre>\n<\/div>\n<h2>Store memory readings in container<\/h2>\n<p>We&#8217;ve now created a container for our data. How do we store free memory readings in it?<\/p>\n<p>To do this, we&#8217;ll create another function in our database file, <code>putRow<\/code>. We&#8217;ll make this a higher-order function so we can automatically pass in the container without the consumer having to worry about it.<\/p>\n<p>In the returned function, we&#8217;ll first create a timestamp &#8211; noting that we round it to the nearest second as seconds are the base interval &#8211; and we&#8217;ll put that timestamp, and whatever value is supplied to the function, into the container using <code>container.put<\/code>.<\/p>\n<p><em>db.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst putRow = (container) => async (val) => {\n  try {\n    const p = 1000;\n    const now = new Date();\n    const time = new Date(Math.round(now.getTime() \/ p ) * p);\n    await container.put([time, val]);\n  } catch (err) {\n    console.log(err);\n  }\n}<\/code><\/pre>\n<\/div>\n<p>We&#8217;re now going to return the inner function of <code>putRow<\/code> from our <code>createContainer<\/code> method so that we have a simple API that can be used by our main server file.<\/p>\n<p><em>db.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst createContainer = async (store) => {\n  ...\n  return {\n    putRow: putRow(container)\n  }\n}<\/code><\/pre>\n<\/div>\n<h2>Storing memory readings from the Express server<\/h2>\n<p>Let&#8217;s now get access to our server container in our server file. To do this, we&#8217;ll declare a variable <code>container<\/code> but we won&#8217;t initialize it just yet.<\/p>\n<p>We&#8217;ll then call the <code>db.connect<\/code> method which returns our database API. Since it&#8217;s an async function, we&#8217;ll need to wait until the promise resolves, then assign the value to the variable we just created.<\/p>\n<p><em>server.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nlet container;\ndb.connect().then(c => container = c);<\/code><\/pre>\n<\/div>\n<p>Now, in our interval callback, we can use our API method <code>container.putRow<\/code> to store memory readings each second.<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nsetInterval(async() => {\n  const info = await osu.mem.info();\n  await container.putRow(info.freeMemPercentage);\n}, 1000);<\/code><\/pre>\n<\/div>\n<h2>Get latest readings<\/h2>\n<p>The next step in creating our app is to return the latest readings. To do this, we&#8217;ll go back to our database file and create another function, <code>getLatestRows<\/code>. Again, this will be a higher-order function allowing us to pass the container instance neatly.<\/p>\n<p>In this function, we create a query for our GridDB container using the TQL syntax. This query will retrieve any entries where the timestamp is from the last 5 minutes.<\/p>\n<p>We&#8217;ll then process each returned row and return the data in a single array.<\/p>\n<p>This new method will be called from our <code>createContainer<\/code> method as well, providing another API.<\/p>\n<p><em>db.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst getLatestRows = (container) => async () => {\n  try {\n    const query = container.query(\n            \"select * where timestamp > TIMESTAMPADD(MINUTES, NOW(), -5)\"\n        );\n    const rowset = await query.fetch();\n    const data = [];\n    while (rowset.hasNext()) {\n      data.push(rowset.next());\n    }\n    return data;\n  } catch(err) {\n    console.log(err);\n  }\n}\n\nconst createContainer = async (store) => {\n  ...\n  return {\n    putRow: putRow(container),\n    getLatestRows: getLatestRows(container)\n  }\n}<\/code><\/pre>\n<\/div>\n<p>Back in our server file, we can call this new method within our Express route handler and return the data.<\/p>\n<p><em>server.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\napp.get('\/data', async (req, res) => {\n  const rows = await container.getLatestRows();\n  res.send(rows);\n});<\/code><\/pre>\n<\/div>\n<p>To test this you can use Curl again. You should see a block of data that is ready to be consumed by a frontend app.<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-sh\">\n$ curl http:\/\/localhost:3000\/data\n\n# [[\"2021-10-22T07:05:52.000Z\",57.53],...]<\/code><\/pre>\n<\/div>\n<h2>Serving an index.html file<\/h2>\n<p>Let&#8217;s now begin creating a frontend app to visualize our free memory data.<\/p>\n<p>We&#8217;ll first get our Express server to return an HTML document at the root path rather than a Hello, World message:<\/p>\n<p><em>server.js<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nconst path = require('path');\n\n...\n\napp.get('\/', async (req, res) => {\n  res.sendFile(path.join(__dirname, '\/index.html'));\n});<\/code><\/pre>\n<\/div>\n<p>We&#8217;ll now need to create the <em>index.html<\/em> file. You can use this basic HTML boilerplate.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">&lt;!doctype html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;meta charset=\"utf-8\"&gt;\n  &lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"&gt;\n  &lt;title&gt;Server Monitor&lt;\/title&gt;\n  &lt;meta name=\"description\" content=\"Node and GridDB server monitor\"&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<\/div>\n<p>I recommend you change your <code>npm start<\/code> script so that Nodemon will watch this HTML file as by default, it only watches JavaScript.<\/p>\n<p>Now, as you make changes to <em>index.html<\/em> in development, the server will automatically restart.<\/p>\n<p><em>package.json<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\n\"scripts\": {\n  \"start\": \"nodemon server.js -e js,html\"\n},<\/code><\/pre>\n<\/div>\n<p>With that done, you&#8217;ll need to kill your Docker container and restart it again using <code>docker-compose up --build<\/code>.<\/p>\n<p>Now, open your browser, and go to <em>http:\/\/localhost:3000<\/em>. You should see the HTML document loaded though there won&#8217;t be any content yet.<\/p>\n<h2>Creating the frontend app<\/h2>\n<p>We&#8217;re now going to add four scripts to our HTML document head: Moment.js, Vue.js, Chart.js, and VueChart.js. These are all required to display a time-series visualization.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">&lt;head&gt;\n    ...\n    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/moment.js\/2.29.1\/moment.min.js\"&gt;&lt;\/script&gt;\n    &lt;script src=\"https:\/\/cdn.jsdelivr.net\/npm\/vue@2.6.14\"&gt;&lt;\/script&gt;\n    &lt;script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/Chart.js\/2.7.1\/Chart.min.js\"&gt;&lt;\/script&gt;\n    &lt;script src=\"https:\/\/unpkg.com\/vue-chartjs\/dist\/vue-chartjs.min.js\"&gt;&lt;\/script&gt;\n  &lt;\/head&gt;<\/code><\/pre>\n<\/div>\n<p>In the document body, create a mount element for the Vue app with ID <code>app<\/code>. Then let&#8217;s create a script tag where we&#8217;ll declare our Vue app.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-html\">&lt;div id=\"app\"&gt;&lt;\/div&gt;\n&lt;script type=\"text\/javascript\"&gt;\n  new Vue({\n    el: \"#app\"\n  });\n&lt;\/script&gt;<\/code><\/pre>\n<\/div>\n<p>The first thing we&#8217;ll do in our app is retrieve the server monitor data in the <code>mounted<\/code> lifecycle hook using <code>fetch<\/code>. We&#8217;ll assign this to a data property <code>serverData<\/code> after mapping it to objects of <code>x<\/code> and <code>y<\/code> values.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nnew Vue({\n  el: \"#app\",\n    data: () => ({\n    serverData: []\n  }),\n  async mounted () {\n    const res = await fetch(\"\/data\");\n    const data = await res.json();\n    this.serverData = data.map(row => ({ x: row[0], y: row[1] }))\n  }\n});<\/code><\/pre>\n<\/div>\n<h2>Chart component<\/h2>\n<p>We&#8217;ll now declare a new Vue component <code>server-monitor<\/code>. This will extend the VueChartJs <code>Line<\/code> component. Give this component a prop <code>serverData<\/code> which we&#8217;ll pass in from the app shortly.<\/p>\n<p>In the <code>mounted<\/code> lifecycle hook we&#8217;ll create the config necessary for VueChart.js to display a nice visualization of our time-series data.<\/p>\n<p>For more information about configuring VueChart.js, see <a href=\"https:\/\/vue-chartjs.org\/\">the docs<\/a>.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\nVue.component('server-monitor', {\n    extends: VueChartJs.Line,\n    props: ['serverData'],\n    mounted () {\n      const chartData = {\n        labels: [],\n          datasets: [\n          {\n            label: 'Free Memory %',\n            backgroundColor: '#f87979',\n            data: this.serverData,\n            fill: false,\n            borderColor: 'rgb(75, 192, 192)',\n            tension: 0.1\n          }\n        ]\n      };\n      const options = {\n        responsive: true,\n        maintainAspectRatio: false,\n        scales: {\n          xAxes: [{\n            type: \"time\",\n            distribution: \"linear\"\n          }],\n          title: {\n            display: false\n          }\n        }\n      }\n      this.renderChart(chartData, options)\n    }\n  })<\/code><\/pre>\n<\/div>\n<p>Finally, we&#8217;ll declare the chart component in the app content, conditional on the server data being populated.<\/p>\n<p><em>index.html<\/em><\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-javascript\">\n&lt;div id=\"app\"&gt;\n    &lt;server-monitor v-if=\"serverData.length\" :server-data=\"serverData\" \/&gt;\n  &lt;\/div&gt;<\/code><\/pre>\n<\/div>\n<p>With that done, you should now see your server monitor rendering on the page:<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2021\/10\/server_monitor.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2021\/10\/server_monitor.png\" alt=\"\" width=\"2542\" height=\"826\" class=\"aligncenter size-full wp-image-27854\" srcset=\"\/wp-content\/uploads\/2021\/10\/server_monitor.png 2542w, \/wp-content\/uploads\/2021\/10\/server_monitor-300x97.png 300w, \/wp-content\/uploads\/2021\/10\/server_monitor-768x250.png 768w, \/wp-content\/uploads\/2021\/10\/server_monitor-1024x333.png 1024w, \/wp-content\/uploads\/2021\/10\/server_monitor-1536x499.png 1536w, \/wp-content\/uploads\/2021\/10\/server_monitor-2048x665.png 2048w, \/wp-content\/uploads\/2021\/10\/server_monitor-600x195.png 600w\" sizes=\"(max-width: 2542px) 100vw, 2542px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine. In this tutorial, we&#8217;ll create a server memory monitor for a Node.js server. This will take a reading of system memory every second and store it in a database. This data [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":27854,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[121],"tags":[],"class_list":["post-46671","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-29T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-13T20:55:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2021\/10\/server_monitor.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2542\" \/>\n\t<meta property=\"og:image:height\" content=\"826\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB\",\"datePublished\":\"2021-10-29T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:55:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\"},\"wordCount\":1384,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2021\/10\/server_monitor.png\",\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\",\"url\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\",\"name\":\"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2021\/10\/server_monitor.png\",\"datePublished\":\"2021-10-29T07:00:00+00:00\",\"dateModified\":\"2025-11-13T20:55:37+00:00\",\"description\":\"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2021\/10\/server_monitor.png\",\"contentUrl\":\"\/wp-content\/uploads\/2021\/10\/server_monitor.png\",\"width\":2542,\"height\":826},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb.net\/en\/#website\",\"url\":\"https:\/\/griddb.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT","description":"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.","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:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/","og_locale":"en_US","og_type":"article","og_title":"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT","og_description":"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.","og_url":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2021-10-29T07:00:00+00:00","article_modified_time":"2025-11-13T20:55:37+00:00","og_image":[{"width":2542,"height":826,"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/wp-content\/uploads\/2021\/10\/server_monitor.png","type":"image\/png"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"Written by":"griddb-admin","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB","datePublished":"2021-10-29T07:00:00+00:00","dateModified":"2025-11-13T20:55:37+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/"},"wordCount":1384,"commentCount":0,"publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2021\/10\/server_monitor.png","articleSection":["Blog"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/","url":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/","name":"Part 2 of Building a Frontend Dashboard: Create a Server Monitor with Vue, Node, and GridDB | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2021\/10\/server_monitor.png","datePublished":"2021-10-29T07:00:00+00:00","dateModified":"2025-11-13T20:55:37+00:00","description":"Many dashboard apps need to visualize time-series data to users. This data could be price information, web analytics, or anything else you could imagine.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/blog\/part-two-vuejs-dashboard\/#primaryimage","url":"\/wp-content\/uploads\/2021\/10\/server_monitor.png","contentUrl":"\/wp-content\/uploads\/2021\/10\/server_monitor.png","width":2542,"height":826},{"@type":"WebSite","@id":"https:\/\/griddb.net\/en\/#website","url":"https:\/\/griddb.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/griddb.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/griddb.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46671","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/comments?post=46671"}],"version-history":[{"count":1,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46671\/revisions"}],"predecessor-version":[{"id":51345,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/posts\/46671\/revisions\/51345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/media\/27854"}],"wp:attachment":[{"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/media?parent=46671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/categories?post=46671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/wp-json\/wp\/v2\/tags?post=46671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}