Commit 8be088bd authored by Rousseau Vincent's avatar Rousseau Vincent
Browse files

create grafana and sensor folder

parent 30f4e445
No related merge requests found
Showing with 15 additions and 2 deletions
+15 -2
...@@ -12,8 +12,11 @@ services: ...@@ -12,8 +12,11 @@ services:
- "3000:3000" - "3000:3000"
volumes: volumes:
- 'persitent-storage:/var/lib/grafana' - 'persitent-storage:/var/lib/grafana'
- ./grafana/provisioning/:/etc/grafana/provisioning/
env_file:
- ./grafana/config.monitoring
sensor: sensor:
build: . build: ./sensor
restart: always restart: always
environment: environment:
- INFLUX_HOST=influxdb - INFLUX_HOST=influxdb
......
datasources:
- name: Influxdb
type: influxdb
access: proxy
database: cpu-sense
user: root
password: root
url: http://influxdb:8086
File moved
...@@ -17,4 +17,5 @@ while True: ...@@ -17,4 +17,5 @@ while True:
} }
] ]
influx_client.write_points(measurement) influx_client.write_points(measurement)
time.sleep(1) time.sleep(1)
\ No newline at end of file
File moved
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment