Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic import of Kibana dashboard not working #5

Open
FlorianNachtigall opened this issue Jul 8, 2020 · 0 comments
Open

Automatic import of Kibana dashboard not working #5

FlorianNachtigall opened this issue Jul 8, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@FlorianNachtigall
Copy link
Member

According to the Kibana helm docs, an automatic dashboard import should work via dashboardImport.dashboards.<dashboard-name>. as a json string or url reference.

Both approaches do not work. The dashboard json or the url is rendered correctly in the kibana configmap:

$ k describe configmap dm-pipeline-kibana-dashboards
Name:         dm-pipeline-kibana-dashboards
Namespace:    default
Labels:       app=kibana
              app.kubernetes.io/managed-by=Helm
              chart=kibana-3.2.6
              heritage=Helm
              release=dm-pipeline
Annotations:  meta.helm.sh/release-name: dm-pipeline
              meta.helm.sh/release-namespace: default

Data
====
fitnessData:
----
[
  {
    "_id": "d8a3f7d0-ba3c-11ea-bf74-7faa6b8c47fc",
    "_type": "dashboard",
    "_source": {
      "title": "Donated Strava Activities",
      "hits": 0,
      "description": "",
      "panelsJSON": "[{\"embeddableConfig\":{},\"gridData\":{\"x\":0,\"y\":31,\"w\":24,\"h\":15,\"i\":\"1\"},\"id\":\"2cc06550-ba39-11ea-bf74-7faa6b8c47fc\",\"panelIndex\":\"1\",\"type\":\"visualization\",\"version\":\"6.7.0\"},{\"embeddableConfig\":{},\"gridData\":{\"x\":0,\"y\":15,\"w\":16,\"h\":16,\"i\":\"2\"},\"id\":\"c5f7c3c0-ba3a-11ea-bf74-7faa6b8c47fc\",\"panelIndex\":\"2\",\"type\":\"visualization\",\"version\":\"6.7.0\"},{\"embeddableConfig\":{},\"gridData\":{\"x\":16,\"y\":15,\"w\":16,\"h\":16,\"i\":\"3\"},\"id\":\"f5521c10-ba3a-11ea-bf74-7faa6b8c47fc\",\"panelIndex\":\"3\",\"type\":\"visualization\",\"version\":\"6.7.0\"},{\"embeddableConfig\":{},\"gridData\":{\"x\":24,\"y\":31,\"w\":24,\"h\":15,\"i\":\"4\"},\"id\":\"a36f2b30-ba3b-11ea-bf74-7faa6b8c47fc\",\"panelIndex\":\"4\",\"type\":\"visualization\",\"version\":\"6.7.0\"},{\"embeddableConfig\":{},\"gridData\":{\"x\":0,\"y\":0,\"w\":48,\"h\":15,\"i\":\"5\"},\"id\":\"44e601f0-ba3c-11ea-bf74-7faa6b8c47fc\",\"panelIndex\":\"5\",\"type\":\"visualization\",\"version\":\"6.7.0\"},{\"gridData\":{\"x\":32,\"y\":15,\"w\":16,\"h\":16,\"i\":\"6\"},\"version\":\"6.7.0\",\"panelIndex\":\"6\",\"type\":\"visualization\",\"id\":\"6a8df100-ba3d-11ea-bf74-7faa6b8c47fc\",\"embeddableConfig\":{}}]",
      "optionsJSON": "{\"darkTheme\":false,\"hidePanelTitles\":false,\"useMargins\":true}",
      "version": 1,
      "timeRestore": false,
      "kibanaSavedObjectMeta": {
        "searchSourceJSON": "{\"query\":{\"language\":\"lucene\",\"query\":\"\"},\"filter\":[]}"
      }
    }
  },
  {
$ k describe configmap dm-pipeline-kibana-dashboards
Name:         dm-pipeline-kibana-dashboards
Namespace:    default
Labels:       app=kibana
              app.kubernetes.io/managed-by=Helm
              chart=kibana-3.2.6
              heritage=Helm
              release=dm-pipeline
Annotations:  meta.helm.sh/release-name: dm-pipeline
              meta.helm.sh/release-namespace: default

Data
====
fitnessData:
----
https://raw.githubusercontent.com/peng-data-minimization/fitness-data-pipeline/master/pipeline/kibana/config/dashboard.json
Events:  <none>

However, somehow it is not getting imported to Kibana. I couldn't find anything in the logs as well.

@FlorianNachtigall FlorianNachtigall added the bug Something isn't working label Jul 8, 2020
FlorianNachtigall added a commit that referenced this issue Jul 8, 2020
See issue #5 for more details on the dashboard import.

Further, improve test-pipeline script to be less verbose and open
Kibana dashboard directly (needs to be imported first).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant