Migrate from Grafana Agent to OpenTelemetry Collector¶
These are the steps to follow:
- deploy the collector next to the agent charm 
- look at the relations for grafana-agent, and replicate them for the collector 
- note that some relation endpoints have slightly different names, for clarity: - logging-consumeris now- send-loki-logs
- grafana-cloud-configis now- cloud-config
 
- verify that data is appearing in the backends (Mimir, Prometheus, Loki, etc.) 
- remove grafana-agent from your deployment 
Known Issues¶
Unlike grafana-agent, OpenTelemetry Collector maintains state in-memory by default: this means that queued telemetry data will be lost on restart. This will be addressed in the future with the File Storage extension, tracked in opentelemetry-collector-k8s#34.
