https://github.com/hackzilla/elastic-dashboard-demo
Dashboard Widgets powered by ElasticSearch
https://github.com/hackzilla/elastic-dashboard-demo
dashboard elasticsearch symfony-application
Last synced: about 1 month ago
JSON representation
Dashboard Widgets powered by ElasticSearch
- Host: GitHub
- URL: https://github.com/hackzilla/elastic-dashboard-demo
- Owner: hackzilla
- Created: 2017-03-26T19:46:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-07T22:45:37.000Z (over 8 years ago)
- Last Synced: 2025-03-13T03:28:03.905Z (11 months ago)
- Topics: dashboard, elasticsearch, symfony-application
- Language: PHP
- Homepage:
- Size: 131 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Clone repository
```bash
git clone git@github.com:hackzilla/elastic-demo.git
```
# Build
composer install -o
docker-compose build
# Start
docker-compose up -d
# Links
## App
### Dashboard
http://127.0.0.1:8888/app.php/dashboard
### Fake site
http://127.0.0.1:8888/app.php/html/
### Fake APIs
http://127.0.0.1:8888/app.php/api/
### PHP Info
http://127.0.0.1:8888/app_dev.php/_profiler/phpinfo
## Elastic
### Mapping
http://127.0.0.1:9200/tracking/_mapping?pretty
### Pipeline
http://127.0.0.1:9200/_ingest/pipeline/user_agent?pretty
### Document
http://127.0.0.1:9200/tracking/impression/1?pretty
# Finish
docker-compose down
# Ways to extend.
* Use web sockets, instead of polling.
* One request to update all widgets
# Demo
You will need to modify your docker enviroment to increase `vm.max_map_count` otherwise Elastic will refuse to start.
https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
```bash
composer install --no-interaction --working-dir=./code;
docker-compose build;
docker-compose up -d;
./code/bin/console app:generate:impressions
```