Skip to content

Commit 467034f

Browse files
committed
capitalize sce so the phone system can pronounce it
1 parent f20de37 commit 467034f

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

grafana/provisioning/dashboards/scetv.dashboard.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
unit=SECONDS,
4949
queries=[
5050
ExpressionAndLegendPair(
51-
expression='time() - process_start_time_seconds{job=\"sce-tv\"}',
51+
expression='time() - process_start_time_seconds{job=\"SCE-tv\"}',
5252
legend='{{job}}'
5353
)
5454
],
@@ -71,7 +71,7 @@
7171
unit=BITS_SEC,
7272
queries=[
7373
ExpressionAndLegendPair(
74-
expression='data_downloaded_total{job="sce-tv"} * 8 / download_time_sum',
74+
expression='data_downloaded_total{job="SCE-tv"} * 8 / download_time_sum',
7575
legend='__auto'
7676
)
7777
],
@@ -137,7 +137,7 @@
137137
unit=NUMBER_FORMAT,
138138
queries=[
139139
ExpressionAndLegendPair(
140-
expression='cache_size{job="sce-tv"}',
140+
expression='cache_size{job="SCE-tv"}',
141141
legend='__auto'
142142
)
143143
],
@@ -148,11 +148,11 @@
148148
unit=SHORT,
149149
queries=[
150150
ExpressionAndLegendPair(
151-
expression='receive_stream_running{job="sce-tv-pi"}',
151+
expression='receive_stream_running{job="SCE-tv-pi"}',
152152
legend='{{job}}'
153153
),
154154
ExpressionAndLegendPair(
155-
expression='stream_state{job="sce-tv"}',
155+
expression='stream_state{job="SCE-tv"}',
156156
legend='{{video_type}}'
157157
),
158158
],

grafana/provisioning/dashboards/sign2.dashboard.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
title="Sign last updated",
1010
queries=[
1111
ExpressionAndLegendPair(
12-
'time() - sign_last_updated{job="sce-sign2"}',
12+
'time() - sign_last_updated{job="SCE-sign2"}',
1313
),
1414
],
1515
unit=SECONDS
@@ -19,7 +19,7 @@
1919
title="Sign update error",
2020
queries=[
2121
ExpressionAndLegendPair(
22-
'sign_update_error{job="sce-sign2"}'
22+
'sign_update_error{job="SCE-sign2"}'
2323
)
2424
],
2525
)
@@ -28,7 +28,7 @@
2828
title="LeetCode API Error",
2929
queries=[
3030
ExpressionAndLegendPair(
31-
'leetcode_api_error{job="sce-sign2"}'
31+
'leetcode_api_error{job="SCE-sign2"}'
3232
)
3333
],
3434
)
@@ -37,7 +37,7 @@
3737
title="Endpoint hits",
3838
queries=[
3939
ExpressionAndLegendPair(
40-
'endpoint_hits_total{job="sce-sign2", path!~"/metrics|.*[.].*"}',
40+
'endpoint_hits_total{job="SCE-sign2", path!~"/metrics|.*[.].*"}',
4141
"{{code}} {{path}}",
4242
)
4343
],
@@ -47,7 +47,7 @@
4747
title="LeetCode API Response Codes",
4848
queries=[
4949
ExpressionAndLegendPair(
50-
'leetcode_api_response_codes_total{job="sce-sign2"}',
50+
'leetcode_api_response_codes_total{job="SCE-sign2"}',
5151
"{{code}}",
5252
)
5353
],
@@ -57,7 +57,7 @@
5757
title="LeetCode API latency",
5858
queries=[
5959
ExpressionAndLegendPair(
60-
'leetcode_api_latency_sum / leetcode_api_latency_count{job="sce-sign2"}',
60+
'leetcode_api_latency_sum / leetcode_api_latency_count{job="SCE-sign2"}',
6161
)
6262
],
6363
)
@@ -66,7 +66,7 @@
6666
title="Container Uptime",
6767
queries=[
6868
ExpressionAndLegendPair(
69-
'time() - process_start_time_seconds{job="sce-sign2"}',
69+
'time() - process_start_time_seconds{job="SCE-sign2"}',
7070
)
7171
],
7272
unit=SECONDS
@@ -76,7 +76,7 @@
7676
title="WAV Last Sent",
7777
queries=[
7878
ExpressionAndLegendPair(
79-
'time() - wav_last_sent{job="sce-sign2"}',
79+
'time() - wav_last_sent{job="SCE-sign2"}',
8080
)
8181
],
8282
unit=SECONDS
@@ -86,7 +86,7 @@
8686
title="WAV Last Generated",
8787
queries=[
8888
ExpressionAndLegendPair(
89-
'time() - wav_last_generated{job="sce-sign2"}',
89+
'time() - wav_last_generated{job="SCE-sign2"}',
9090
)
9191
],
9292
unit=SECONDS

