chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

As a user I can see host view for multiple layouts

Open nhaugo opened this issue 10 years ago • 3 comments

• When the host view is selected the layouts requested should have "default" as the first item in the array • Additional "apps" should be appended to the layouts list • The selected host can request multiple apps, e.g /layouts?id=influx,docker,server • The app should build a grid from the items in the array • layout[0] should have layout[1]'s items appended to the grid, e.g. if layout[0] has items in pos [0,0],[0,1],[0,2][1,0],[1,1],[1,2] and layout[1] has items in pos [0,0],[0,1],[0,2] then layout[1]'s items should be appended to the grid as [2,0],[2,1],[2,2]

nhaugo avatar Oct 05 '16 17:10 nhaugo

Dependent on #182

kfitzpatrick avatar Oct 18 '16 17:10 kfitzpatrick

@jademcgough it isn't working for me, did you have the latest mapping stuff from @timraymond rebased onto your branch by chance?

nhaugo avatar Nov 02 '16 22:11 nhaugo

@nhaugo

It wasn't working for me either. I was able to fix the data by adding a unique index value i in the json

e.g.

{
    "id": "e72c2eb9-d09b-46ea-b5df-0a82769e314d",
        "measurement": "mem",
        "app": "docker",
        "cells": [{
                "x": 0,
                "y": 0,
                "w": 10,
                "h": 10,
                "i": "docker_test",
                "name": "test",
                "queries": [{
                        "query": "select used_percent from disk",
                        "db": "telegraf",
                        "rp": "autogen"
                }]
        }]
 }

if you add that to the json that isn’t displaying, it should work. The script we're using to generate these doesn't automatically create that key.

imogenkinsman avatar Nov 03 '16 01:11 imogenkinsman