Dashboard for EMQ analytics
Clone
$ git clone https://github.com/apinf/emq-analytics-dashboard.git
Install deps
$ cd emq-analytics-dashboard && npm install
Create config file in ./config/index.js
with contents
export default {
host: 'http://127.0.0.1:9200/' // elasticsearch host (change to correct one)
}
Run
$ npm start
Note: Update
<es_host>
,<index>
and<type>
to yours.
PUT <es_host>/<index>/_mapping/<type>
{
"properties": {
"timestamp": {
"type": "date"
}
}
}
PUT <es_host>/<index>/_mapping/<type>
{
"properties": {
"event": {
"type": "text",
"fielddata": true
}
}
}
PUT <es_host>/<index>/_mapping/<type>
{
"properties": {
"topic": {
"type": "text",
"fielddata": true
}
}
}
MIT (See license file)