Skip to content

Commit

Permalink
Merge pull request #16 from thorgilis/master
Browse files Browse the repository at this point in the history
  • Loading branch information
avojak authored Oct 16, 2024
2 parents bed80ab + 494247d commit 4773c4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions grafana/Pi-hole.json
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
{
"matcher": {
"id": "byName",
"options": "Max"
"options": "Last"
},
"properties": [
{
Expand Down Expand Up @@ -794,7 +794,7 @@
{
"matcher": {
"id": "byName",
"options": "Max"
"options": "Last"
},
"properties": [
{
Expand Down Expand Up @@ -935,7 +935,7 @@
{
"matcher": {
"id": "byName",
"options": "Max"
"options": "Last"
},
"properties": [
{
Expand Down
6 changes: 4 additions & 2 deletions pihole-influxdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,14 +276,16 @@ def _write_to_influxdb(self, pihole, stats, domains_over_time, ads_over_time):
WritePrecision.S
))
if 'forward_destinations' in stats:
forward_destinations = stats.pop('forward_destinations')
points.append(Point.from_dict(
{
"measurement": "forward_destinations",
"tags": tags,
"fields": stats.pop('forward_destinations'),
"fields": forward_destinations,
"time": now_seconds
},
WritePrecision.S
WritePrecision.S,
field_types={x: "float" for x in forward_destinations}
))
if 'querytypes' in stats:
points.append(Point.from_dict(
Expand Down

0 comments on commit 4773c4a

Please sign in to comment.