Skip to content

External metrics

A Signal can read numeric measurements from your public HTTPS API. Monitors linked to that Signal evaluate the measurements with numeric rules. Configure the source once on the Signal; each linked Monitor uses that source with its own rules. Your API keeps the measurement history. SignalSitter reads it when an evaluation or preview needs it; it does not store the returned measurements.

If your measurements already live in ClickHouse, connect a ClickHouse query directly. That path does not require you to build an API that maps query rows to the HTTP format below.

Choose Signals → New signal → Read from an HTTP source, or open a Signal’s Settings tab and choose Custom source → HTTP API. An existing Monitor has a subtle Custom source link at the bottom of its waiting-for-data guidance. Its Settings tab also has a source link. Either Monitor link opens the editor in place, so closing it returns you to the same Monitor view.

Starting from New signal creates the Signal first, then opens its source settings. If you already created a numeric Monitor, follow Custom source on its Send data or Settings tab to open the linked Signal’s editor.

The editor has two steps:

  1. Request: Enter a public HTTPS endpoint. Choose GET or POST, authentication, and any extra request headers. Set the maximum age of a latest sample. SignalSitter derives the read interval from linked Monitors.
  2. Test and discover: Send one real request. SignalSitter checks the response against its fixed format, identifies whether it is a latest sample or window aggregate response, and lists the measurements the endpoint returned. When the sample is accepted for the requested window, save the source here. You do not have to enter metric keys or units by hand.

Request step of the HTTP source editor with an HTTPS endpoint, bearer authentication and an additional header

Successful connection test showing the window response format and two discovered measurements

The connection test uses the same outbound network restrictions and response size limit as scheduled reads. Testing does not activate a source. If the response is stale, in the future, or outside the requested window, the editor explains the result and asks you to correct the endpoint and test again. Saving a new source immediately turns off that Signal’s missing-publish alert. Linked Monitors can still alert from their numeric rules and their own missing-data policies.

The source credential and extra header values are entered in the signed-in dashboard, encrypted when saved, and never shown again. The editor shows configured header names and masked values. When editing a source on the same HTTPS host, leave masked values unchanged to keep the saved credentials, or replace individual values. A different host requires new credentials. MCP tools can guide setup and inspect a source, but their arguments and responses do not carry credentials.

After setup, the Signal’s Settings tab shows a compact source summary and an Edit action. Its Send data tab points to the source settings instead of showing instructions to publish readings. The same is true of a linked Monitor’s Send data tab. Choose Pause source to stop scheduled reads without deleting the connection. The editor’s Delete source action returns the Signal to published readings.

Signal Data and Monitor Overview request their selected time range from the source. The rule workbench also reads live source windows when it previews a rule. Their charts show a numeric scale and timestamp/value details on hover; the Monitor Overview also lists the returned windows in a table. These reads use the same authentication and public HTTPS safety checks as scheduled evaluation. There is no monthly request quota for source reads. SignalSitter does not turn an external response into a published heartbeat or store a copy of its measurements.

A Signal Data view showing measurements read from a custom source for the selected time range

A window-aggregate endpoint can return one aggregate for the requested range. Preview requests carry responseMode=range as a GET query parameter or "responseMode": "range" in the POST JSON body; scheduled reads do not. To fill a chart or rule-workbench preview with individual windows in one request, return the range format below with up to 32 ordered windows. Each window has the same measurement fields as a single window response. The workbench uses at most 32 recent evaluation windows from a window source. A latest-sample source can show only a sample whose timestamp belongs to the requested completed window; it cannot recreate older samples it no longer serves. If the source cannot provide a requested historical window, the preview reports it unavailable rather than treating it as zero.

{
"version": 1,
"mode": "range",
"windows": [
{
"windowStartedAt": "2026-11-11T12:00:00Z",
"windowEndedAt": "2026-11-11T12:05:00Z",
"measurements": [
{ "key": "success_rate", "unit": "%", "metricType": "gauge", "count": 2, "sum": 160, "avg": 80, "min": 80, "max": 80, "last": 80 }
]
}
]
}

