Send telemetry
This page describes StackState version 4.1.
The StackState 4.1 version range is End of Life (EOL) and no longer supported. We encourage customers still running the 4.1 version range to upgrade to a more recent release.
Overview
StackState can either pull telemetry from a data source or can receive pushed telemetry. Pushed telemetry is stored by StackState, while pulled telemetry is not. Pushed telemetry is stored for the duration of the configured retention period. This page describes how telemetry can be pushed.
There are several ways to send telemetry to StackState. A large number of integrations are provided out of the box that may help you get started. If there is no out of the box integration you can send telemetry to StackState using either HTTP or the StackState CLI.
Sending telemetry over HTTP
StackState's receiver API is responsible for receiving both telemetry and topology. By default the receiver API is hosted at https://<baseUrl>:<receiverPort>/stsAgent/intake?api_key=<API_KEY>
. Both the base URL and API_KEY are set during installation. For details see:
Telemetry is sent to the receiver API via HTTP POST and has a common JSON object for all messages. One message can contain multiple metrics and multiple events.
Note: Depending on your StackState configuration, metrics or events that are too old will be ignored.
Metrics
Metrics can be sent to the receiver API using the metrics
property. Every metric has a name
, timestamp
, value
, hostname
, type
and optionally a set of tags
.
Example of a single metric:
Multiple metrics can be sent in one message. The timestamp
and value
of the metric is what is used to plot the metrics as a time series. The name
and tags
can be used to define a metric stream in StackState.
curl example:
You can also send metrics to StackState with the CLI metric send
command.
Metric names cannot start with any of the following prefixes:
host
name
timestamp
timeReceived
labels
tags
values
Events
Events can be sent to the receiver API using the events
property. Every event has a name
, timestamp
, and optionally msg_title
, msg_text
, tags
and source_type_name
.
Example of a single event:
Multiple events can be sent in one message. Any of an events' properties can be used to define an event stream in StackState.
curl example:
You can also send events to StackState with the CLI event send
command.
Event names cannot start with any of the following prefixes:
host
name
title
eventType
message
timestamp
timeReceived
labels
tags
Last updated