Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Index-Pattern in TSVB (Time series visual pipeline) referenced by name instead of id #14

@micha558

Description

@micha558

We have several tenants for each of the several stages of each of our applications. We have also some standard dashboards which are automatically imported in each tenant of the application during deployment.

Each stage defines some index patterns like 'app-myapp--performance-*' which has a stage-neutral id (like 'performance-index'). This way the visualizations, saved searches etc. can be exported in dev-stage and then copied to the other tenants.

Unfortunately the TSVB references the index-patterns by name instead of id (as the other objects uses at our site).

eg. the tsvb (complete export below) references the index as
\"index_pattern\":\"app-myapp-dev-performance-*\"

while e.g the Metrics visualization references the index pattern by id as
"references":[{"id":"performance_index","name":"kibanaSavedObjectMeta.searchSourceJSON.index","type":"index-pattern"}

It would be great if this could be fixed as currently we have to modify these visualizations in each tenant

(we have currently opendistroforelasticsearch-kibana-1.11.0-1.x86_64)

here is the whole exported set if useful
{"attributes":{"description":"","kibanaSavedObjectMeta":{"searchSourceJSON":"{\"query\":{\"query\":\"\",\"language\":\"lucene\"},\"filter\":[]}"},"title":"Durchlaufzeiten pro Auftrag","uiStateJSON":"{}","version":1,"visState":"{\"type\":\"metrics\",\"aggs\":[],\"params\":{\"id\":\"61ca57f0-469d-11e7-af02-69e470af7417\",\"type\":\"metric\",\"series\":[{\"id\":\"61ca57f1-469d-11e7-af02-69e470af7417\",\"color\":\"#68BC00\",\"split_mode\":\"everything\",\"split_color_mode\":\"kibana\",\"metrics\":[{\"id\":\"61ca57f2-469d-11e7-af02-69e470af7417\",\"type\":\"min\",\"field\":\"json.inputreq.µs\"}],\"separate_axis\":0,\"axis_position\":\"right\",\"formatter\":\"us,ms,\",\"chart_type\":\"line\",\"line_width\":1,\"point_size\":1,\"fill\":0.5,\"stacked\":\"none\",\"label\":\"min. Zeit pro Auftrag\",\"type\":\"timeseries\",\"value_template\":\"{{value}} ms\",\"filter\":{\"query\":\"json.req.success: > 0\",\"language\":\"lucene\"}},{\"id\":\"2c830d10-cce3-11ea-b3b6-4774d5697189\",\"color\":\"#68BC00\",\"split_mode\":\"everything\",\"metrics\":[{\"id\":\"2c830d11-cce3-11ea-b3b6-4774d5697189\",\"type\":\"avg\",\"field\":\"json.inputreq.µs\"}],\"separate_axis\":0,\"axis_position\":\"right\",\"formatter\":\"us,ms,\",\"chart_type\":\"line\",\"line_width\":1,\"point_size\":1,\"fill\":0.5,\"stacked\":\"none\",\"label\":\"durchschn. Zeit pro Auftrag\",\"value_template\":\"{{value}} ms\",\"filter\":{\"query\":\"json.req.success: > 0\",\"language\":\"lucene\"}}],\"time_field\":\"json.@timestamp\",\"index_pattern\":\"app-myapp-dev-performance-*\",\"interval\":\"\",\"axis_position\":\"left\",\"axis_formatter\":\"number\",\"axis_scale\":\"normal\",\"show_legend\":1,\"show_grid\":1,\"default_index_pattern\":\"app-myapp-dev-app-*\",\"default_timefield\":\"json.@timestamp\",\"isModelInvalid\":false,\"background_color_rules\":[{\"id\":\"fa520a90-cce1-11ea-b3b6-4774d5697189\"}],\"drop_last_bucket\":1,\"ignore_global_filter\":0,\"bar_color_rules\":[{\"id\":\"49687880-cce2-11ea-b3b6-4774d5697189\"}],\"gauge_color_rules\":[{\"id\":\"4b5c8050-cce2-11ea-b3b6-4774d5697189\"}],\"gauge_width\":10,\"gauge_inner_width\":10,\"gauge_style\":\"half\",\"annotations\":[],\"time_range_mode\":\"entire_time_range\"},\"title\":\"Durchlaufzeiten pro Auftrag\"}"},"id":"eef0c360-cce3-11ea-95da-2574f2dbf7fc","migrationVersion":{"visualization":"7.8.0"},"references":[],"type":"visualization","updated_at":"2020-07-23T12:56:32.662Z","version":"WzEzMiwyXQ=="}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions