Skip to content

Time Series Data Service FAQs

Everything you every wanted to know about the Time Series Data Service and how to use it.

Home Knowledge Hub Proficloud.io Frequently Asked Questions Time Series Data Service FAQs

The Time Series Data Service offers several options for processing incoming values. It is important to note that the calculations must be adjusted in each widget.

Show simple calculation with a static value

Show multiple metric calculation

Show cumulative sum calculation

How can I calculate my incoming values with a static value (multiply, divide, sum, subtract)?

With the “Math” function in the Time Series Data Service, static values can be easily inserted into queries for calculation.

  1. Open the widget in which you want to use a static value for the calculation
  2. In the query view, navigate to the “SELECT” line and click on the “+” at the end of the line
  3. Select the “math” option here under “math”
  4. A function is now added to the “SELECT” line. You can use simple calculations here.

How can I use two or more incoming metrics to create a new metric (e.g. multiply, divide, sum, subtract)?

With the “Transform” function in the Time Series Data Service, different metrics can be calculated together to create a new metric for a widget. Please note, that the transform option is not available for all visualization options.

  1. Open the widget in which you want to calculate a new metric
  2. Switch to the “Transform” tab
  3. Select the “Add field from calculation” transformation
  4. Decide if you want to calculate based on a predefined option (Total, mean, max, min …) or simply select “Binary option”
  5. Select the queries you want to use and the calculation option
  6. Rename the new metric and optionally hide the “source metrics”

How can I add up the values of a day?

With the “cumulative_sum” function within a query, all values in a period can be added up to calculate a total value for this period.

  1. Open the widget in which you want to calculate the cumulative sum of a specific timerange
  2. In the query view, navigate to the “SELECT” line and click on the “+” at the end of the line
  3. Select the “cumulative_sum” option here under “Transformation”
  4. Change the timerange to the specific time range you need

You can add just about any image to your dashboard, including a logo. This allows you to make your dashboards look even more like your company.

Either watch the video below or follow the steps below.

  1. Open the dashboard where you want to add a logo (or image).
  2. Click on the symbol at the top right (graph with +) to add an empty panel.
  3. Click on “Add new Panel” in the new panel
  4. Change the general settings so that the background is transparent and delete the title from the “Panel Title” field
  5. Select the “Text” visualization on the right-hand side.
  6. Change the style to HTML instead of Markdown
  7. Now insert this snippet (pure HTML) into the text field:
    <img style="height:REPLACEHEIGHT;" src="REPLACESOURCE">
    and replace the source (online source of your logo) and the height of the logo
  8. Now click on Apply in the top right corner and then save your dashboard
  9. You can now set the size of the panel and move it to the position where you want to place it.

In principle, metrics are compressed after one year.

If you need the data in full resolution for a longer period than one year, please contact us! We will work out a solution with you so that you can use the data in full resolution even after one year.

Get in touch with us!

Are you interested in Smart Services Powered by Proficloud.io? Please do not hesitate to contact us. Also, if you have any suggestions or comments, just send us a message to inbox[at]phoenixcontact-sb.io and we will answer as soon as possible. 

In short: No, there is no limit to the number of metrics that can be sent to Proficloud.io and the Time Series Data Service.

The subscriptions that can be booked for the Time Series Data Service range from 50 metrics in the smallest package to 1500 metrics in the largest package. If you want to send more metrics to Proficloud.io and the Time Series Data Service for your company, please get in touch with us!

We will put together a customized package for you, with which you can use the required number of metrics on Proficloud.io in the Time Series Data Service.

The refresh rate in the Time Series Data Service can be set to 15 minutes as the shortest refresh rate in the free contingent; in the paid contingent, you can set the refresh rate to 5 seconds.

You can update the dashboard manually in both the free and paid versions of the Time Series Data Service, e.g. to view newly sent data immediately.

If the device is online on Proficloud.io in the Device Management Service and you have ticked the variables in PLCnext Engineer for Proficloud, but you still do not see any data, this may be due to another setting in PLCnext Engineer.

The variables must be declared as “OUT Port” for use on Proficloud.io.

Die Variablen müssen für die Nutzung auf Proficloud.io als "OUT Port" deklariert werden.

You can also find more on this topic here:

Basically, the User Management Service regulates the access rights to Proficloud.io. In the Time Series Data Service, these basic rules can be supplemented with additional rights assignments at dashboard or dashboard group level.

