OpenTelemetry (OTLP) Integration Guide
Export machine values as OpenTelemetry metrics and plant events as OpenTelemetry log records, to a Collector or straight to an observability backend.
- Protocol
- OTLP/HTTP, protobuf, gzip
- Signals
- Metrics (gauge, sum) · Logs
- Operations
- Export Metrics · Export Logs
- Transport
- HTTP or HTTPS, port 4318 on a Collector
Overview
OpenTelemetry is the open standard for telemetry, and OTLP is its wire protocol. One OTLP connection reaches an OpenTelemetry Collector, which can forward to anything, or a backend that takes OTLP directly: Grafana Cloud, Honeycomb, New Relic, Dynatrace, Elastic, Datadog, or Prometheus's own OTLP receiver. The connector sends:
- Export Metrics: machine values as data points of a gauge (a reading such as a temperature) or a sum (a counted total such as parts made), with a unit and attributes.
- Export Logs: alarm texts and machine events as log records with a severity and attributes.
Every export carries the resource attribute service.name (the connection's Service Name) and the attributes you add, so the backend can tell this MaestroHub apart from others.
A bad reading never becomes a number. A value whose quality is bad is exported with OpenTelemetry's no recorded value flag and no number, so a dashboard shows a gap instead of a wrong figure.
At least once. OTLP has no way for a backend to drop a repeat. When the answer to an export is lost (a timeout, a dropped link) the export may have landed, and sending it again can make a second copy in the backend. With store-and-forward on, exports made while the endpoint is unreachable are buffered and delivered when it returns; each log record carries the write's key as the attribute maestrohub.write_key, so a consumer can drop a copy.
This connector exports. MaestroHub does not receive OTLP from other sources in this version.
Prerequisites
- An OTLP/HTTP endpoint: a Collector with the
otlpreceiver's HTTP protocol on (port 4318), or your vendor's OTLP URL. OTLP over gRPC (port 4317) is not supported. - Network access from MaestroHub to that endpoint.
- The vendor's credential, when it asks for one: a token, an API key header, or a user and password.
Connection Configuration
Navigate to Connections → New Connection → OpenTelemetry.


The Connection tab: the endpoint and what every export says about its source
Connection
| Field | Required | Description |
|---|---|---|
| Endpoint | Yes | The OTLP/HTTP base URL, e.g. http://otel-collector.plant.local:4318, or the vendor's (Grafana Cloud: https://otlp-gateway-<region>.grafana.net/otlp). Metrics go to /v1/metrics and logs to /v1/logs under it; a URL pasted with one of those paths is cut back to the base. |
| Compression | No | gzip (the default; every OTLP receiver takes it) or none. |
| Service Name | No | The service.name resource attribute of every export, maestrohub by default, e.g. maestrohub-izmir. |
| Resource Attributes | No | Further resource attributes as a JSON object, e.g. {"deployment.environment": "production", "site": "izmir"}. Text, numbers or true/false, at most 32. |
| Connect Timeout | No | How long the connection check may take, 10s by default. |
Authentication
| Field | Used with | Description |
|---|---|---|
| Authentication | none for a Collector without auth, basic, bearer or apiKey. | |
| Username, Password | basic | Grafana Cloud: the OTLP instance ID and an access-policy token. The password is stored encrypted. |
| Bearer Token | bearer | Sent as Authorization: Bearer. Stored encrypted. |
| API Key Header, API Key | apiKey | The key is sent in the header you name: Honeycomb x-honeycomb-team, New Relic api-key, Datadog dd-api-key, Dynatrace Authorization with the key written as Api-Token <token>. Stored encrypted. |
Only the chosen mode's fields are sent; values left in another mode's fields are kept but never used.
TLS
| Field | Description |
|---|---|
| CA Certificate (PEM) | The CA that signed the endpoint's certificate, when it is not publicly trusted. |
| Client Certificate (PEM), Client Private Key (PEM) | For mutual TLS, when the endpoint asks for a client certificate. The key is stored encrypted. |
| Server Name | The name to check the certificate against, when it differs from the host in the Endpoint. |
| Skip Certificate Verification | Accept any certificate. For testing only. |
How the connection is checked
Test Connection, and the health check while the connection runs, send the endpoint an empty metrics export (an endpoint that takes no metrics gets an empty logs export instead). An empty export stores nothing. A wrong credential, an endpoint that takes neither signal, or a certificate MaestroHub does not trust shows as a failed connection at once.
Function Builder
After saving the connection, open its Functions tab → New Function and choose Export Metrics or Export Logs.


Export Metrics sends data points; Export Logs sends log records
Export Metrics
| Parameter | Required | Description |
|---|---|---|
| Metric Name | Yes | The metric's name, e.g. line3.oven.temperature: letters, digits and . _ - /, starting with a letter, at most 255 characters. A value that carries its own name uses that instead. |
| Metric Type | No | gauge (the default) for a reading; sum for a counted total. |
| Temporality | No | For a sum: cumulative (the default) when each value is the running total, delta when it is the amount since the last export. A gauge has none: cumulative is ignored there and delta is refused. |
| Only Increases | No | For a sum whose total never goes down, such as a parts counter. A negative value is then refused. |
| Unit | No | The unit in UCUM form, e.g. Cel, bar, kW.h, 1 for a count. |
| Attributes | No | Attributes of every data point as a JSON object, e.g. {"line": "line3", "machine": "((machine))"}. At most 16, each value at most 256 characters. |
| Values | Yes | What to export (below). |
| Timeout | No | Bound on this call, 30s by default. |
Values takes:
- a number, or
true/false(1 and 0): one data point at the moment the pipeline produced the write; - an object
{"value": 21.5, "quality": "good", "timestamp": "2026-11-18T09:00:00Z", "attributes": {"machine": "p1"}, "name": "line3.oven.temperature"}: one point with its own quality, time (timestamporsourceTimestamp, RFC 3339 or Unix epoch seconds), attributes (added to the function's, and winning on the same name) and name. Onlyvalueis needed. With"quality": "bad"the point is exported with no recorded value;goodanduncertainare exported as plain points (OTLP has no quality, and the connector adds no attribute for it, which would split the series); - an array of those: one point per element in one request, at most 10,000. Give each item of a window its own
timestamp: items without one all take the produce time, and two items with the same name and attributes at the same time are refused, with nothing sent.
Attributes make series. A backend keeps one series per metric name and distinct attribute set. A templated attribute value must come from a small set (a line, a machine, a shift); an order number, a serial number or a time in an attribute creates a series per value, which every metrics backend charges for and slows down on. MaestroHub adds no attribute of its own to a data point.
A ((parameter)) in any field becomes a function parameter, filled from the pipeline at run time:


An Export Metrics function whose value and machine come from the pipeline
The result is {"dataPoints": <n>, "noValuePoints": <bad-quality points>}.
Export Logs
| Parameter | Required | Description |
|---|---|---|
| Body | Yes | Text is one record; a JSON object is one record whose fields are kept as a structured body; a JSON array exports one record per element, at most 10,000. |
| Severity | No | TRACE, DEBUG, INFO (the default), WARN, ERROR or FATAL, for every record of the call. |
| Attributes | No | Attributes of every record, e.g. {"machine": "((machine))", "order": "((orderId))"}. At most 32. |
| Time | No | When the events happened: an RFC 3339 timestamp or Unix epoch seconds. A number too large to be seconds is refused rather than read as milliseconds. Empty: the moment the pipeline produced the write. |
| Timeout | No | Bound on this call, 30s by default. |
The result is {"logRecords": <n>, "timestamp": "<the records' time>"}.
What happens when the endpoint refuses
| Answer | Node | Retried |
|---|---|---|
| Accepted | Succeeds | No |
| Accepted in part (partial success) | Fails, naming how many were refused and the endpoint's reason; the others were stored | No: OTLP says a partial success must not be sent again |
| 400, 403, 413, 415 | Fails with the endpoint's reason and what to change | No |
| 500 and other 5xx except 502, 503, 504 | Fails as retryable (see below) | By the platform |
| 401 | Fails as retryable (a token can be refreshed); at Test Connection it fails at once | By the platform |
| 404 | Fails as retryable (a deploy in progress); at Test Connection it fails at once | By the platform |
| 429, or 503 with Retry-After | Waits as long as the endpoint asked | By the platform |
| 502, 503, no answer | Fails as retryable; the export may have landed | By the platform: a copy is possible |
| 504 | Fails as unknown: the gateway passed the export on and the collector behind it may have stored it | Only when the operation is declared safe to repeat; store-and-forward holds it and does not resend it on a timer |
OTLP/HTTP says a client must not retry statuses other than 429, 502, 503 and 504. MaestroHub follows its own rule for every connector instead: a 500 means the export may have been taken, so it is retryable, and with store-and-forward a copy is possible. MaestroHub never re-sends an export itself; with store-and-forward on, retryable exports are buffered and delivered when the endpoint takes them.
Pipeline Integration


The OpenTelemetry Export Metrics node with its connection and function
The two functions become pipeline nodes, OpenTelemetry Export Metrics and OpenTelemetry Export Logs, under the database group of the node library. Their outputs are described on the OpenTelemetry nodes page.
Common Use Cases
Put plant values next to IT telemetry
A UNS trigger on enterprise/izmir/line3/+/temperature feeds Export Metrics with Metric Name line3.oven.temperature, Unit Cel, Attributes {"machine": "((machine))"} and Values {"value": ((value)), "quality": "((quality))"}, the quality taken from $trigger._metadata.quality. Grafana, Datadog or Honeycomb then charts the oven next to the servers that run the line, and a sensor fault shows as a gap.
Count parts as a sum
A pipeline that reads each press's counter exports it as a sum with Only Increases on and cumulative temporality. The backend computes rates and handles counter resets, as it does for any OpenTelemetry counter. Dynatrace accepts only delta sums: for Dynatrace, set Temporality to delta and export the amount since the last export.
Alarms in the log backend
An alarm pipeline exports {"alarm": "((code))", "text": "((text))"} with severity ERROR and attributes {"machine": "((machine))"}, so alarms sit in the same log search as the line's IT logs.
Troubleshooting
| Message | Cause | What to do |
|---|---|---|
does not take this signal (404) | The Endpoint is not the OTLP base URL, or the Collector has no pipeline for this signal. | Use the base URL (Grafana Cloud's ends in /otlp); add a metrics or logs pipeline to the Collector. |
this looks like the OTLP/gRPC port | The Endpoint is an OTLP/gRPC port. | Use the OTLP/HTTP port, 4318 on a Collector. |
401, Unauthenticated | The endpoint refused the credential. | Check Authentication and the API key header's name. |
403 | The credential may not export this signal. | Check the token's scopes or access policy. |
request body too large (400) or 413 | The export is larger than the endpoint takes (a Collector's max_request_body_size, 20 MiB by default). | Send fewer items per call. |
415 | The endpoint does not take OTLP protobuf or gzip. | Set Compression to none, or check the Endpoint. |
refused N of M | A partial success: the endpoint stored some points or records and refused others (too old, a bad attribute). | Read the endpoint's reason; the refused ones are not sent again. |
x509: certificate signed by unknown authority | The endpoint's certificate is not trusted. | Paste its CA under CA Certificate. |