grafana/provisioning/dashboards/ssh.dashboard.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"options": {
1414
"mode": "exclude",
1515
"names": [
16-
"sce-printer"
16+
"SCE-printer"
1717
],
1818
"prefix": "All except:",
1919
"readOnly": True
@@ -65,7 +65,7 @@
6565
title='Container Health',
6666
queries=[
6767
ExpressionAndLegendPair(
68-
expression='up{job=~"led-sign|delen|sce-printer"}',
68+
expression='up{job=~"led-sign|delen|SCE-printer"}',
6969
legend='{{job}}',
7070
),
7171
ExpressionAndLegendPair(
@@ -82,7 +82,7 @@
8282
title='Container Uptime',
8383
queries=[
8484
ExpressionAndLegendPair(
85-
expression='time() - process_start_time_seconds{job=~\"led-sign|delen|sce-printer\"}',
85+
expression='time() - process_start_time_seconds{job=~\"led-sign|delen|SCE-printer\"}',
8686
legend='{{job}}',
8787
)],
8888
panel_type_enum=PanelType.STAT,

prometheus/alert_rules.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ groups:
8787
summary: The printer has no more ink
8888
description: Percent is 0
8989
- alert: StreamNotBeingReceived
90-
expr: receive_stream_running{job="sce-tv-pi"} != 1
90+
expr: receive_stream_running{job="SCE-tv-pi"} != 1
9191
for: 1m
9292
labels:
9393
severity: critical

prometheus/prometheus.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ global:
33

44

55
scrape_configs:
6-
- job_name: 'sce-printer'
6+
- job_name: 'SCE-printer'
77
static_configs:
8-
- targets: ['sce-printer.poweredge:9000']
8+
- targets: ['SCE-printer.poweredge:9000']
99

1010
- job_name: 'led-sign'
1111
static_configs:
1212
- targets: ['192.168.69.143:80']
1313

14-
- job_name: 'sce-tv'
14+
- job_name: 'SCE-tv'
1515
static_configs:
1616
- targets: ['gyat_server:5001']
1717

18-
- job_name: 'sce-tv-pi'
18+
- job_name: 'SCE-tv-pi'
1919
static_configs:
2020
- targets: ['192.168.69.141:8000']
2121

2222
- job_name: 'poweredge-2950-node-exporter'
2323
static_configs:
2424
- targets: [ 'poweredge-2950-node-exporter:9100' ]
2525

26-
- job_name: 'sce-sign2'
26+
- job_name: 'SCE-sign2'
2727
static_configs:
2828
- targets: ['192.168.69.123:8000']
2929

system_status/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_prometheus_data() -> list[PrometheusData]:
9090
{
9191
"metric": {
9292
"instance": "192.168.69.141:8000",
93-
"job": "sce-tv-pi"
93+
"job": "SCE-tv-pi"
9494
},
9595
"values": [
9696
[1753591741, "1"],

0 commit comments

Comments
 (0)