github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/config/grafana/dashboard-dockers.json (about)

     1  {
     2    "annotations": {
     3      "list": [
     4        {
     5          "builtIn": 1,
     6          "datasource": {
     7            "type": "grafana",
     8            "uid": "-- Grafana --"
     9          },
    10          "enable": true,
    11          "hide": true,
    12          "iconColor": "rgba(0, 211, 255, 1)",
    13          "name": "Annotations & Alerts",
    14          "target": {
    15            "limit": 100,
    16            "matchAny": false,
    17            "tags": [],
    18            "type": "dashboard"
    19          },
    20          "type": "dashboard"
    21        }
    22      ]
    23    },
    24    "editable": true,
    25    "fiscalYearStartMonth": 0,
    26    "graphTooltip": 0,
    27    "id": 1,
    28    "links": [],
    29    "liveNow": false,
    30    "panels": [
    31      {
    32        "datasource": {
    33          "type": "postgres",
    34          "uid": "P51543FE1D179F612"
    35        },
    36        "fieldConfig": {
    37          "defaults": {
    38            "color": {
    39              "mode": "palette-classic"
    40            },
    41            "custom": {
    42              "axisCenteredZero": false,
    43              "axisColorMode": "text",
    44              "axisLabel": "",
    45              "axisPlacement": "auto",
    46              "barAlignment": 0,
    47              "drawStyle": "line",
    48              "fillOpacity": 0,
    49              "gradientMode": "none",
    50              "hideFrom": {
    51                "legend": false,
    52                "tooltip": false,
    53                "viz": false
    54              },
    55              "lineInterpolation": "linear",
    56              "lineWidth": 1,
    57              "pointSize": 5,
    58              "scaleDistribution": {
    59                "type": "linear"
    60              },
    61              "showPoints": "auto",
    62              "spanNulls": false,
    63              "stacking": {
    64                "group": "A",
    65                "mode": "none"
    66              },
    67              "thresholdsStyle": {
    68                "mode": "off"
    69              }
    70            },
    71            "mappings": [],
    72            "thresholds": {
    73              "mode": "absolute",
    74              "steps": [
    75                {
    76                  "color": "green",
    77                  "value": null
    78                },
    79                {
    80                  "color": "red",
    81                  "value": 80
    82                }
    83              ]
    84            },
    85            "unit": "percent"
    86          },
    87          "overrides": []
    88        },
    89        "gridPos": {
    90          "h": 9,
    91          "w": 12,
    92          "x": 0,
    93          "y": 0
    94        },
    95        "id": 2,
    96        "options": {
    97          "legend": {
    98            "calcs": [],
    99            "displayMode": "list",
   100            "placement": "bottom",
   101            "showLegend": true
   102          },
   103          "tooltip": {
   104            "mode": "single",
   105            "sort": "none"
   106          }
   107        },
   108        "targets": [
   109          {
   110            "datasource": {
   111              "type": "postgres",
   112              "uid": "P51543FE1D179F612"
   113            },
   114            "format": "time_series",
   115            "group": [
   116              {
   117                "params": [
   118                  "$__interval",
   119                  "none"
   120                ],
   121                "type": "time"
   122              }
   123            ],
   124            "metricColumn": "none",
   125            "rawQuery": true,
   126            "rawSql": "SELECT\n  $__timeGroupAlias(\"time\",$__interval),\n  avg(usage_percent) AS \"cpu\",\n  container_name as docker\nFROM docker_container_cpu\nWHERE\n  $__timeFilter(\"time\") AND\n  container_name in($docker)\nGROUP BY time, container_name\nORDER BY time ASC",
   127            "refId": "A",
   128            "select": [
   129              [
   130                {
   131                  "params": [
   132                    "usage_percent"
   133                  ],
   134                  "type": "column"
   135                },
   136                {
   137                  "params": [
   138                    "avg"
   139                  ],
   140                  "type": "aggregate"
   141                },
   142                {
   143                  "params": [
   144                    "l"
   145                  ],
   146                  "type": "alias"
   147                }
   148              ]
   149            ],
   150            "table": "docker_container_cpu",
   151            "timeColumn": "\"time\"",
   152            "timeColumnType": "timestamp",
   153            "where": [
   154              {
   155                "name": "$__timeFilter",
   156                "params": [],
   157                "type": "macro"
   158              },
   159              {
   160                "datatype": "text",
   161                "name": "",
   162                "params": [
   163                  "container_name",
   164                  "=",
   165                  "'$docker'"
   166                ],
   167                "type": "expression"
   168              }
   169            ]
   170          }
   171        ],
   172        "title": "CPU",
   173        "type": "timeseries"
   174      },
   175      {
   176        "datasource": {
   177          "type": "postgres",
   178          "uid": "P51543FE1D179F612"
   179        },
   180        "fieldConfig": {
   181          "defaults": {
   182            "color": {
   183              "mode": "palette-classic"
   184            },
   185            "custom": {
   186              "axisCenteredZero": false,
   187              "axisColorMode": "text",
   188              "axisLabel": "",
   189              "axisPlacement": "auto",
   190              "barAlignment": 0,
   191              "drawStyle": "line",
   192              "fillOpacity": 0,
   193              "gradientMode": "none",
   194              "hideFrom": {
   195                "legend": false,
   196                "tooltip": false,
   197                "viz": false
   198              },
   199              "lineInterpolation": "linear",
   200              "lineWidth": 1,
   201              "pointSize": 5,
   202              "scaleDistribution": {
   203                "type": "linear"
   204              },
   205              "showPoints": "auto",
   206              "spanNulls": false,
   207              "stacking": {
   208                "group": "A",
   209                "mode": "none"
   210              },
   211              "thresholdsStyle": {
   212                "mode": "off"
   213              }
   214            },
   215            "mappings": [],
   216            "thresholds": {
   217              "mode": "absolute",
   218              "steps": [
   219                {
   220                  "color": "green",
   221                  "value": null
   222                },
   223                {
   224                  "color": "red",
   225                  "value": 80
   226                }
   227              ]
   228            },
   229            "unit": "percent"
   230          },
   231          "overrides": []
   232        },
   233        "gridPos": {
   234          "h": 9,
   235          "w": 12,
   236          "x": 12,
   237          "y": 0
   238        },
   239        "id": 3,
   240        "options": {
   241          "legend": {
   242            "calcs": [],
   243            "displayMode": "list",
   244            "placement": "bottom",
   245            "showLegend": true
   246          },
   247          "tooltip": {
   248            "mode": "single",
   249            "sort": "none"
   250          }
   251        },
   252        "targets": [
   253          {
   254            "datasource": {
   255              "type": "postgres",
   256              "uid": "P51543FE1D179F612"
   257            },
   258            "format": "time_series",
   259            "group": [],
   260            "metricColumn": "none",
   261            "rawQuery": true,
   262            "rawSql": "SELECT\n  \"time\" AS \"time\",\n  avg(usage_percent) AS \"mem\",\n  container_name as docker\nFROM docker_container_mem\nWHERE\n  $__timeFilter(\"time\") AND container_name in($docker)\nGROUP BY time, container_name\nORDER BY time ASC\n",
   263            "refId": "A",
   264            "select": [
   265              [
   266                {
   267                  "params": [
   268                    "usage_percent"
   269                  ],
   270                  "type": "column"
   271                },
   272                {
   273                  "params": [
   274                    "avg"
   275                  ],
   276                  "type": "aggregate"
   277                },
   278                {
   279                  "params": [
   280                    "l"
   281                  ],
   282                  "type": "alias"
   283                }
   284              ]
   285            ],
   286            "table": "docker_container_mem",
   287            "timeColumn": "\"time\"",
   288            "timeColumnType": "timestamp",
   289            "where": [
   290              {
   291                "name": "$__timeFilter",
   292                "params": [],
   293                "type": "macro"
   294              }
   295            ]
   296          }
   297        ],
   298        "title": "MEM",
   299        "type": "timeseries"
   300      },
   301      {
   302        "datasource": {
   303          "type": "postgres",
   304          "uid": "P51543FE1D179F612"
   305        },
   306        "fieldConfig": {
   307          "defaults": {
   308            "color": {
   309              "mode": "palette-classic"
   310            },
   311            "custom": {
   312              "axisCenteredZero": false,
   313              "axisColorMode": "text",
   314              "axisLabel": "",
   315              "axisPlacement": "auto",
   316              "barAlignment": 0,
   317              "drawStyle": "line",
   318              "fillOpacity": 0,
   319              "gradientMode": "none",
   320              "hideFrom": {
   321                "legend": false,
   322                "tooltip": false,
   323                "viz": false
   324              },
   325              "lineInterpolation": "linear",
   326              "lineWidth": 1,
   327              "pointSize": 5,
   328              "scaleDistribution": {
   329                "type": "linear"
   330              },
   331              "showPoints": "auto",
   332              "spanNulls": false,
   333              "stacking": {
   334                "group": "A",
   335                "mode": "none"
   336              },
   337              "thresholdsStyle": {
   338                "mode": "off"
   339              }
   340            },
   341            "mappings": [],
   342            "thresholds": {
   343              "mode": "absolute",
   344              "steps": [
   345                {
   346                  "color": "green",
   347                  "value": null
   348                },
   349                {
   350                  "color": "red",
   351                  "value": 80
   352                }
   353              ]
   354            },
   355            "unit": "bytes"
   356          },
   357          "overrides": []
   358        },
   359        "gridPos": {
   360          "h": 9,
   361          "w": 12,
   362          "x": 0,
   363          "y": 9
   364        },
   365        "id": 4,
   366        "options": {
   367          "legend": {
   368            "calcs": [],
   369            "displayMode": "list",
   370            "placement": "bottom",
   371            "showLegend": true
   372          },
   373          "tooltip": {
   374            "mode": "single",
   375            "sort": "none"
   376          }
   377        },
   378        "targets": [
   379          {
   380            "datasource": {
   381              "type": "postgres",
   382              "uid": "P51543FE1D179F612"
   383            },
   384            "format": "time_series",
   385            "group": [],
   386            "metricColumn": "none",
   387            "rawQuery": true,
   388            "rawSql": "SELECT\n  \"time\" AS \"time\",\n  avg(tx_bytes) - lag(avg(tx_bytes)) OVER (PARTITION BY container_name ORDER BY \"time\") AS \"tx_bytes\",\n  -1 * (avg(rx_bytes) - lag(avg(rx_bytes)) OVER (PARTITION BY container_name ORDER BY \"time\")) AS \"rx_bytes\",\n  container_name as docker\nFROM docker_container_net\nWHERE\n  $__timeFilter(\"time\") AND container_name in($docker)\nGROUP BY time, container_name\nORDER BY time ASC\n",
   389            "refId": "A",
   390            "select": [
   391              [
   392                {
   393                  "params": [
   394                    "usage_percent"
   395                  ],
   396                  "type": "column"
   397                },
   398                {
   399                  "params": [
   400                    "avg"
   401                  ],
   402                  "type": "aggregate"
   403                },
   404                {
   405                  "params": [
   406                    "delta"
   407                  ],
   408                  "type": "window"
   409                },
   410                {
   411                  "params": [
   412                    "l"
   413                  ],
   414                  "type": "alias"
   415                }
   416              ]
   417            ],
   418            "table": "docker_container_mem",
   419            "timeColumn": "\"time\"",
   420            "timeColumnType": "timestamp",
   421            "where": [
   422              {
   423                "name": "$__timeFilter",
   424                "params": [],
   425                "type": "macro"
   426              }
   427            ]
   428          }
   429        ],
   430        "title": "NET",
   431        "type": "timeseries"
   432      },
   433      {
   434        "datasource": {
   435          "type": "postgres",
   436          "uid": "P51543FE1D179F612"
   437        },
   438        "fieldConfig": {
   439          "defaults": {
   440            "color": {
   441              "mode": "palette-classic"
   442            },
   443            "custom": {
   444              "axisCenteredZero": false,
   445              "axisColorMode": "text",
   446              "axisLabel": "",
   447              "axisPlacement": "auto",
   448              "barAlignment": 0,
   449              "drawStyle": "line",
   450              "fillOpacity": 0,
   451              "gradientMode": "none",
   452              "hideFrom": {
   453                "legend": false,
   454                "tooltip": false,
   455                "viz": false
   456              },
   457              "lineInterpolation": "linear",
   458              "lineWidth": 1,
   459              "pointSize": 5,
   460              "scaleDistribution": {
   461                "type": "linear"
   462              },
   463              "showPoints": "auto",
   464              "spanNulls": false,
   465              "stacking": {
   466                "group": "A",
   467                "mode": "none"
   468              },
   469              "thresholdsStyle": {
   470                "mode": "off"
   471              }
   472            },
   473            "mappings": [],
   474            "thresholds": {
   475              "mode": "absolute",
   476              "steps": [
   477                {
   478                  "color": "green",
   479                  "value": null
   480                },
   481                {
   482                  "color": "red",
   483                  "value": 80
   484                }
   485              ]
   486            },
   487            "unit": "bytes"
   488          },
   489          "overrides": []
   490        },
   491        "gridPos": {
   492          "h": 9,
   493          "w": 12,
   494          "x": 12,
   495          "y": 9
   496        },
   497        "id": 5,
   498        "options": {
   499          "legend": {
   500            "calcs": [],
   501            "displayMode": "list",
   502            "placement": "bottom",
   503            "showLegend": true
   504          },
   505          "tooltip": {
   506            "mode": "single",
   507            "sort": "none"
   508          }
   509        },
   510        "targets": [
   511          {
   512            "datasource": {
   513              "type": "postgres",
   514              "uid": "P51543FE1D179F612"
   515            },
   516            "format": "time_series",
   517            "group": [],
   518            "metricColumn": "none",
   519            "rawQuery": true,
   520            "rawSql": "SELECT\n  \"time\" AS \"time\",\n  avg(io_service_bytes_recursive_read) - lag(avg(io_service_bytes_recursive_read)) OVER (PARTITION BY container_name ORDER BY \"time\") AS \"read\",\n  -1 * (avg(io_service_bytes_recursive_write) - lag(avg(io_service_bytes_recursive_write)) OVER (PARTITION BY container_name ORDER BY \"time\")) AS \"write\",\n  container_name as docker\nFROM docker_container_blkio\nWHERE\n  $__timeFilter(\"time\") AND container_name in($docker)\nGROUP BY time, container_name\nORDER BY time ASC\n",
   521            "refId": "A",
   522            "select": [
   523              [
   524                {
   525                  "params": [
   526                    "usage_percent"
   527                  ],
   528                  "type": "column"
   529                },
   530                {
   531                  "params": [
   532                    "avg"
   533                  ],
   534                  "type": "aggregate"
   535                },
   536                {
   537                  "params": [
   538                    "delta"
   539                  ],
   540                  "type": "window"
   541                },
   542                {
   543                  "params": [
   544                    "l"
   545                  ],
   546                  "type": "alias"
   547                }
   548              ]
   549            ],
   550            "table": "docker_container_mem",
   551            "timeColumn": "\"time\"",
   552            "timeColumnType": "timestamp",
   553            "where": [
   554              {
   555                "name": "$__timeFilter",
   556                "params": [],
   557                "type": "macro"
   558              }
   559            ]
   560          }
   561        ],
   562        "title": "DISK",
   563        "type": "timeseries"
   564      }
   565    ],
   566    "refresh": false,
   567    "schemaVersion": 37,
   568    "style": "dark",
   569    "tags": [],
   570    "templating": {
   571      "list": [
   572        {
   573          "current": {
   574            "selected": true,
   575            "text": [
   576              "supernets2-json-rpc",
   577              "supernets2-pool-db",
   578              "supernets2-sequencer"
   579            ],
   580            "value": [
   581              "supernets2-json-rpc",
   582              "supernets2-pool-db",
   583              "supernets2-sequencer"
   584            ]
   585          },
   586          "datasource": {
   587            "type": "postgres",
   588            "uid": "P51543FE1D179F612"
   589          },
   590          "definition": "select distinct(container_name) from docker_container_cpu",
   591          "hide": 0,
   592          "includeAll": true,
   593          "label": "docker",
   594          "multi": true,
   595          "name": "docker",
   596          "options": [],
   597          "query": "select distinct(container_name) from docker_container_cpu",
   598          "refresh": 1,
   599          "regex": "",
   600          "skipUrlSync": false,
   601          "sort": 0,
   602          "type": "query"
   603        }
   604      ]
   605    },
   606    "time": {
   607      "from": "now-2h",
   608      "to": "now"
   609    },
   610    "timepicker": {
   611      "refresh_intervals": [
   612        "5s",
   613        "10s",
   614        "30s",
   615        "1m",
   616        "5m",
   617        "15m",
   618        "30m",
   619        "1h",
   620        "2h",
   621        "1d"
   622      ]
   623    },
   624    "timezone": "browser",
   625    "title": "Dockers",
   626    "uid": "FBW3SsdVk",
   627    "version": 1,
   628    "weekStart": "monday"
   629  }