Configuring external promethrus and grafana

I have the same question.
From other discussions(How to monitor ScheduleToStart latency - #6 by tihomir) I know we need to add a prometheus job in its configuration like below:

scrape_configs:
  - job_name: 'temporal-to-custom-prometheus'
    metrics_path: /metrics
    scheme: http
    static_configs:
      - targets:
          - 'temporal:8000'
          - 'worker:8001'
          - 'starter:8002'

can anyone explain the configurations further? the exact metric path, scheme, and targets?
I tried replacing the target with my temporal service name and the grpc port 7233, but it did not work.
Shall I expose the 8000 port or change the scheme to rpc?