Every read includes the completed time range, whether the endpoint returns a latest sample or window aggregates. A GET request has windowStartedAt and windowEndedAt UTC query parameters. A POST request has a fixed JSON body with those two fields:

{
"windowStartedAt": "2026-11-11T12:00:00Z",
"windowEndedAt": "2026-11-11T12:05:00Z"
}

The range is half open: it includes the start and excludes the end. A window aggregate endpoint must return aggregates for exactly that range. This lets SignalSitter request a missed window again during its bounded catch-up period. A latest sample endpoint may ignore the range in the request, but its returned observation still has to fall inside that completed window. Enter a URL without credentials, query parameters, or a fragment; SignalSitter adds the window parameters itself.

The default read timeout is 30 seconds and the default response allowance is 128 KiB. Operators can change them through the processor’s SIGNALSITTER_EXTERNAL_SOURCE_TIMEOUT_MS and SIGNALSITTER_EXTERNAL_SOURCE_MAXIMUM_RESPONSE_BYTES environment settings, then restart the processor. A read that times out remains unavailable for evaluation; it is never interpreted as a zero measurement.

For a latest sample response, the returned observation must be timestamped inside the completed due window and be no older than the configured maximum age. An API that always stamps its response with the time of the request should provide window aggregates instead.

Choose no authentication, a bearer token, Basic authentication, or a named custom authentication header. The bearer token field accepts the token alone or a pasted Bearer prefix and sends exactly one prefix. You can also add a small, bounded set of other headers. SignalSitter sets Accept: application/json and, for POST, Content-Type: application/json. It does not follow redirects. The endpoint must be public HTTPS; private-network destinations are refused. Request method, authentication, and header names appear in saved settings, while secret values do not.

The endpoint returns JSON in one of two formats. SignalSitter discovers the format and measurement declarations from a successful test response. Keep the measurement keys, units and types stable after saving; a scheduled response with a different set is rejected rather than silently changing Monitor rules.

{
"version": 1,
"mode": "latest",
"observedAt": "2026-11-11T12:04:30Z",
"measurements": [
{ "key": "success_rate", "unit": "%", "metricType": "gauge", "value": 80 },
{ "key": "latency_ms", "unit": "ms", "metricType": "gauge", "value": 125 }
]
}

observedAt is the time of the measurement, not the response time. Values must be finite numbers. A later response cannot fill a missed window. Latest mode supports explicit numeric rules; learned and window detectors need window aggregates.

{
"version": 1,
"mode": "window",
"windowStartedAt": "2026-11-11T12:00:00Z",
"windowEndedAt": "2026-11-11T12:05:00Z",
"measurements": [
{
"key": "success_rate",
"unit": "%",
"metricType": "gauge",
"count": 2,
"sum": 160,
"avg": 80,
"min": 80,
"max": 80,
"last": 80
}
]
}

Each measurement needs a positive count and consistent sum, avg, min, max, and last values. count means the number of values used for that measurement. It is not a check-in or event count. Learned detectors, where available, build readiness from successfully evaluated due or catch-up windows; setup does not replay old source history.

The Signal’s source summary shows the last successful read and the latest safe result code. Open source settings to test the connection again. The read receipt records the requested window, evaluation and fetch times, attempts, bytes, and latency without exposing credentials or header values.

Invalid JSON, stale data, a different window, authentication failure, a network failure, and a timed-out request leave the metric unobserved. None is treated as zero or as a threshold breach. A Monitor’s missing-data policy can act when evidence is absent, and the source result remains visible for diagnosis.

The REST API can inspect and preview a saved source under its Signal’s /external-source route. Configuration updates use the Signal’s current version and the same authorization as other Signal settings; see the REST API guide.