Skip to content

Commit

Permalink
better temp support
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandawg93 committed Dec 23, 2019
1 parent c7a80c3 commit 8e6928f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 78 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ This package was built for the sole purpose of making the installation of grafan

`docker-compose up -d`

**Note:** If you are not running on a raspberry pi, run `docker-compose -f vm-docker-compose.yml up -d` instead.

10. Go to http://host_ip:3000 (where host_ip is the ip of the machine running the stack)

11. Type `admin` for the username and `admin` for the password
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ services:
- influxdb
networks:
- influxdb
devices:
- /dev/vchiq
- /dev/vcsm
volumes:
- ./telegraf:/etc/telegraf
- /opt/vc:/opt/vc
restart: always

influxdb:
Expand Down
8 changes: 4 additions & 4 deletions grafana/provisioning/dashboards/Monitoring_PI.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"editable": true,
"gnetId": 4220,
"graphTooltip": 0,
"iteration": 1576704594755,
"iteration": 1577132855195,
"links": [
{
"icon": "external link",
Expand Down Expand Up @@ -327,7 +327,7 @@
"type": "fill"
}
],
"measurement": "exec_pi_temp",
"measurement": "temp",
"orderByTime": "ASC",
"policy": "default",
"refId": "A",
Expand Down Expand Up @@ -647,7 +647,7 @@
"type": "fill"
}
],
"measurement": "exec_pi_temp",
"measurement": "temp",
"orderByTime": "ASC",
"policy": "default",
"query": "SELECT mean(\"cpu\") / 1000 FROM \"exec_pi_temp\" WHERE $timeFilter GROUP BY time(1m) fill(null)",
Expand Down Expand Up @@ -3163,7 +3163,7 @@
]
},
"time": {
"from": "now-24h",
"from": "now-1h",
"to": "now"
},
"timepicker": {
Expand Down
12 changes: 8 additions & 4 deletions telegraf/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5651,8 +5651,12 @@
json_string_fields = ["status"]
name_suffix = "_pihole"

[[inputs.exec]]
commands = ["cat /sys/class/thermal/thermal_zone0/temp"]
timeout = "5s"
# This only works on Windows and Linux
[[inputs.temp]]

# This only works on Raspbian
[[inputs.file]]
files = ["/sys/class/thermal/thermal_zone0/temp"]
data_format = "value"
name_suffix = "_pi_temp"
data_type = "integer"
name_override = "temp"
64 changes: 0 additions & 64 deletions vm-docker-compose.yml

This file was deleted.

0 comments on commit 8e6928f

Please sign in to comment.