GrafanaProcessor¶
This docs was updated at: 2026-02-23
com.paragon.telemetry.grafana.GrafanaProcessor ยท Class
Extends TelemetryProcessor
Telemetry processor that sends telemetry to Grafana Cloud via OTLP/HTTP.
Grafana supports traces, metrics, and logs. Each signal type can be individually enabled/disabled via the builder.
Default configuration enables traces only. Enable metrics and logs as needed for your observability requirements.
See Also
<a href="https://grafana.com/docs/grafana-cloud/send-data/otlp/">Grafana OTLP Docs</a>
Methods¶
builder¶
Creates a new builder for GrafanaProcessor.
fromEnv¶
Creates a processor from environment variables.
sendTrace¶
Sends trace data to Grafana.
sendMetrics¶
Sends metrics data to Grafana. Creates gauge/counter metrics from the completed event.
sendLog¶
Sends log data to Grafana.
convertToSpan¶
Converts a TelemetryEvent to an OtelSpan.
sendToEndpoint¶
Sends JSON payload to the specified endpoint.
isTracesEnabled¶
Returns whether traces are enabled.
isMetricsEnabled¶
Returns whether metrics are enabled.
isLogsEnabled¶
Returns whether logs are enabled.
httpClient¶
Sets the HTTP client.
baseUrl¶
Sets the Grafana OTLP base URL (e.g., https://otlp-gateway-prod-us-east-0.grafana.net/otlp).
instanceId¶
Sets the Grafana Cloud instance ID.
apiToken¶
Sets the Grafana Cloud API token.
objectMapper¶
Sets the ObjectMapper for JSON serialization.
tracesEnabled¶
Enables or disables trace sending.
metricsEnabled¶
Enables or disables metrics sending.
logsEnabled¶
Enables or disables log sending.
fromEnv¶
Loads configuration from environment variables.
build¶
Builds the GrafanaProcessor.