Out of the box, every user has access to all dashboards based on their role in the User Management Service. In other words, a user who is in an organization as a viewer will only see the data in the dashboards to which they have access through the User Management Service. As a viewer, they can view the data, but cannot make any changes. However, they can change settings such as the time period shown.

In the Time Series Data Service, it is possible to give a user access to entire dashboard groups or to individual dashboards in the “General” folder.

If user A has view rights to dashboard group 1, he can view all the dashboards in it, but cannot change them. User A can also be granted edit rights to another dashboard group and can therefore also change the dashboards (but always within the scope of the User Management Service; they do not have access to any other devices in the Time Series Data Service that they do not also have access to in the Device Management Service).

How to grant access to a group

  1. Navigate to all available dashboards
    Either via this link: https://tsd.proficloud.io/dashboards or via the four squares on the left-hand side by clicking on “Manage”
  2. Click on the group whose access rights you want to change
  3. You can now click on the “Permissions” tab
  4. If you want to grant certain people access to this group, first remove the “Editor” and “Viewer” roles. As an admin, you still have access to this group, but no one else will be able to see this group for the time being.
  5. Click on “Add Permission”
  6. Where the default value is “Team”, select “User”
  7. In the adjacent field, you can see all available users by clicking on the field.
  8. You can now select the rights to the right of “Can”. These are explained in the drop-down menu.

The rights that you distribute at group level are inherited by the dashboards that are in this group.

How to grant access to dashboards

Special access rights can be assigned to dashboards that are in the “General” group. Dashboards in other groups are defined by the group access rights.

  1. Navigate to all available dashboards
    Either via this link: https://tsd.proficloud.io/dashboards or via the four squares on the left-hand side by clicking on “Manage”
  2. Open the desired dashboard whose access rights you want to set.
  3. Click on the cogwheel in the top right-hand corner
  4. Navigate to the “Permissions” entry
  5. If you want to grant certain people access to this dashboard, first remove the “Editor” and “Viewer” roles. As an admin, you will still have access to this dashboard, but no one else will be able to see these dashboards for the time being.
  6. Click on “Add Permission”
  7. Where the default value is “Team”, select “User”
  8. In the adjacent field you can see all available users by clicking on the field.
  9. You can now select the rights to the right of “Can”. These are explained in the drop-down menu.
  10. Now save the dashboard to make the new access rights effective.

It is not possible to select two or more time periods with the main data picker in the top right corner. If you want to show different timeframes you can use the “Relative time” functionality in the query builder.

use of relative time in the time series data service

Different settings for the relative time

now-1h (Last hour)

This query selects data recorded in the last 60 minutes before the current time (Now).

now-6h (Last 6 hours)

This query selects data recorded in the last 6 hours before the current time (Now).

now-1d (Last day)

This query selects data recorded in the last 24 hours before the current time (Now).

now-7d or now-1w (Last week)

This query selects data recorded in the last 7 days before the current time (Now).

now/M (Current month)

This query selects data recorded in the last 30 days before the current time (Now). Note that this is an approximation for the current month, as months have varying numbers of days.

now/Y (Current year)

This query selects data recorded in the last 365 days before the current time (Now).

Now-1y (Last year)

This query selects data recorded in the year before the current time (Now).

d (Days), h (Hours), m (Minutes), and s (Seconds) as units:

You can also specify precise time ranges in days (d), hours (h), minutes (m), and seconds (s). For example, “Now-2d” would select data from the last 2 days before the current time.

Using relative time ranges allows you to dynamically respond to changes over time without manually adjusting queries. These relative time notations are particularly useful when visualizing real-time data or quickly switching between different time ranges.

Video on how to take a look at all months of 2023 in one dashboard

avg()

This calculates the average (mean) value of the data points within a given time window. For example, if you have temperature readings every minute, you could use avg() to find the average temperature over the last hour.

min()

This gives you the smallest value in the data series during the specified time window. If you’re monitoring server response times, min() would give you the lowest response time within a certain period.

max()

On the other hand, this function gives you the largest value in the data series within the time window. For instance, you could use max() to find the highest CPU usage over the past day.

sum()

This function adds up all the values in the data series within the specified time range. If you’re tracking the total data transferred by a network device, sum() would give you the cumulative data transfer in a specific time period.

count()

This simply counts the number of data points within the chosen time frame. It’s useful if you want to know how many events occurred within a certain time period, like the number of logins in the last 15 minutes.

last()

This gives you the value of the most recent data point in the selected time range. If you’re monitoring a sensor that reports its status, last() would provide the latest status update.

median()

