# Telemetry streams

## Overview

A telemetry stream is a real-time stream of either metric or log data coming from an external monitoring system.

### Metric streams

Metric, or time series, data are numeric values over time. A metric can represent any kind of measurement, like a count or a percentage.

### Log streams

A log entry is a (JSON style) data object with some properties. Each log entry may represent an event or even some state information coming from an external system. StackState can synchronize the checks of external systems, such as OpsView or Nagios. These systems report check changes to StackState in a log stream. These log entries are then checked for their data by a check, which in turn can translate into an element state change in StackState.

## Telemetry stream providers

Telemetry streams in StackState contain log or metrics data that has been retrieved from an external data source. Telemetry can be pushed to StackState by the StackState Agent or pulled directly from the data source by a StackState plugin.

## Add telemetry streams

In StackState, telemetry streams need to be linked to elements (components or relations). Once a telemetry stream has been linked to an element it can be used as an input for the element's health checks. Read how to [add a telemetry stream to an element](/5.1/use/metrics/add-telemetry-to-element.md).

{% hint style="success" %}
Telemetry streams can also be defined in templates and attached automatically to elements when they're imported by a synchronization. Read how to [add telemetry during topology synchronization](/5.1/configure/telemetry/telemetry_synchronized_topology.md).
{% endhint %}

## See also

* [Add a health check based on telemetry streams available in StackState](/5.1/use/checks-and-monitors/add-a-health-check.md)
* [Add a telemetry stream to an element](/5.1/use/metrics/add-telemetry-to-element.md)
* [Use templates to add telemetry streams to your own integrations](/5.1/configure/telemetry/telemetry_synchronized_topology.md)
* [Check functions](/5.1/develop/developer-guides/custom-functions/check-functions.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://archivedocs.stackstate.com/5.1/use/metrics/telemetry_streams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
