Skip to content

Commit 38229ab

Browse files
committed
Update starlette-exporter
1 parent f88da6a commit 38229ab

File tree

6 files changed

+2289
-2465
lines changed

6 files changed

+2289
-2465
lines changed

day_4/post_deployment_pipeline/grafana/provisioning/dashboards/template_linux.json

Lines changed: 18 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,4 @@
11
{
2-
"__inputs": [
3-
{
4-
"name": "DS_PROMETHEUS",
5-
"label": "Prometheus",
6-
"description": "",
7-
"type": "datasource",
8-
"pluginId": "prometheus",
9-
"pluginName": "Prometheus"
10-
}
11-
],
12-
"__requires": [
13-
{
14-
"type": "panel",
15-
"id": "gauge",
16-
"name": "Gauge",
17-
"version": ""
18-
},
19-
{
20-
"type": "grafana",
21-
"id": "grafana",
22-
"name": "Grafana",
23-
"version": "8.0.5"
24-
},
25-
{
26-
"type": "panel",
27-
"id": "graph",
28-
"name": "Graph (old)",
29-
"version": ""
30-
},
31-
{
32-
"type": "datasource",
33-
"id": "prometheus",
34-
"name": "Prometheus",
35-
"version": "1.0.0"
36-
},
37-
{
38-
"type": "panel",
39-
"id": "stat",
40-
"name": "Stat",
41-
"version": ""
42-
},
43-
{
44-
"type": "panel",
45-
"id": "text",
46-
"name": "Text",
47-
"version": ""
48-
},
49-
{
50-
"type": "panel",
51-
"id": "timeseries",
52-
"name": "Time series",
53-
"version": ""
54-
}
55-
],
562
"annotations": {
573
"list": [
584
{
@@ -69,8 +15,8 @@
6915
"editable": true,
7016
"gnetId": null,
7117
"graphTooltip": 0,
72-
"id": null,
73-
"iteration": 1625989983631,
18+
"id": 1,
19+
"iteration": 1630569218058,
7420
"links": [],
7521
"panels": [
7622
{
@@ -521,7 +467,8 @@
521467
"fieldConfig": {
522468
"defaults": {
523469
"color": {
524-
"mode": "thresholds"
470+
"fixedColor": "purple",
471+
"mode": "fixed"
525472
},
526473
"mappings": [],
527474
"thresholds": {
@@ -530,10 +477,6 @@
530477
{
531478
"color": "green",
532479
"value": null
533-
},
534-
{
535-
"color": "red",
536-
"value": 80
537480
}
538481
]
539482
}
@@ -566,7 +509,7 @@
566509
"targets": [
567510
{
568511
"exemplar": true,
569-
"expr": "sum by (path) (fastapi_requests_total{status_code !=\"500\", path!=\"/metrics\"})",
512+
"expr": "sum by (path) (fastapi_requests_total{status_code !=\"500\", path!=\"/metrics\", path!=\"/openapi.json\", path!=\"/docs\"})",
570513
"interval": "",
571514
"legendFormat": "Endpoint: {{path}}",
572515
"queryType": "randomWalk",
@@ -1907,67 +1850,6 @@
19071850
"timeShift": null,
19081851
"type": "text"
19091852
},
1910-
{
1911-
"datasource": "${DS_PROMETHEUS}",
1912-
"description": "Total number of prediction requests being processed at the moment.",
1913-
"fieldConfig": {
1914-
"defaults": {
1915-
"mappings": [],
1916-
"min": 0,
1917-
"thresholds": {
1918-
"mode": "absolute",
1919-
"steps": [
1920-
{
1921-
"color": "green",
1922-
"value": null
1923-
},
1924-
{
1925-
"color": "red",
1926-
"value": 80
1927-
}
1928-
]
1929-
}
1930-
},
1931-
"overrides": []
1932-
},
1933-
"gridPos": {
1934-
"h": 8,
1935-
"w": 6,
1936-
"x": 5,
1937-
"y": 46
1938-
},
1939-
"id": 20,
1940-
"options": {
1941-
"colorMode": "value",
1942-
"graphMode": "area",
1943-
"justifyMode": "center",
1944-
"orientation": "auto",
1945-
"reduceOptions": {
1946-
"calcs": [
1947-
"last"
1948-
],
1949-
"fields": "",
1950-
"values": false
1951-
},
1952-
"text": {},
1953-
"textMode": "value"
1954-
},
1955-
"pluginVersion": "8.0.5",
1956-
"targets": [
1957-
{
1958-
"exemplar": true,
1959-
"expr": "fastapi_request_in_progress{path = \"/predict\"}",
1960-
"interval": "",
1961-
"legendFormat": "",
1962-
"queryType": "randomWalk",
1963-
"refId": "A"
1964-
}
1965-
],
1966-
"timeFrom": null,
1967-
"timeShift": null,
1968-
"title": "Predictions Requests In Progress",
1969-
"type": "stat"
1970-
},
19711853
{
19721854
"datasource": "${DS_PROMETHEUS}",
19731855
"description": "The amount of time taken for prediction endpoint in the API to respond.",
@@ -2024,8 +1906,8 @@
20241906
},
20251907
"gridPos": {
20261908
"h": 8,
2027-
"w": 13,
2028-
"x": 11,
1909+
"w": 19,
1910+
"x": 5,
20291911
"y": 46
20301912
},
20311913
"id": 17,
@@ -2374,7 +2256,11 @@
23742256
},
23752257
{
23762258
"allValue": null,
2377-
"current": {},
2259+
"current": {
2260+
"selected": false,
2261+
"text": "node_exporter",
2262+
"value": "node_exporter"
2263+
},
23782264
"datasource": "${DS_PROMETHEUS}",
23792265
"definition": "label_values(node_uname_info,job)",
23802266
"description": null,
@@ -2397,7 +2283,11 @@
23972283
},
23982284
{
23992285
"allValue": null,
2400-
"current": {},
2286+
"current": {
2287+
"selected": false,
2288+
"text": "node:9100",
2289+
"value": "node:9100"
2290+
},
24012291
"datasource": "${DS_PROMETHEUS}",
24022292
"definition": "label_values(node_uname_info{job=\"$job\"}, instance)",
24032293
"description": null,
@@ -2453,5 +2343,5 @@
24532343
"timezone": "browser",
24542344
"title": "Model Monitoring Dashboard (Linux)",
24552345
"uid": "uRW9B4ink",
2456-
"version": 20
2346+
"version": 3
24572347
}

0 commit comments

Comments
 (0)