The median is the middle value in a sorted dataset. It’s useful when you want to find the central tendency of your data while being less affected by extreme values, unlike the mean. For instance, you might use median() to find the median response time of a web server.

diff()

This calculates the difference between consecutive data points in the time series. It’s helpful for tracking how much values change from one point to the next. If you’re measuring the number of new user sign-ups, diff() could tell you how many new sign-ups happened in each time interval.

diff_abs()

Similar to diff(), this calculates the absolute difference between consecutive data points. It’s like taking the positive value of the difference, so negative changes become positive. Useful for tracking changes regardless of direction.

percent_diff()

This calculates the percentage difference between consecutive data points. It’s a relative measure of change and can help you understand the magnitude of changes in your data.

percent_diff_abd()

Like percent_diff(), this calculates the absolute percentage difference between consecutive data points. It’s useful for understanding relative changes without considering the direction.

count_non_null()

This counts the number of non-null (non-missing) data points within the chosen time range. It’s useful if you want to know how complete your data is during a specific period.

A

A = name of your query. You can also give it a more speaking name in the Query area of the panel.

5m,now

The Time Series requires you to have a period of time to evaluate if alerts need to be sent. This time period is the period over which you want to do calculations on, which is why many conditions have aggregate functions like AVGMAXDIFFLAST, etc.

So, when we say Query(A, 5m, now), it means that we evaluate the alert rule on Query A from 5m ago to now.  You can also set alert rules that say Query(A, 6m, now-1min) to account for a lag in data being inserted in your data source or network latency.

This is important, because if an alert condition uses Query(A, 5m, now) and there is no data available for nowNO DATA alerts will fire (i.e., there isn’t any data with which to evaluate the rule).

You’ll want to select a time interval to evaluate your aggregate function that’s greater (longer) than the time period in which you add new data to the graph that’s triggering your alerts.

Example: We scrape the database every 10 seconds. If we set an alert rule like Query(A, 5s, now), we’d end up getting NO DATA alert states constantly, because our data is not that fine grained.

If an alert rule has a configured For and the query violates the configured threshold it will first go from OK to Pending. Going from OK to Pending the Time Series Data Service will not send any notifications. Once the alert rule has been firing for more than For duration, it will change to Alerting and send alert notifications.

If you are sending 1/0 (boolean) values to Proficloud.io, you might face the situation, that in the Time Series Data Service you will get a 0.625 value instead of a 0 or a 1. You want to display either 0 of 1, that’s why the “mean” value of a metric is not the right setting.

You need to change the value of your metric to “last”. You can do this as shown in the video below.

  1. Open the dashboard with the graph panel that displays your boolean data
  2. In the row “SELECT” remove the “mean()” value
  3. Click on the “+” on the “SELECT” row and navigate to “Selectors” and click on last
  1. Open dashboard
  2. Click on [+] to add a new panel
  3. Blick on [Add an empty panel]
  4. Select the Imagelt visualization
  5. Copy the URL of the image you want to include in your dashboard
  6. Insert the URL into the input field “Image URL” in the display options
  7. Optional: Remove the background of the panel by selecting “Transparent” in the general settings of that panel
  8. Optional: Remove the panel title to have a standalone image
  9. Change the datasource to — Grafana — to remove the red error triangle at the top left area of the panel

How to add a external hosted image to a Time Series Data Service dashboard
  1. Open the dashboard you want to set as your home dashboard
  2. Mark it as favorite in the top bar of the dashboard
  3. Go to your settings (profile icon at the bottom left corner) and click on “preferences”
  4. Scroll down to the Home Dashboard area
  5. Select your new starred dashboard
How do I set an individual home dashboard in the Time Series Data Service

Prerequisites: The devices to be displayed in the map must have a location in the Device Management Service.

  1. Create a dashboard
  2. Adding the “Proficloud.io DMS Plugin” plugin
  3. Copy the UUID of the device that is to receive an individual link
  4. Scroll down in the right column and click on “+ Add link”.
  5. Inser UUID
  6. Name link
  7. Enter link destination (other URL, or URL of another dashboard)
  8. Save dashboard

Unfortunately, it is currently not possible to store a variable or a query as a Y-MAX value in the graph visualization. However, it is possible to achieve the same effect by using an invisible query that has the maximum value. This way the Y-axis is always set to the maximum of the query. The video below shows how this works.

Some organizations have premade templates. These are accessed by clicking the “Device Template” button.
Some organizations have premade templates. These are accessed by clicking the “Device Template” button.

You can see an overview of the different default templates we currently offer.

