Chronograf: Dashboard for other databases then telegraf

Created on 6 Mar 2017  路  5Comments  路  Source: influxdata/chronograf

I tried to setup a dashboard as follows:

curl -X POST -H "Content-Type: application/json" -d '{
    "cells": [
        {
            "x": 0,
            "y": 0,
            "w": 12,
            "h": 12,
            "name": "Arexx",
            "queries": [
                {
                    "query": "SELECT mean(\"temp\") FROM temp",
                    "db": "test",
                    "rp": "autogen",
                    "label": "掳C",
                    "range": {
                        "upper": 80,
                        "lower": 0
                    },
                    "wheres": ["\"anlage\" = '10000011'"],
                    "groupbys": ["\"sensor\""]
                }
            ],
            "type": "line"
        }
    ],
    "name": "10000011"
}' "http://localhost:8888/chronograf/v1/dashboards"

Note: "db": "test"

Still the request issued by the UI to the route /chronograf/v1/sources/1/proxy references the telegraph database:

db: "telegraf",
query: "SELECT mean(\"temp\") FROM temp where time > now() - 15m and \"anlage\" = 10000011 group by time(1m),\"sensor\"",
rp: "autogen"

Bug or feature? :-)

kinbug

Most helpful comment

All 5 comments

@core-process Thanks for writing in! Doh, bug for sure. We'll take a peek and figure it out.

Our goal is to have dashboard editing done soon so you won't have to go through POSTing, but, thanks for being brave :)

Thanks for your response! Ahh.. I found this line too, but wasn't sure, since I read the source code the first time ;-)

@core-process Ok, fix has been tested and added to master in #969 . Each time master builds it'll create a new docker container at quay.io/influxdb/chronograf:latest. If you aren't using docker, you try to a build, or wait until Friday when we have our next release.

Thanks again for reporting it!

Thanks! :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alexpaxton picture alexpaxton  路  6Comments

mkarlesky picture mkarlesky  路  3Comments

jaredscheib picture jaredscheib  路  3Comments

krysjoseoctanio picture krysjoseoctanio  路  4Comments

mleonhard picture mleonhard  路  3Comments