Node Exporter Instance Label

When using the node exporter integration with grafana agent on kubernetes Set up integrations | Grafana Agent documentation how can I do a label replacement so the instance label doesn’t contain the port? Right now the instance label is getting labeled as instance:8080. I just want the instance name for the label

I tried this in the extra_scrape_config but it didn’t work:

    - job_name: kubernetes-nodes
      - role: node
        - source_labels: [__meta_kubernetes_node_name]
          action: replace
          target_label: instance