Configure grafana agent for MIMIR for metrics for Opentelemetry+grafana agent

We are trying to send logs for a Java application using OpenTelemetry. I’m having trouble configuring the grafana agent config file with receviers, exporters etc. Can I have a single file and use it to configure both grafana agent and opentelemetry collector?