Grafana agent configuration for missing application metrics

I have a minikube cluster, with a small application and Grafana agent deployed.
My application metrics are not visible in Grafana Cloud.

As context:

  • My application exposes a REST endpoint, and of course a /metrics end point.
  • I can browse to “abc.xyx.com/metrics” in a browser and see the application metrics in the response.
  • I don’t see anything useful in the grafana agent logs to indicate an issue.

Is the following grafana agent configuration correct?

kind: ConfigMap
metadata:
  name: grafana-agent
apiVersion: v1
data:
  agent.yaml: |
    metrics:
...
      configs:
      - name: my_server
        scrape_configs:
          - job_name: my_job
            static_configs:
              - targets: ['abc.xyz.com']
        remote_write:
          - url: .../prom/push
            basic_auth:
              username: my_user
              password: my_secret