You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/runtime/_shared-configuration.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -384,6 +384,34 @@ This configures the Platformatic Runtime Prometheus server. The Prometheus serve
384
384
-**`plugins`** (array of `string`): A list of Fastify plugin to add to the Prometheus server.
385
385
-**`applicationLabel`** (`string`, default: `'applicationId'`): The label name to use for the application identifier in metrics (e.g., `'applicationId'`, `'serviceId'`, or any custom label name).
386
386
-**`timeout`** (`number`, default: `10000`): The timeout to wait for each worker metrics before skipping it.
387
+
<<<<<<< HEAD
388
+
=======
389
+
-**`otlpExporter`** (`object`): Optional configuration for exporting Prometheus metrics to an OpenTelemetry Protocol (OTLP) endpoint. This enables pushing metrics to OTLP-compatible collectors like OpenTelemetry Collector, Grafana Cloud, or other observability platforms. The object supports the following settings:
390
+
-**`enabled`** (`boolean` or `string`): Enable or disable OTLP metrics export. Default: `true` if endpoint is configured.
391
+
-**`endpoint`** (**required**, `string`): OTLP endpoint URL for metrics (e.g., `http://localhost:4318/v1/metrics`).
392
+
-**`interval`** (`number` or `string`): Interval in milliseconds between metric pushes. Default: `60000` (60 seconds).
393
+
-**`headers`** (`object`): Additional HTTP headers for authentication or custom metadata. Common use cases include API keys or authentication tokens.
394
+
-**`serviceName`** (`string`): Service name for OTLP resource attributes. Defaults to the application ID.
395
+
-**`serviceVersion`** (`string`): Service version for OTLP resource attributes. Optional.
Dynamically adds new applications to a running runtime instance. This allows you to register applications after the runtime has been initialized.
66
+
67
+
If `start` is `true`, then the new application will immediately be started in parallel. Defaults to `false`.
68
+
69
+
**Important**: Application objects passed in the `applications` argument should always be processed via `prepareApplication` first to ensure proper options normalization.
0 commit comments