Merge pull request #7 from geerlingguy/6-starlink

Issue #6: Add Starlink monitoring.
This commit is contained in:
Jeff Geerling 2021-06-11 12:42:57 -05:00 committed by GitHub
commit 42004b83cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1955 additions and 19 deletions

View File

@ -1,3 +1,3 @@
GF_SECURITY_ADMIN_PASSWORD=wonka GF_SECURITY_ADMIN_PASSWORD=wonka
GF_USERS_ALLOW_SIGN_UP=false GF_USERS_ALLOW_SIGN_UP=false
GF_INSTALL_PLUGINS=flant-statusmap-panel GF_INSTALL_PLUGINS=flant-statusmap-panel,ae3e-plotly-panel

View File

@ -27,7 +27,6 @@
"color": { "color": {
"mode": "thresholds" "mode": "thresholds"
}, },
"custom": {},
"mappings": [ "mappings": [
{ {
"id": 0, "id": 0,
@ -63,7 +62,7 @@
"id": 8, "id": 8,
"interval": null, "interval": null,
"links": [], "links": [],
"maxDataPoints": 1000, "maxDataPoints": 50000,
"options": { "options": {
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
@ -77,7 +76,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "7.4.5", "pluginVersion": "7.5.6",
"targets": [ "targets": [
{ {
"expr": "speedtest_download_bits_per_second{}", "expr": "speedtest_download_bits_per_second{}",
@ -99,7 +98,6 @@
"color": { "color": {
"mode": "thresholds" "mode": "thresholds"
}, },
"custom": {},
"mappings": [ "mappings": [
{ {
"id": 0, "id": 0,
@ -135,7 +133,7 @@
"id": 10, "id": 10,
"interval": null, "interval": null,
"links": [], "links": [],
"maxDataPoints": 1000, "maxDataPoints": 50000,
"options": { "options": {
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
@ -149,7 +147,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "7.4.5", "pluginVersion": "7.5.6",
"targets": [ "targets": [
{ {
"expr": "speedtest_upload_bits_per_second{}", "expr": "speedtest_upload_bits_per_second{}",
@ -171,7 +169,6 @@
"color": { "color": {
"mode": "thresholds" "mode": "thresholds"
}, },
"custom": {},
"decimals": 2, "decimals": 2,
"mappings": [ "mappings": [
{ {
@ -208,7 +205,7 @@
"id": 12, "id": 12,
"interval": null, "interval": null,
"links": [], "links": [],
"maxDataPoints": 1000, "maxDataPoints": 50000,
"options": { "options": {
"orientation": "horizontal", "orientation": "horizontal",
"reduceOptions": { "reduceOptions": {
@ -222,7 +219,7 @@
"showThresholdMarkers": true, "showThresholdMarkers": true,
"text": {} "text": {}
}, },
"pluginVersion": "7.4.5", "pluginVersion": "7.5.6",
"targets": [ "targets": [
{ {
"expr": "speedtest_ping_latency_milliseconds", "expr": "speedtest_ping_latency_milliseconds",
@ -291,6 +288,7 @@
}, },
"id": 6, "id": 6,
"links": [], "links": [],
"maxDataPoints": 50000,
"options": { "options": {
"graph": {}, "graph": {},
"legend": { "legend": {
@ -359,9 +357,7 @@
}, },
"datasource": "prometheus", "datasource": "prometheus",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {},
"custom": {}
},
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
@ -426,9 +422,7 @@
"dashes": false, "dashes": false,
"datasource": "prometheus", "datasource": "prometheus",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {},
"custom": {}
},
"overrides": [] "overrides": []
}, },
"fill": 1, "fill": 1,
@ -459,7 +453,7 @@
"alertThreshold": true "alertThreshold": true
}, },
"percentage": false, "percentage": false,
"pluginVersion": "7.4.5", "pluginVersion": "7.5.6",
"pointradius": 5, "pointradius": 5,
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
@ -531,7 +525,7 @@
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-24h", "from": "now-7d",
"to": "now" "to": "now"
}, },
"timepicker": { "timepicker": {
@ -562,5 +556,5 @@
"timezone": "browser", "timezone": "browser",
"title": "Internet connection", "title": "Internet connection",
"uid": "o9mIe_Aik", "uid": "o9mIe_Aik",
"version": 1 "version": 12
} }

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,15 @@ scrape_configs:
static_configs: static_configs:
- targets: ['172.17.0.1:9924'] - targets: ['172.17.0.1:9924']
# This job config only works with my internet-pi configuration currently,
# if you also have starlink enabled there. It will just error out by default
# if you don't have Starlink. Someday I'll work on making this more
# configurable...
- job_name: 'starlink'
metrics_path: /metrics
static_configs:
- targets: ['172.17.0.1:9817']
- job_name: 'ping' - job_name: 'ping'
metrics_path: /probe metrics_path: /probe
scrape_interval: 5s scrape_interval: 5s