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
- Host: GitHub
- URL: https://github.com/apinf/emq-analytics-dashboard
- Owner: apinf
- License: mit
- Created: 2016-11-10T12:41:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-27T10:47:41.000Z (about 9 years ago)
- Last Synced: 2025-01-21T09:28:04.904Z (over 1 year ago)
- Topics: data-visualization, elasticsearch, emq-analytics
- Language: JavaScript
- Size: 92.8 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)