Unable to use opensearch data source plugin

  • What Grafana version and what operating system are you using?
    Grafana 8.1.2 on RHEL 7

  • What are you trying to achieve?
    Migrate from open-distro data source to the new opensearch data source

  • How are you trying to achieve it?
    Replace all provision data source id to opensearch instead of open-distro

  • What happened?
    Got Elasticsearch: undefined undefined error. And following in log:
    t=2021-09-08T11:04:37+1000 lvl=eror msg=“Request error” logger=context userId=4 orgId=1 uname=admin error=“Unsupported datasource “grafana-opensearch-datasource”” stack="/drone/src/pkg/models/datasource_cache.go:290 (0x1097070)\n/drone/src/pkg/models/datasource_cache.go:145 (0x1096058)\n/drone/src/pkg/models/datasource_cache.go:71 (0x1095878)\n/drone/src/pkg/api/pluginproxy/ds_proxy.go:109 (0x18a2f4c)\n/drone/src/pkg/services/datasourceproxy/datasourceproxy.go:82 (0x1aa1b12)\n/drone/src/pkg/services/datasourceproxy/datasourceproxy.go:39 (0x1aa1566)\n/drone/src/pkg/api/dataproxy.go:6 (0x21bb864)\n/usr/local/go/src/reflect/value.go:476 (0x4afa46)\n/usr/local/go/src/reflect/value.go:337 (0x4aef18)\n/drone/src/pkg/macaron/inject.go:164 (0x10743f6)\n/drone/src/pkg/macaron/inject.go:124 (0x1073d71)\n/drone/src/pkg/macaron/context.go:77 (0x1072c52)\n/drone/src/pkg/macaron/context.go:67 (0x1a5f8c5)\n/drone/src/pkg/middleware/request_metrics.go:55 (0x1a5f8b0)\n/usr/local/go/src/reflect/value.go:476 (0x4afa46)\n/usr/local/go/src/reflect/value.go:337 (0x4aef18)\n/drone/src/pkg/macaron/inject.go:164 (0x10743f6)\n/drone/src/pkg/macaron/inject.go:124 (0x1073d71)\n/drone/src/pkg/macaron/context.go:77 (0x1072c52)\n/drone/src/pkg/macaron/context.go:67 (0x1a5f744)\n/drone/src/pkg/middleware/recovery.go:166 (0x1a5f737)\n/drone/src/pkg/macaron/context.go:35 (0x1072a32)\n/drone/src/pkg/macaron/inject.go:144 (0x10740f1)\n/drone/src/pkg/macaron/inject.go:122 (0x1073e64)\n/drone/src/pkg/macaron/context.go:77 (0x1072c52)\n/drone/src/pkg/macaron/context.go:67 (0x1a5d809)\n/drone/src/pkg/middleware/logger.go:35 (0x1a5d7dd)\n/usr/local/go/src/reflect/value.go:476 (0x4afa46)\n/usr/local/go/src/reflect/value.go:337 (0x4aef18)\n/drone/src/pkg/macaron/inject.go:164 (0x10743f6)\n/drone/src/pkg/macaron/inject.go:124 (0x1073d71)\n/drone/src/pkg/macaron/context.go:77 (0x1072c52)\n/drone/src/pkg/macaron/context.go:67 (0x1a60a17)\n/drone/src/pkg/middleware/request_tracing.go:56 (0x1a60a0a)\n/usr/local/go/src/reflect/value.go:476 (0x4afa46)\n/usr/local/go/src/reflect/value.go:337 (0x4aef18)\n/drone/src/pkg/macaron/inject.go:164 (0x10743f6)\n/drone/src/pkg/macaron/inject.go:124 (0x1073d71)\n/drone/src/pkg/macaron/context.go:77 (0x1072c52)\n/drone/src/pkg/macaron/router.go:187 (0x10817d0)\n/drone/src/pkg/macaron/router.go:303 (0x107c2a5)\n/drone/src/pkg/macaron/macaron.go:192 (0x1075bac)\n/usr/local/go/src/net/http/server.go:2887 (0x724a42)\n/usr/local/go/src/net/http/server.go:3459 (0x72766c)\n/usr/local/go/src/net/http/h2_bundle.go:5723 (0x6f704a)\n/usr/local/go/src/runtime/asm_amd64.s:1371 (0x47c2c0)\n"

  • What did you expect to happen?
    Successfully connect to ES without any error

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    UI: Elasticsearch: undefined undefined error.

Hi @melcloud and thanks for making this topic. Are you able to manually add opensearch to 8.1.2? I’m having some trouble myself. This might be a bug worth reporting in the repo

This topic was automatically closed after 365 days. New replies are no longer allowed.