Skip to content

Commit

Permalink
12UL 2023 Update by bobby nutty francis flynn redfast00 klagoeth
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasg committed Apr 28, 2023
1 parent 60db053 commit b3d5e78
Show file tree
Hide file tree
Showing 18 changed files with 3,007 additions and 1,667 deletions.
6 changes: 3 additions & 3 deletions config_prod.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
MONITORING_MASTER_PASSWORD=supersecretpassword
MONITORING_DB_PASSWORD=foobar
MONITORING_MASTER_PASSWORD=veranderditmaar
MONITORING_DB_PASSWORD=enditook

RONNY01_IP=172.12.50.101
RONNY01_PORT=8000
Expand Down Expand Up @@ -32,4 +32,4 @@ CLIENT1_IP=172.12.50.21

CLIENT2_IP=172.12.50.22

ROUTER_IP=172.12.50.1
ROUTER_IP=172.12.50.1
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ services:
- "--web.console.templates=/usr/share/prometheus/consoles"
network_mode: host
depends_on:
depends_on:
- blackbox
- snmp
# ports:
Expand Down
1 change: 1 addition & 0 deletions grafana/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM grafana/grafana:9.3.6
RUN grafana-cli plugins install grafana-piechart-panel
RUN grafana-cli plugins install simpod-json-datasource
RUN grafana-cli plugins install marcusolsson-json-datasource
RUN grafana-cli plugins install grafana-clock-panel


EXPOSE 3000
2 changes: 1 addition & 1 deletion grafana/config.monitoring
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
GF_SECURITY_ADMIN_PASSWORD=supersecretpassword
GF_SECURITY_ADMIN_PASSWORD=veranderditmaar
GF_USERS_ALLOW_SIGN_UP=false
9 changes: 4 additions & 5 deletions grafana/provisioning/dashboards/ExternalLapperStats.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 13,
"links": [],
"liveNow": false,
"panels": [
Expand Down Expand Up @@ -76,7 +75,7 @@
},
"showHeader": true
},
"pluginVersion": "8.5.0",
"pluginVersion": "9.3.6",
"targets": [
{
"body": "",
Expand Down Expand Up @@ -171,7 +170,7 @@
},
"showHeader": true
},
"pluginVersion": "8.5.0",
"pluginVersion": "9.3.6",
"targets": [
{
"cacheDurationSeconds": 300,
Expand Down Expand Up @@ -242,7 +241,7 @@
},
"showHeader": true
},
"pluginVersion": "8.5.0",
"pluginVersion": "9.3.6",
"targets": [
{
"body": "",
Expand Down Expand Up @@ -289,7 +288,7 @@
"type": "table"
}
],
"schemaVersion": 36,
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
Expand Down
143 changes: 101 additions & 42 deletions grafana/provisioning/dashboards/IllionGrafiek.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 14,
"iteration": 1678357333017,
"links": [],
"liveNow": false,
"panels": [
Expand All @@ -40,6 +38,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -100,7 +100,8 @@
"max"
],
"displayMode": "table",
"placement": "right"
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -113,11 +114,12 @@
"type": "postgres",
"uid": "P153BFFACB2904795"
},
"editorMode": "code",
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n $__time(\"timestamp\"),\n station_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\") AND baton_id IN ([[baton]])\nGROUP BY 1, 2\nORDER BY 1",
"rawSql": "SELECT\n $__time(\"timestamp\" - interval '2 hour'),\n station_id::text,\n -- avg(\"rssi\") as \"rssi\"\n rssi\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\" - interval '2 hour') AND baton_id IN ([[baton]])\n-- GROUP BY 1, 2\nORDER BY 1",
"refId": "A",
"select": [
[
Expand All @@ -135,6 +137,23 @@
}
]
],
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
},
"table": "detection",
"timeColumn": "\"timestamp\"",
"timeColumnType": "timestamp",
Expand Down Expand Up @@ -170,6 +189,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -213,32 +234,7 @@
},
"unit": "dBm"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"rssi 1"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": true
}
}
]
}
]
"overrides": []
},
"gridPos": {
"h": 10,
Expand All @@ -255,7 +251,8 @@
"max"
],
"displayMode": "table",
"placement": "right"
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
Expand All @@ -268,11 +265,12 @@
"type": "postgres",
"uid": "P153BFFACB2904795"
},
"editorMode": "code",
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n $__time(\"timestamp\"),\n baton_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\")\nGROUP BY 1, 2\nORDER BY 1",
"rawSql": "SELECT\n $__time(\"timestamp\" - interval '2 hour'),\n baton_id::text,\n avg(\"rssi\") as \"rssi\"\nFROM detection\nWHERE\n $__timeFilter(\"timestamp\" - interval '2 hour')\nGROUP BY 1, 2\nORDER BY 1",
"refId": "A",
"select": [
[
Expand All @@ -290,6 +288,23 @@
}
]
],
"sql": {
"columns": [
{
"parameters": [],
"type": "function"
}
],
"groupBy": [
{
"property": {
"type": "string"
},
"type": "groupBy"
}
],
"limit": 50
},
"table": "detection",
"timeColumn": "\"timestamp\"",
"timeColumnType": "timestamp",
Expand All @@ -315,44 +330,88 @@
"type": "timeseries"
}
],
"refresh": false,
"schemaVersion": 36,
"refresh": "",
"schemaVersion": 37,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"selected": false,
"text": [
"1"
"C (HILOK)",
"B (VTK)",
"K (VLK)",
"D (VGK)",
"F (VEK - Moeder Lies)",
"G (Wetenschappen - VLAK - VETO)",
"H (none)",
"I (Hermes - GFK)",
"J (Politeia)",
"L (HK)",
"M (VRG)",
"N (VPPK)",
"A (none)",
"P (SK)",
"T (Lombrosiana - VBK)",
"Q (LILA)",
"R (Antilopen)",
"O (none)",
"Y (HILOK Roze)",
"U (Blandinia)",
"V (none)",
"W (none)",
"X (none)"
],
"value": [
"1"
"2",
"3",
"4",
"5",
"7",
"8",
"9",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25"
]
},
"datasource": {
"type": "postgres",
"uid": "P153BFFACB2904795"
},
"definition": "select id from baton",
"definition": "select b.id as __value, b.name || ' (' || COALESCE(t.name, 'none') || ')' as __text from baton b\nleft join team t on b.id = t.baton_id",
"hide": 0,
"includeAll": false,
"multi": true,
"name": "baton",
"options": [],
"query": "select id from baton",
"query": "select b.id as __value, b.name || ' (' || COALESCE(t.name, 'none') || ')' as __text from baton b\nleft join team t on b.id = t.baton_id",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "2022-03-31T18:10:56.000Z",
"to": "2022-03-31T18:12:31.000Z"
"from": "now-40s",
"to": "now"
},
"timepicker": {},
"timezone": "",
Expand Down
Loading

0 comments on commit b3d5e78

Please sign in to comment.