mirror of
https://github.com/20kaushik02/real-time-traffic-analysis-clickhouse.git
synced 2025-12-06 10:54:07 +00:00
Merge branch 'ui' into integration_2
This commit is contained in:
commit
a17c8c3cb4
10
ui/README.md
Normal file
10
ui/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# UI - dashboards, visualization, querying with Grafana
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cd ../clickhouse # TODO: fix relative paths
|
||||||
|
docker stack deploy -c docker-compose-old.yaml -c ../ui/docker-compose.yaml your_stack_name
|
||||||
|
```
|
||||||
|
|
||||||
|
Access from [http://localhost:7602](http://localhost:7602)
|
||||||
|
|
||||||
|
- Uses the Clickhouse data source plugin
|
||||||
29
ui/docker-compose.yaml
Normal file
29
ui/docker-compose.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
services:
|
||||||
|
grafana:
|
||||||
|
image: grafana/grafana-oss
|
||||||
|
container_name: grafana
|
||||||
|
volumes:
|
||||||
|
- grafana-storage:/var/lib/grafana
|
||||||
|
- ../ui/grafana_clickhouse_datasource.yaml:/etc/grafana/provisioning/datasources/clickhouse.yaml # relative to clickhouse directory
|
||||||
|
networks:
|
||||||
|
outside_net:
|
||||||
|
aliases:
|
||||||
|
- grafana
|
||||||
|
clickhouse-server-network:
|
||||||
|
aliases:
|
||||||
|
- grafana
|
||||||
|
depends_on:
|
||||||
|
- clickhouse-server1
|
||||||
|
environment:
|
||||||
|
- GF_INSTALL_PLUGINS=grafana-clickhouse-datasource
|
||||||
|
- GF_SECURITY_ADMIN_USER=thewebfarm
|
||||||
|
- GF_SECURITY_ADMIN_PASSWORD=mrafbeweht
|
||||||
|
ports:
|
||||||
|
- "7602:3000"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
outside_net:
|
||||||
|
attachable: true
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
grafana-storage:
|
||||||
7
ui/grafana_clickhouse_datasource.yaml
Normal file
7
ui/grafana_clickhouse_datasource.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: 1
|
||||||
|
datasources:
|
||||||
|
- name: ClickHouse
|
||||||
|
type: grafana-clickhouse-datasource
|
||||||
|
jsonData:
|
||||||
|
host: clickhouse-server1
|
||||||
|
port: 9000
|
||||||
Loading…
x
Reference in New Issue
Block a user