An open API service indexing awesome lists of open source software.

https://github.com/apinf/emq-analytics-dashboard

Dashboard for EMQ analytics
https://github.com/apinf/emq-analytics-dashboard

data-visualization elasticsearch emq-analytics

Last synced: 5 days ago
JSON representation

Dashboard for EMQ analytics

Awesome Lists containing this project

README

          

# emq-analytics-dashboard

> Dashboard for EMQ analytics

### Try it out

1. Clone

```
$ git clone https://github.com/apinf/emq-analytics-dashboard.git
```

2. Install deps

```
$ cd emq-analytics-dashboard && npm install
```

3. Create config file in `./config/index.js` with contents

```js
export default {
host: 'http://127.0.0.1:9200/' // elasticsearch host (change to correct one)
}
```

4. Run

```
$ npm start
```

### Send following acknowledgements to elasticsearch

> **Note:** Update ``, `` and `` to yours.

```
PUT //_mapping/

{
"properties": {
"timestamp": {
"type": "date"
}
}
}
```

```
PUT //_mapping/

{
"properties": {
"event": {
"type": "text",
"fielddata": true
}
}
}
```

```
PUT //_mapping/

{
"properties": {
"topic": {
"type": "text",
"fielddata": true
}
}
}
```

### License

MIT (See license file)