Select one of them to see what they look like. After you’ve selected a dashboard you can change the UUID of the device you’re looking at in the top left corner.

There you can see basic information about your devices and check if they are running. These premade templates can’t be edited or removed.

This article contains:
Select data
Select visualization
General options

To get started with creating your own dashboards, please click the small user icon in the bottom left corner, click the “Switch” button and then press the small “switch to” button right behind your email address.

From that point on, you’ve switched to your personal organization, which allows you to create your own private dashboards, which only you can access.

Once you switched to your own organization you can create new dashboards by selecting the [+] button in the left sidebar. This will create an empty dashboard.

A dashboard consists of panels, which can be arranged in a number of ways. A new panel can be added to the dashboard by clicking the [Add Panel] at the top of the screen.

Select data

To retrieve data from your devices you must create a query. The query is sent to our cloud databases and provides you with the resulting data.
There is a graphical helper you can use to built your query in a point-and-click fashion.

  1. Click on [+] symbol on the left side of your screen, then on [Dashboard]
  2. Click on [Add Query] to start creating your new dashboard
  3. Select your data source from the dropdown right next to “Query”
  4. Build your query using the graphical editor
  5. Start by selecting a UUID in the “FROM”-row with clicking on the [+] right next to “where”
  6. Now select one of your UUIDs with a click on [select tag value]
  7. In the “FROM”-row, click now on [select measurement] so select what data should be displayed in your dashboard
  8. In the “SELECT”-row you now can change the field of the data inside the graph with clicking on the [+] next to “mean”
  9. In the “GROUP BY”-row you can set the interval of the data inside the graph
  10. You can give your data a new alias, with typing in a name in the row “ALIAS BY”
  11. If your data is written in a smaller frequency than in the “GROUP BY”-row, you can set it here
    If there is anything wrong with your query, check the red exclamation mark at the top left of your panel
Creation of a custom dashboard in the Time Series Data Service of the Proficloud.
Creation of a custom dashboard in the Time Series Data Service of the Proficloud.

This is the easiest way of visualization, what you select depends on what you want to see. The best way to learn how the methods work is to try them out.

Select visualization

Click on the graph at the left side of the panel you worked with so far
This tool enables you to personalize the graphic. Click on the box [Graph] next to Visualization

Now you could choose which visualization you want to have for your measurement. There are a few visualization options that can be chosen from. It should be noted that not every visualization is suitable for every type of data.

What you see depends on what you select. The best way to learn how the methods work is to try them out.

Visualization possibilities inside the time series data service of the Proficloud.

You can also add new visualization option using plugins or remove old ones you don’t need.

After Choosing a Visualization you can edit it to the extend you need to. Every Visualization has different settings ranging from changing the name to visualizing your data in different ways.

Options of the visualization of graphs inside the time series data service in the Proficloud

As an example, here you see the options for the Graph Visualization.

Now you can edit the visualization to the format you need. You could change the “Draw Mode” from Line to Bar, fill gaps with data, change the unit or scales of axes.
Just by trying the different type of options, you should get a greater understanding on how to make dashboards and personalize them.

General Options

In the box next to “Title” you can select the name of your Panel.

The option “Transparent” gives you the choice between a transparent and a nontransparent panel.

General options in custom dashboards inside the time series data service of the Proficloud

If you want, you can add a description, it supports markdown and links.

Exporting data from the Time Series Data Service as a CSV file is very simple.

Open any dashboard in which you can find a panel with the corresponding data. If you have not yet created your own dashboards, you can also use the Device Template.

Navigate to the panel with the data (metric) you want to export. Here, click on the name of the panel to open the context menu. Here, click on “Inspect” and then on “Data”.

Here you can export the data as a CSV file. The data displayed will always be exported, so if you want a different time period than the one initially set, you must change the time period before exporting.

Please note: If you export data in this way, you can export up to 5000 data points from one device. If you require a larger amount of data, please contact us – we will then provide you with a CSV file containing the required data.

We need the following information for this:

  • Timeframe
  • UUID of the device
  • Metric name(s)

Before we provide you with the data, we check the authorisations so that only authorised persons receive this data.

