Identifying Time Series Data 
Tags: data, events, timeseries, cloud
Published: 2021-07-16 16:16:54

---
title: Identifying Time Series Data 
published: true
description: Event data? Time series data? Work out what you have so you can chooes the right platform
// canonical_url: https://aiven.io/blog/time-series-or-event-data-get-less-confused#
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/umgzrglwyhp1ev5ouenu.png
tags: data, events, timeseries, cloud
---

One key use case for Aiven for M3 is for handling the monitoring data from other systems. In this post you will do just that, by setting up a PostgreSQL service and collecting metrics from it using M3. To finish the picture, Grafana is used to inspect the data you collect.

## Start with something to monitor

Start with a PostgreSQL service. It doesn't matter what you choose here since this service isn't going to do any important work, it's merely an exhibition piece to collect metrics from (sorry, PostgreSQL!).

![Screenshot of creating a PostgreSQL service in the Aiven console](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ciq2g0e8bot3suae5076.png)

With a PostgreSQL service running, you can start to collect metrics from it.

## Collect metrics with Aiven for M3

From the PostgreSQL service overview page, configure the metrics integration with a new M3 service:

* Choose "Manage integrations"

* Locate the one for sending metrics (not the receiving one), and chose "Use integration"

* When prompted, create a new M3DB service, and configure it to your liking. I usually use the same cloud region as the thing I'm monitoring.

With PostgreSQL now having its metrics collected and sent to M3, your next step is to add the dashboard integration so you can see the data.

## Visualize the data with Grafana

From the M3 service overview page, let's set up a Grafana dashboard:

* Choose "Manage integrations"

* Select "Dashboard" and then "Use integration"

* Choose a new Grafana service, and again, configure the service to suit your needs.

Once created, you can access Grafana by opening its Service URI in a new browser tab, and logging in with the User and Password listed on the service overview page. To get you started, Aiven includes a default dashboard that shows some of the most common metrics.

To access the pre-built dashboard:

* From the left hand menu, go to the Dashboards section (4 squares) and choose "Manage"

* Click on the dashboard called "Aiven PostgreSQL - [database name] - Resources"

You now have a clear view of your PostgreSQL database health.

![Screenshot of the default Grafana PostgreSQL panel](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/re4hzyyrvb4lvuz3ygul.png)

> Click the dashboard settings and choose "Save As" to use this dashboard as a template for your own that you can make changes to. The default one gets reset to its original state at intervals.

## Integrations in action

The integrations are now in place, and you can see both the data coming and the dashboard integration from the M3 service overview page.

![Aiven Console showing that this service receives metrics and has a dashboard integration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mp3i4wvj9gonfk3b2zyw.png)

Following the same approach, you can add metrics integrations to all of your other Aiven services and send data to the M3 database you created. You can also write metrics from non-Aiven services to M3 to bring all the data you need into one place, and to visualize it with Grafana.

## Further Reading

* Bring metrics from other services into M3 with our [article on using Telegraf with M3](https://help.aiven.io/en/articles/5161440-writing-metrics-to-m3-using-telegraf)
* Build better dashboards with these [tips from Grafana](https://grafana.com/docs/grafana/latest/best-practices/best-practices-for-creating-dashboards/)
* Learn more about [Aiven service integrations](https://grafana.com/docs/grafana/latest/best-practices/best-practices-for-creating-dashboards/)