Skip to content

Commit 5ab64bb

Browse files
authored
Merge pull request #25 from jianxiaoguo/main
chore(grafana): influx dashborad disk size
2 parents 009c65c + 0362ce2 commit 5ab64bb

3 files changed

Lines changed: 21 additions & 69 deletions

File tree

grafana/rootfs/usr/share/grafana/api/dashboards/drycc_component_health.json

Lines changed: 17 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"editable": true,
2323
"fiscalYearStartMonth": 0,
2424
"graphTooltip": 0,
25-
"id": 6,
25+
"id": null,
2626
"links": [],
2727
"liveNow": false,
2828
"panels": [
@@ -314,10 +314,7 @@
314314
"targets": [
315315
{
316316
"alias": "$tag_pod_name",
317-
"datasource": {
318-
"type": "influxdb",
319-
"uid": "hg0D_Li4z"
320-
},
317+
"datasource": null,
321318
"dsType": "influxdb",
322319
"groupBy": [
323320
{
@@ -428,10 +425,7 @@
428425
"targets": [
429426
{
430427
"alias": "$tag_pod_name",
431-
"datasource": {
432-
"type": "influxdb",
433-
"uid": "hg0D_Li4z"
434-
},
428+
"datasource": null,
435429
"dsType": "influxdb",
436430
"groupBy": [
437431
{
@@ -554,10 +548,7 @@
554548
"targets": [
555549
{
556550
"alias": "$tag_pod_name",
557-
"datasource": {
558-
"type": "influxdb",
559-
"uid": "hg0D_Li4z"
560-
},
551+
"datasource": null,
561552
"dsType": "influxdb",
562553
"groupBy": [
563554
{
@@ -668,10 +659,7 @@
668659
"targets": [
669660
{
670661
"alias": "$tag_pod_name",
671-
"datasource": {
672-
"type": "influxdb",
673-
"uid": "hg0D_Li4z"
674-
},
662+
"datasource": null,
675663
"dsType": "influxdb",
676664
"groupBy": [
677665
{
@@ -794,10 +782,7 @@
794782
"targets": [
795783
{
796784
"alias": "$tag_pod_name",
797-
"datasource": {
798-
"type": "influxdb",
799-
"uid": "hg0D_Li4z"
800-
},
785+
"datasource": null,
801786
"dsType": "influxdb",
802787
"groupBy": [
803788
{
@@ -908,10 +893,7 @@
908893
"targets": [
909894
{
910895
"alias": "$tag_pod_name",
911-
"datasource": {
912-
"type": "influxdb",
913-
"uid": "hg0D_Li4z"
914-
},
896+
"datasource": null,
915897
"dsType": "influxdb",
916898
"groupBy": [
917899
{
@@ -1265,10 +1247,7 @@
12651247
"targets": [
12661248
{
12671249
"alias": "$tag_pod_name",
1268-
"datasource": {
1269-
"type": "influxdb",
1270-
"uid": "hg0D_Li4z"
1271-
},
1250+
"datasource": null,
12721251
"dsType": "influxdb",
12731252
"groupBy": [
12741253
{
@@ -1377,10 +1356,7 @@
13771356
"targets": [
13781357
{
13791358
"alias": "$tag_pod_name",
1380-
"datasource": {
1381-
"type": "influxdb",
1382-
"uid": "hg0D_Li4z"
1383-
},
1359+
"datasource": null,
13841360
"dsType": "influxdb",
13851361
"groupBy": [
13861362
{
@@ -1963,10 +1939,7 @@
19631939
"targets": [
19641940
{
19651941
"alias": "$tag_pod_name",
1966-
"datasource": {
1967-
"type": "influxdb",
1968-
"uid": "hg0D_Li4z"
1969-
},
1942+
"datasource": null,
19701943
"dsType": "influxdb",
19711944
"groupBy": [
19721945
{
@@ -2075,10 +2048,7 @@
20752048
"targets": [
20762049
{
20772050
"alias": "$tag_pod_name",
2078-
"datasource": {
2079-
"type": "influxdb",
2080-
"uid": "hg0D_Li4z"
2081-
},
2051+
"datasource": null,
20822052
"dsType": "influxdb",
20832053
"groupBy": [
20842054
{
@@ -2431,10 +2401,7 @@
24312401
"targets": [
24322402
{
24332403
"alias": "$tag_pod_name",
2434-
"datasource": {
2435-
"type": "influxdb",
2436-
"uid": "hg0D_Li4z"
2437-
},
2404+
"datasource": null,
24382405
"dsType": "influxdb",
24392406
"groupBy": [
24402407
{
@@ -2543,10 +2510,7 @@
25432510
"targets": [
25442511
{
25452512
"alias": "$tag_pod_name",
2546-
"datasource": {
2547-
"type": "influxdb",
2548-
"uid": "hg0D_Li4z"
2549-
},
2513+
"datasource": null,
25502514
"dsType": "influxdb",
25512515
"groupBy": [
25522516
{
@@ -2669,10 +2633,7 @@
26692633
"targets": [
26702634
{
26712635
"alias": "$tag_pod_name",
2672-
"datasource": {
2673-
"type": "influxdb",
2674-
"uid": "hg0D_Li4z"
2675-
},
2636+
"datasource": null,
26762637
"dsType": "influxdb",
26772638
"groupBy": [
26782639
{
@@ -2783,10 +2744,7 @@
27832744
"targets": [
27842745
{
27852746
"alias": "$tag_pod_name",
2786-
"datasource": {
2787-
"type": "influxdb",
2788-
"uid": "hg0D_Li4z"
2789-
},
2747+
"datasource": null,
27902748
"dsType": "influxdb",
27912749
"groupBy": [
27922750
{
@@ -2909,10 +2867,7 @@
29092867
"targets": [
29102868
{
29112869
"alias": "$tag_pod_name",
2912-
"datasource": {
2913-
"type": "influxdb",
2914-
"uid": "hg0D_Li4z"
2915-
},
2870+
"datasource": null,
29162871
"dsType": "influxdb",
29172872
"groupBy": [
29182873
{
@@ -3023,10 +2978,7 @@
30232978
"targets": [
30242979
{
30252980
"alias": "$tag_pod_name",
3026-
"datasource": {
3027-
"type": "influxdb",
3028-
"uid": "hg0D_Li4z"
3029-
},
2981+
"datasource": null,
30302982
"dsType": "influxdb",
30312983
"groupBy": [
30322984
{

grafana/rootfs/usr/share/grafana/api/dashboards/influx.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,14 +348,14 @@
348348
"measurement": "kubernetes_pod_container",
349349
"orderByTime": "ASC",
350350
"policy": "default",
351-
"query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"kubernetes_pod_container\")\n |> filter(fn: (r) => r[\"_field\"] == \"memory_usage_bytes\")\n |> filter(fn: (r) => r[\"container_name\"] =~ /drycc-influxdb/)\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
351+
"query": "from(bucket: v.bucket)\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"storage_shard_disk_size\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")",
352352
"refId": "A",
353353
"resultFormat": "time_series",
354354
"select": [
355355
[
356356
{
357357
"params": [
358-
"memory_usage_bytes"
358+
"storage_shard_disk_size"
359359
],
360360
"type": "field"
361361
},
@@ -375,7 +375,7 @@
375375
}
376376
],
377377
"thresholds": "",
378-
"title": "Memory",
378+
"title": "Shard disk size",
379379
"type": "singlestat",
380380
"valueFontSize": "200%",
381381
"valueMaps": [

grafana/rootfs/usr/share/grafana/api/dashboards/kube_health.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"editable": true,
2323
"fiscalYearStartMonth": 0,
2424
"graphTooltip": 0,
25-
"id": 3,
25+
"id": null,
2626
"iteration": 1660728936662,
2727
"links": [],
2828
"liveNow": false,

0 commit comments

Comments
 (0)