Skip to content

Commit

Permalink
Enabling Network Dashboard as default dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
fmdlc committed Oct 9, 2020
1 parent c226a23 commit 45d6e29
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
8 changes: 6 additions & 2 deletions ISP-Checker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,18 @@ install:
@sleep 10

$(info Make: Initializing datasources and dashboards)
@curl -s --location --request POST 'http://admin:admin@localhost:3000/api/datasources' \
@curl -s --location -X POST 'http://admin:admin@localhost:3000/api/datasources' \
--header 'Content-Type: application/json' \
-d @./grafana/datasource.json > /dev/null

@curl -s --location --request POST 'http://admin:admin@localhost:3000/api/dashboards/db' \
@curl -s --location -X POST 'http://admin:admin@localhost:3000/api/dashboards/db' \
--header 'Content-Type: application/json' \
-d @./grafana/network-dashboard.json > /dev/null

@curl -s --location -X PUT 'http://admin:admin@localhost:3000/api/user/preferences' \
--header 'Content-Type: application/json' \
-d @./grafana/default.json > /dev/null

@echo "\nOpen your browser a points to http://127.0.0.1:3000/\n"
@echo "Default Username: admin | Default Password: admin"
@echo "Updated credentials after your first login!."
Expand Down
5 changes: 5 additions & 0 deletions ISP-Checker/grafana/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"homeDashboardId": 1,
"theme": "dark",
"timezone": "browser"
}
3 changes: 3 additions & 0 deletions ISP-Checker/grafana/network-dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -1919,5 +1919,8 @@
"title": "Network",
"uid": "Is1f1nRgz",
"version": 1
},
"meta": {
"isStarred": true
}
}
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

> A `docker-compose` stack to run a set of ISP controls and collect metrics on a [Raspberry Pi](https://www.raspberrypi.org/).
[Fibertel](http://www.fibertel.com/), the most popular Argentinian Internet provider always has connectivity issues. It inspired me to use a Raspberry Pi and build some type of monitoring to aggregate metrics. I have been using [Grafana](http://grafana.com) at work for several years, so why not using the same logic?.
[Fibertel](http://www.fibertel.com/), the most popular Argentinian Internet provider always has connectivity issues. It inspired me to use a Raspberry Pi and build some type of monitoring to aggregate metrics. I have been using [Grafana](http://grafana.com) at work for several years, so why not using the same logic?.

`ISP-Checker` implements a set of [Telegraf](https://github.com/influxdata/telegraf) checks that sends metrics to [InfluxDB](https://www.influxdata.com/) (a OpenSource, time series based database) and runs several kind of metrics collectors to get average/aggregation/integral of values at first glance and focusing on service quality.
`ISP-Checker` implements a set of [Telegraf](https://github.com/influxdata/telegraf) checks that sends metrics to [InfluxDB](https://www.influxdata.com/) (a OpenSource, time series based database) and runs several kind of metrics collectors to get average/aggregation/integral of values at first glance and focusing on service quality.

`ISP-Checker` tries to test things like _ICMP packet loss_, the average time for _DNS queries resolution_, _HTTP Response times_, _ICMP latencies_, _ICMP Standard Deviation_, _Upload/Download speed_ (by using [Speedtest-cli](https://github.com/sivel/speedtest-cli)) and a Graphical _MTR/Traceroute_ version.
`ISP-Checker` tries to test things like _ICMP packet loss_, the average time for _DNS queries resolution_, _HTTP Response times_, _ICMP latencies_, _ICMP Standard Deviation_, _Upload/Download speed_ (by using [Speedtest-cli](https://github.com/sivel/speedtest-cli)) and a Graphical _MTR/Traceroute_ version.

It's easily extensible and it was built on top of [Docker](http://docker.com) to make it portable and easy to run everywhere, importing automatically all components needed to perform checks.

Feel free to reach me out for any feedback or ideas! :-)
Feel free to reach me out for any feedback or ideas! :-)

<center>

Expand Down Expand Up @@ -85,12 +85,13 @@ Open your browser and point to `http://<RASPBERRY_IP>:3000/`. Login with usernam
_Change it inmediately after the first login_.

#### Removing
Be sure you completelly understand what `prune` Makefile action implies (For more details check the `Makefile`).
Be sure you completelly understand what `prune` Makefile action implies (For more details check the `Makefile`).
To remove run `make prune`.
> It will remove all stopped containers (yes, not only the ISP-Checker ones).

> It will remove all stopped containers (yes, not only the ISP-Checker ones).
## ToDo
- [X] Enable Network-dashboard as default dashboard.
- [ ] Allows users to select their metrics endpoint.
- [ ] Allow users to select their Grafana Org.
- [ ] Helm Chart to run in Kubernetes.
Expand Down

0 comments on commit 45d6e29

Please sign in to comment.