1
1
{
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
- ],
56
2
"annotations" : {
57
3
"list" : [
58
4
{
69
15
"editable" : true ,
70
16
"gnetId" : null ,
71
17
"graphTooltip" : 0 ,
72
- "id" : null ,
73
- "iteration" : 1625989983631 ,
18
+ "id" : 1 ,
19
+ "iteration" : 1630569218058 ,
74
20
"links" : [],
75
21
"panels" : [
76
22
{
521
467
"fieldConfig" : {
522
468
"defaults" : {
523
469
"color" : {
524
- "mode" : " thresholds"
470
+ "fixedColor" : " purple" ,
471
+ "mode" : " fixed"
525
472
},
526
473
"mappings" : [],
527
474
"thresholds" : {
530
477
{
531
478
"color" : " green" ,
532
479
"value" : null
533
- },
534
- {
535
- "color" : " red" ,
536
- "value" : 80
537
480
}
538
481
]
539
482
}
566
509
"targets" : [
567
510
{
568
511
"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 \" })" ,
570
513
"interval" : " " ,
571
514
"legendFormat" : " Endpoint: {{path}}" ,
572
515
"queryType" : " randomWalk" ,
1907
1850
"timeShift" : null ,
1908
1851
"type" : " text"
1909
1852
},
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
- },
1971
1853
{
1972
1854
"datasource" : " ${DS_PROMETHEUS}" ,
1973
1855
"description" : " The amount of time taken for prediction endpoint in the API to respond." ,
2024
1906
},
2025
1907
"gridPos" : {
2026
1908
"h" : 8 ,
2027
- "w" : 13 ,
2028
- "x" : 11 ,
1909
+ "w" : 19 ,
1910
+ "x" : 5 ,
2029
1911
"y" : 46
2030
1912
},
2031
1913
"id" : 17 ,
2374
2256
},
2375
2257
{
2376
2258
"allValue" : null ,
2377
- "current" : {},
2259
+ "current" : {
2260
+ "selected" : false ,
2261
+ "text" : " node_exporter" ,
2262
+ "value" : " node_exporter"
2263
+ },
2378
2264
"datasource" : " ${DS_PROMETHEUS}" ,
2379
2265
"definition" : " label_values(node_uname_info,job)" ,
2380
2266
"description" : null ,
2397
2283
},
2398
2284
{
2399
2285
"allValue" : null ,
2400
- "current" : {},
2286
+ "current" : {
2287
+ "selected" : false ,
2288
+ "text" : " node:9100" ,
2289
+ "value" : " node:9100"
2290
+ },
2401
2291
"datasource" : " ${DS_PROMETHEUS}" ,
2402
2292
"definition" : " label_values(node_uname_info{job=\" $job\" }, instance)" ,
2403
2293
"description" : null ,
2453
2343
"timezone" : " browser" ,
2454
2344
"title" : " Model Monitoring Dashboard (Linux)" ,
2455
2345
"uid" : " uRW9B4ink" ,
2456
- "version" : 20
2346
+ "version" : 3
2457
2347
}
0 commit comments