SNMP and Ubiquity

I’m trying to get the grafana agent to work with the SNMP instructions for Ubiquiti edgerrouter.

I try to use the SNMP referenced at jsonnet-libs/ubnt-edgerouter-mixin/snmp_generator/snmp.yml at master · grafana/jsonnet-libs · GitHub and put that in a file (/etc/snmp.yml), then update the grafana-config.yml to look like:

snmp:
    enabled: true
    config_file: '/etc/snmp.yml'
    snmp_targets:
    - name: router_1
      address: '<router_1_address>'
      module: ubnt_router
      walk_params: ubnt_router
    walk_params:
      ubnt_router:
        version: 2
        auth:
          community: public
    relabel_configs:
    - replacement: integrations/ubiquiti-edgerouter
      target_label: job
    metric_relabel_configs:
    - action: keep

But everytime the agent fails will messages like:

integration=snmp err="failed to load snmp config from file /etc/snmp.yml: yaml: unmarshal errors:\n  line 1: field ubnt_router not found in type config.Config"

Not sure what I’m doing wrong, and any help would be appreciated.