You can send us an e-mail (inbox[at]phoenixcontact-sb.io) or use the contact form below.

    Your contact details




    Fields marked with an asterisk (*) are required.

    The template dashboards can not be modified. Every modification you make here, will be revoked after a reload of the page.

    You can export the templates and import them as your own custom dashboard, where you can also apply changes.

    Our cloud system delivers data to your browser where the data is rendered and displayed. We limit the maximum number of data points for each query to 20000 points. Please note, that querying more data points for a single query is not providing much information, because your screen resolution likely does not have the resolution to display all of the data anyway. The limitation keeps processing time in the browser in check and results in a more snappy response of the user side.

    If you want to view a larger time range, where you would end up with more than 20000 data points, we recommend you have a look at the grouping and aggregation parameters for the queries. Our template dashboards do this by default. You can choose a grouping interval to suit your needs, but it usually suffices to use the “$__interval” range. This will take the selected time range, your screen resolution and size of the panel into account and our database will aggregate the data for you. You can choose different aggregation options through the query editor. The benefit of this is, that the load is shifted to our cloud system and the amount of data which must be transferred to your browser is reduced. This also results in much smaller workload for your browser resulting in a better user experience. Have a look at the following screenshot for an example:

    Aggregation and grouping options

    Time Series Data Alerting allows you to receive notifications of certain threshold violations in the Time Series Data Service. You can also receive these messages when you are not actively working in the Time Series Data Service, for example, by email or messenger.

    You can create alerts so you get notifications when a certain rule is fulfilled, for example you could get an email when your device’s temperature is above 64 degrees.

    1. Navigate to the panel you want to add or edit an alert rule for, click the title, and then click [Edit].
    2. On the Alert tab, click [Create Alert]. If an alert already exists for this panel, then you can just edit the fields on the Alert tab.
    3. Fill out the fields.
      1. Name: Enter a descriptive name. The name will be displayed in the Alert Rules list.
      2. Evaluate every: Specify how often the scheduler should evaluate the alert rule.
      3. For: Specify for how long the query needs to violate the configured thresholds before the alert notification triggers
    4. Now choose your conditions, specify a query
      1. When: Controls how the values for each series are reduced to a value that can be compared against the threshold. Click on the function to change it to another function.
      2. Of: Specify a time range. The letter defines what query to execute from the Query tab. “(A,5m,now)” means 5 minutes ago to now. You can also do ”(A,10m,now-2m)” to define a time range that will be 10 minutes ago to 2 minutes ago.
      3. Is Above: Defines the type pf threshold and the threshold value. You can click to change the type of threshold.
    5. You can now set the ways of how you want to be notified in the “Notifications” area.
      1. With a Click on the [ + ] right next to “Send to” you can chose a notification way
      2. Fill in the message you want to get in case a threshold is violated.
      3. Tags: Specify a list of tags to be included in the notification
    1. Navigate to the panel within your dashboard using the appropriate alert.
    2. Click the name of the panel, and click [Edit].
    3. Click on the “bell” on the left side of the setting options to get to your configured alerts.
    4. Click [Delete] in the upper right corner of the setting area.
    5. Confirm the deletion with a click on [Delete] – The Panel will still be available you are only deleting the alarm.
    1. Open the Time Series Data Service and navigate to the “Notification channels” with a click on the “bell” in the left side navigation
    2. Click on [New channel] to set up a new notification channel.
    3. Here you have to fill in some settings:
      1. Name: Enter a descriptive name, the name will be displayed when you create a new Alert rule and choose a notification
      2. Type: Choose how the notification should be sent, for example Email, Slack, Microsoft Teams …
      3. Default:  Use this notification for all alerts
      4. Include Image: Captures an image and include it in the notification
      5. Disable Resolve Message: Disable the resolve message [OK] that is sent when alerting state returns to false
      6. Send reminders:  Send additional notifications for triggered alerts

    As a reminder you can hover over the “i” symbol to receive more information

    (optional): to test if the notification gets send to you click “Send Test” on the bottom.

    The times of the data sent by the device must be sent in the UTC format. For this purpose the hardware clock must be set to UTC so that the values get the correct time stamp.

    Because the data points that are uploaded have a certain resolution. In the end it’s a group of single data points. You can change the way it’s displayed in the visualization possibilities of the graph. Set Null value on the very right to “connected”.

    If the “Evaluate every” and the “For” time have the same value, the alert may not be triggered until after the second cycle. This can be changed if the “For” value is set to a different value (e.g. 30s).

    If the "Evaluate every" and the "For" time have the same value, the alert may not be triggered until after the second cycle.
    If the “Evaluate every” and the “For” time have the same value, the alert may not be triggered until after the second cycle.

    If you want to show average values in the Time Series Data Service, for example, you must specify from which group of data points this should be done. By default, the function is set to “Group by Time Period”, so you can start directly.