Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create a time-series definition in MetricBase

Specify the metric that you want to store, how often to collect it, and how long to store it in MetricBase.

Before you begin

Procedure

  1. Navigate to MetricBase > Time Series Metrics.

  2. Select New.

  3. On the form, fill in the fields.

  1. Select Submit.

Result

You've created a time-series specification for a metric that you want to track.

What to do next

Sample the data according to the time-series specification and send it from an instance to the MetricBase database server.

Use the REST or JavaScript APIs to send the data to the MetricBase database at the rate that is prescribed by the time-series definition. See Developer resources.

Important: Send the data at the rate that the time-series definition prescribes. If you send the data at a different rate or for a different duration, you receive an error. Make sure to aggregate the data according to the time-series metric definition. Also, the MetricBase database only stores values of data type float.

sndocs is an independent community mirror and is not affiliated with or endorsed by ServiceNow.

ServiceNow, the ServiceNow logo, Now, and other ServiceNow marks are trademarks and/or registered trademarks of ServiceNow, Inc., in the United States and/or other countries. Other company and product names may be trademarks of the respective companies with which they are associated.

© 2026 ServiceNow, Inc. All rights reserved.

Documentation content is redistributed under the Apache License 2.0 from the ServiceNowDocs repository.

FieldDescription
LabelIntuitive name for the Metric field name. For example, altitude could be the label for the metric field name, mb-altitude.
Table nameName of the table to add the metric to in the MetricBase database. For example, in the MetricBase Demo, the mb\_drone table stores the drone data. Each column in the table is a different metric, for example, altitude, length, and speed.
Metric field nameName of the time-series metric that records. For example, mb-altitude. You can think of it as the name of a column in the MetricBase database table.
Retention policySampling frequency and how long MetricBase keeps the values in the database. You cannot customize the value. For a definition of the values, click the magnifying glass and then a policy. The coarser the sampling rate, the less data that stores. Use the coarsest sampling rate that works for your dataset. For example, do not collect data every minute if collecting it once an hour suffices. See MetricBase retention policies for a description of the policies you can select.
Retention policy aggregatorOperator that aggregates the data in a sampling period. For example, last, minimum, maximum, and average.
Display value aggregatorThe aggregation method in use when using `.list` where <table-name> is a table in the MetricBase database. This value is unrelated to the retention policy. For a definition of the options, see MetricBase transforms.
Display value aggregate durationDuration that is used to calculate the aggregation only when using the list view. For example, `.list` where <table-name> is a table in the MetricBase database. This value is unrelated to the retention policy.
Subject fieldYou can select a unique table column as your subject for the metric. The unique column must be designated on the table before you select it. For example, if your metric tracks temperatures in different houses, you can make the house address column the subject of your metric. The house address column on your table must be unique before you set the subject field.Note: The sys_id column is the default unique column.
Data TypeYou can specify the data type of the subject field.