Influxdb2 flux config via API/kube-prometheus?

          {
            "access": "proxy",
            "database": "monitoring",
            "editable": true,
            "name": "influxdb2",
            "orgId": 1,
            "token": "REDACTED",
            "type": "influxdb",
            "url": "http://influxdb2.monitoring.svc:8086",
            "version": 1
          },

How can I define Flux as the type of influxdb datasource and properly insert the org and token?

see these docs for provisioning and influx datasource plugin with flux enabled:

1 Like