Load only some metricbeat dashboards


(Sentient) #1

I would like to import only some metricbeat dashboards into kibana.

The metricbeat setup has no flags for --modules

What is the recommended way to do this?

On a different note: the documentation shows the filebeat usage on the metricbeat command ??
(https://www.elastic.co/guide/en/beats/devguide/6.x/import-dashboards.html)

The documentation also mentions to upload from a zip file. But I cannot figure out the structure of the zip file?
./metricbeat setup -E setup.dashboards.file=metricbeat-dashboards-6.0.zip

A link to the example file would have been helpful

Are there any community dashboards?

Thanks


(Mario Castro) #2

Hi @sentient :slight_smile:

It's a bit dependant on how did you install metricbeat. Here you have some configuration options to load dashboards https://www.elastic.co/guide/en/beats/metricbeat/6.2/configuration-dashboards.html

Basically, it looks for the path of the dashboads and loads every file it finds in setup.dashboards.directory if it is set or in the default path if not.

I'm not sure where the files with each dashboard are installed in RPM or DEB, I guess somewhere in /etc For your reference, they all look like this: https://github.com/elastic/beats/tree/master/metricbeat/module/kubernetes/_meta/kibana/6/dashboard

You'll find a Metricbeat-*.json for each module we have. Just delete the ones you don't before before loading them into Kibana


(Sentient) #3

Thanks Mario,

Do you know the format of the zip file?
Or is it just and json file that is stored in the zip file

When I try a zip with just one json file I get an error

metricbeat setup -E "setup.kibana.host=http://localhost:5601" -E "setup.dashboards.file=dashboards.zip" 
Loaded index template
Loading dashboards (Kibana must be running and reachable)
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing URL/file: Too many directories under /tmp/tmp295270073

(Mario Castro) #4

Not really, but as a workaround you can try with the setup.dashboards.directoryinstead and just place the json files inside that folder (no need of zip)


(Sentient) #5

FYI It does look for a specific folder structure. E.g. the directory you reference must have a subfolder \6\

I think in general this is an area for improvement. Export and import a dasboard (with all dependencies) should not be too difficult.

I have a dashboard in environment A and would like to re-use it in environment B

The existing documentation talks about export and import. But the dots just don't connect yet.


(system) #6

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.