Grafana dashboard: Freqtrade
Description: Freqtrade information from postgres database


{
  "__inputs": [
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "gauge",
      "name": "Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.0.6"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Freqtrade information from postgres database",
  "editable": true,
  "gnetId": 18305,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1627819788512,
  "links": [],
  "panels": [
    {
      "datasource": null,
      "description": "This will show profit as percent thought history.\n(fthelper: v4.4.4)",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 1,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 0,
        "y": 0
      },
      "id": 138,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "last"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg by(cluster, strategy) (freqtrade_perf_realized_pct)",
          "hide": false,
          "interval": "",
          "legendFormat": "Realized - {{ cluster }} - {{ strategy }}",
          "refId": "A"
        },
        {
          "exemplar": true,
          "expr": "avg by(cluster, strategy) (freqtrade_perf_unrealized_pct)",
          "hide": true,
          "interval": "",
          "legendFormat": "Unrealized - {{ cluster }} - {{ strategy }}",
          "refId": "B"
        }
      ],
      "title": "Strategy performance / Profit",
      "type": "timeseries"
    },
    {
      "datasource": null,
      "description": "This will show percentage of winning compare to total trades\n(fthelper: v3.x.x)",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 2,
          "mappings": [],
          "max": 1,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percentunit"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 12,
        "x": 12,
        "y": 0
      },
      "id": 154,
      "options": {
        "legend": {
          "calcs": [
            "mean",
            "last"
          ],
          "displayMode": "table",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi"
        }
      },
      "targets": [
        {
          "exemplar": true,
          "expr": "avg by(cluster, strategy) (freqtrade_trade_winning / freqtrade_trade_close)",
          "hide": false,
          "interval": "",
          "legendFormat": "Success rate - {{ cluster }} - {{ strategy }}",
          "refId": "A"
        }
      ],
      "title": "Strategy performance / Success rate",
      "type": "timeseries"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 26,
      "panels": [
        {
          "datasource": null,
          "description": "Balance we has in exchange. Difference is first - last value in graph. Range is Max Drawdown",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "axisWidth": 100,
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": 3600000,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "THB"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "THB"
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "left"
                  },
                  {
                    "id": "custom.axisLabel",
                    "value": "Fiatcurrency"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "USDT"
                },
                "properties": [
                  {
                    "id": "unit",
                    "value": "USDT"
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "right"
                  },
                  {
                    "id": "custom.axisLabel",
                    "value": "Cryptocurrency"
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 8,
            "w": 8,
            "x": 0,
            "y": 11
          },
          "id": 58,
          "interval": null,
          "maxDataPoints": null,
          "options": {
            "legend": {
              "calcs": [
                "last",
                "diff",
                "range"
              ],
              "displayMode": "table",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "multi"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy, stake) (freqtrade_crypto_balance{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "interval": "",
              "legendFormat": "{{ stake }}",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy, stake) (freqtrade_fiat_balance{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "hide": false,
              "interval": "",
              "legendFormat": "{{ stake }}",
              "refId": "B"
            }
          ],
          "timeFrom": null,
          "title": "Balance",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "This will calculate base on dashboard time range.",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 4,
              "mappings": [],
              "max": -1,
              "min": 1,
              "noValue": "N/A",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "dark-red",
                    "value": null
                  },
                  {
                    "color": "dark-red",
                    "value": -0.15
                  },
                  {
                    "color": "semi-dark-red",
                    "value": -0.1
                  },
                  {
                    "color": "light-red",
                    "value": -0.05
                  },
                  {
                    "color": "super-light-red",
                    "value": -0.01
                  },
                  {
                    "color": "text",
                    "value": 0
                  },
                  {
                    "color": "super-light-green",
                    "value": 0.01
                  },
                  {
                    "color": "light-green",
                    "value": 0.05
                  },
                  {
                    "color": "semi-dark-green",
                    "value": 0.1
                  },
                  {
                    "color": "dark-green",
                    "value": 0.15
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 8,
            "y": 11
          },
          "id": 69,
          "options": {
            "reduceOptions": {
              "calcs": [
                "diffperc"
              ],
              "fields": "",
              "values": false
            },
            "showThresholdLabels": false,
            "showThresholdMarkers": true,
            "text": {}
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy) (freqtrade_crypto_balance{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "interval": "",
              "legendFormat": "{{ version }} - {{ stake }}",
              "refId": "A"
            }
          ],
          "title": "Profit",
          "type": "gauge"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "yellow",
                    "value": 86400
                  },
                  {
                    "color": "orange",
                    "value": 432000
                  },
                  {
                    "color": "red",
                    "value": 604800
                  }
                ]
              },
              "unit": "dtdurations"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 11,
            "y": 11
          },
          "id": 54,
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_trade_latest_seconds{cluster=\"$cluster\", strategy=~\"$strategy\"} - time()",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Latest trade",
          "type": "stat"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "rgba(59, 154, 184, 0.71)",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 6,
            "x": 14,
            "y": 11
          },
          "id": 24,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "name"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_build_info{cluster=\"$cluster\"}",
              "instant": true,
              "interval": "",
              "legendFormat": "{{ strategy }}",
              "refId": "A"
            }
          ],
          "type": "stat"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "0": {
                      "color": "orange",
                      "index": 0,
                      "text": "Stopped"
                    },
                    "1": {
                      "color": "green",
                      "index": 1,
                      "text": "Running"
                    },
                    "2": {
                      "color": "yellow",
                      "index": 2,
                      "text": "Stop Buy"
                    },
                    "-1": {
                      "color": "red",
                      "index": 3,
                      "text": "Unknown"
                    }
                  },
                  "type": "value"
                }
              ],
              "noValue": "N/A",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 4,
            "x": 20,
            "y": 11
          },
          "id": 44,
          "interval": null,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "value"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_state{cluster=\"$cluster\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "transformations": [],
          "type": "stat"
        },
        {
          "datasource": null,
          "description": "This will show win trade with specify time window",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 8,
            "y": 15
          },
          "id": 70,
          "options": {
            "colorMode": "none",
            "graphMode": "area",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "diff"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy) (freqtrade_trade_winning{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "instant": false,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Win trade",
          "type": "stat"
        },
        {
          "datasource": null,
          "description": "This will show losing trade within specify time window",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 11,
            "y": 15
          },
          "id": 71,
          "options": {
            "colorMode": "none",
            "graphMode": "area",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "range"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy) (freqtrade_trade_losing{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "instant": false,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Loss trade",
          "type": "stat"
        },
        {
          "datasource": null,
          "description": "Number is current open trades",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 14,
            "y": 15
          },
          "id": 56,
          "options": {
            "colorMode": "none",
            "graphMode": "area",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "last"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "auto"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "avg by(cluster, strategy) (freqtrade_trade_open_current{cluster=\"$cluster\", strategy=~\"$strategy\"})",
              "instant": false,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Current open trade",
          "type": "stat"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "0": {
                      "color": "red",
                      "index": 1,
                      "text": "DOWN"
                    },
                    "1": {
                      "color": "green",
                      "index": 0,
                      "text": "UP"
                    }
                  },
                  "type": "value"
                }
              ],
              "noValue": "N/A",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 3,
            "x": 17,
            "y": 15
          },
          "id": 28,
          "interval": null,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "value"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_build_info{cluster=\"$cluster\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "transformations": [],
          "type": "stat"
        },
        {
          "datasource": null,
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "mappings": [
                {
                  "options": {
                    "0": {
                      "color": "blue",
                      "index": 0,
                      "text": "Dry run"
                    },
                    "1": {
                      "color": "purple",
                      "index": 1,
                      "text": "Live"
                    },
                    "-1": {
                      "color": "red",
                      "index": 2,
                      "text": "Unknown"
                    }
                  },
                  "type": "value"
                }
              ],
              "noValue": "N/A",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "string"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 4,
            "w": 4,
            "x": 20,
            "y": 15
          },
          "id": 45,
          "interval": null,
          "options": {
            "colorMode": "background",
            "graphMode": "none",
            "justifyMode": "center",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "text": {},
            "textMode": "value"
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_mode{cluster=\"$cluster\"}",
              "format": "time_series",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "transformations": [],
          "type": "stat"
        }
      ],
      "repeat": "cluster",
      "title": "Summary - $cluster",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 47
      },
      "id": 120,
      "panels": [
        {
          "datasource": null,
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "custom": {
                "align": "auto",
                "displayMode": "auto",
                "filterable": true
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 14,
            "x": 0,
            "y": 14
          },
          "id": 122,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "currency"
              }
            ]
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_crypto_balances{cluster=~\"$cluster\"}",
              "format": "table",
              "instant": true,
              "interval": "",
              "legendFormat": "",
              "refId": "A"
            }
          ],
          "title": "Current holding cryptocurrency",
          "transformations": [
            {
              "id": "filterFieldsByName",
              "options": {
                "include": {
                  "names": [
                    "currency",
                    "stake",
                    "Value"
                  ]
                }
              }
            }
          ],
          "type": "table"
        },
        {
          "datasource": null,
          "description": "This will show historical of locking pairs.\n(fthelper: v3.x.x)\n",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 0,
              "mappings": [],
              "min": 0,
              "noValue": "N/A",
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 10,
            "x": 14,
            "y": 14
          },
          "id": 214,
          "options": {
            "legend": {
              "calcs": [],
              "displayMode": "list",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "freqtrade_lock_count{cluster=~\"$cluster\", strategy=~\"$strategy\"}",
              "interval": "",
              "legendFormat": "Current locks",
              "refId": "A"
            }
          ],
          "title": "Locked pairs",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "This comparing profit of each pair as percent gain.\n(fthelper: v4.0.0)",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "continuous-RdYlGr"
              },
              "custom": {
                "align": "auto",
                "displayMode": "auto",
                "filterable": true
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byType",
                  "options": "number"
                },
                "properties": [
                  {
                    "id": "custom.displayMode",
                    "value": "gradient-gauge"
                  },
                  {
                    "id": "unit",
                    "value": "percent"
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "pair"
                },
                "properties": [
                  {
                    "id": "custom.width",
                    "value": 150
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 10,
            "w": 24,
            "x": 0,
            "y": 23
          },
          "id": 184,
          "options": {
            "showHeader": true,
            "sortBy": [
              {
                "desc": true,
                "displayName": "Value"
              }
            ]
          },
          "pluginVersion": "8.0.6",
          "targets": [
            {
              "exemplar": false,
              "expr": "freqtrade_pair_profit_pct{cluster=~\"$cluster\", strategy=~\"$strategy\"}",
              "format": "table",
              "instant": true,
              "interval": "",
              "legendFormat": "{{ pair }}",
              "refId": "A"
            }
          ],
          "title": "Profit / Pair",
          "transformations": [
            {
              "id": "filterFieldsByName",
              "options": {
                "include": {
                  "names": [
                    "pair",
                    "Value"
                  ]
                }
              }
            }
          ],
          "type": "table"
        }
      ],
      "repeat": "cluster",
      "title": "Detailed - $cluster",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 195
      },
      "id": 85,
      "panels": [
        {
          "datasource": null,
          "description": "Success rate when ftmetric call to freqtrade server",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 16,
            "x": 0,
            "y": 17
          },
          "id": 99,
          "options": {
            "legend": {
              "calcs": [
                "last",
                "min",
                "mean"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "max without(type) (fthelper_internal_ft_call{cluster=~\"$cluster\", type=\"success\"}) / max without(type) (fthelper_internal_ft_call{cluster=~\"$cluster\", type=\"total\"})",
              "hide": false,
              "interval": "",
              "legendFormat": "success - {{ cluster }}",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "rate(fthelper_internal_ft_call{cluster=~\"$cluster\", type=\"total\"}[5m])",
              "hide": true,
              "interval": "",
              "legendFormat": "total - {{ cluster }}",
              "refId": "B"
            }
          ],
          "title": "Freqtrade success rate",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "How many percent of total request that we cached",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 8,
            "x": 16,
            "y": 17
          },
          "id": 101,
          "options": {
            "legend": {
              "calcs": [
                "mean"
              ],
              "displayMode": "table",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "(freqtrade_internal_cache_total{cluster=~\"$cluster\"} - freqtrade_internal_cache_miss{cluster=~\"$cluster\"}) / freqtrade_internal_cache_total{cluster=~\"$cluster\"}",
              "interval": "",
              "legendFormat": "cache rate - {{ cluster }}",
              "refId": "A"
            }
          ],
          "title": "Freqtrade cache rate",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "How many we call to freqtrade",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "reqps"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 16,
            "x": 0,
            "y": 26
          },
          "id": 102,
          "options": {
            "legend": {
              "calcs": [
                "last",
                "mean"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "rate(fthelper_internal_ft_call{cluster=~\"$cluster\", type=\"total\"}[5m])",
              "hide": false,
              "interval": "",
              "legendFormat": "{{ cluster }}",
              "refId": "B"
            }
          ],
          "title": "Freqtrade total call",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "How many log level are logged in freqtrade server. You can enabled warning level in disabled query.",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineStyle": {
                  "fill": "solid"
                },
                "lineWidth": 2,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              }
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 8,
            "x": 16,
            "y": 26
          },
          "id": 118,
          "options": {
            "legend": {
              "calcs": [
                "max"
              ],
              "displayMode": "table",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "sum by(cluster) (freqtrade_log_level{cluster=~\"$cluster\", level=\"WARNING\"})",
              "hide": true,
              "interval": "",
              "legendFormat": "Warning - {{ cluster }}",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "sum by(cluster) (freqtrade_log_level{cluster=~\"$cluster\", level=\"ERROR\"})",
              "hide": false,
              "interval": "",
              "legendFormat": "Error - {{ cluster }}",
              "refId": "B"
            }
          ],
          "title": "Freqtrade log level",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "ms"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 16,
            "x": 0,
            "y": 35
          },
          "id": 104,
          "options": {
            "legend": {
              "calcs": [
                "mean",
                "max"
              ],
              "displayMode": "table",
              "placement": "right"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "pluginVersion": "8.0.4",
          "targets": [
            {
              "exemplar": true,
              "expr": "histogram_quantile(0.99, sum(rate(fthelper_internal_warmup_duration_bucket[5m])) by (le))",
              "hide": true,
              "interval": "",
              "legendFormat": "P99",
              "refId": "A"
            },
            {
              "exemplar": true,
              "expr": "histogram_quantile(0.95, sum(rate(fthelper_internal_warmup_duration_bucket[5m])) by (le))",
              "hide": true,
              "interval": "",
              "legendFormat": "P95",
              "refId": "B"
            },
            {
              "exemplar": true,
              "expr": "histogram_quantile(0.9, sum(rate(fthelper_internal_warmup_duration_bucket[5m])) by (le))",
              "hide": false,
              "interval": "",
              "legendFormat": "P90",
              "refId": "C"
            },
            {
              "exemplar": true,
              "expr": "histogram_quantile(0.5, sum(rate(fthelper_internal_warmup_duration_bucket[5m])) by (le))",
              "format": "time_series",
              "hide": false,
              "interval": "",
              "legendFormat": "P50",
              "refId": "D"
            }
          ],
          "title": "Warmup duration",
          "type": "timeseries"
        },
        {
          "datasource": null,
          "description": "Every time warmup trigger, It perform several process. This graph will breakdown each process and calculate success rate of overall",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "smooth",
                "lineStyle": {
                  "fill": "solid"
                },
                "lineWidth": 2,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "never",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "max": 1,
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  },
                  {
                    "color": "red",
                    "value": 80
                  }
                ]
              },
              "unit": "percentunit"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 9,
            "w": 8,
            "x": 16,
            "y": 35
          },
          "id": 153,
          "options": {
            "legend": {
              "calcs": [
                "max"
              ],
              "displayMode": "table",
              "placement": "bottom"
            },
            "tooltip": {
              "mode": "single"
            }
          },
          "targets": [
            {
              "exemplar": true,
              "expr": "fthelper_internal_warmup",
              "hide": false,
              "interval": "",
              "legendFormat": "{{ job }}",
              "refId": "B"
            }
          ],
          "title": "Warmup success rate",
          "type": "timeseries"
        }
      ],
      "title": "Internal",
      "type": "row"
    }
  ],
  "refresh": "5m",
  "schemaVersion": 30,
  "style": "dark",
  "tags": [
    "freqtrade",
    "application"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(freqtrade_build_info, cluster)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Cluster name",
        "multi": true,
        "name": "cluster",
        "options": [],
        "query": {
          "query": "label_values(freqtrade_build_info, cluster)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "allValue": "",
        "current": {},
        "datasource": "${DS_PROMETHEUS}",
        "definition": "label_values(freqtrade_build_info{cluster=~\"$cluster\"}, strategy)",
        "description": null,
        "error": null,
        "hide": 0,
        "includeAll": true,
        "label": "Strategy name",
        "multi": true,
        "name": "strategy",
        "options": [],
        "query": {
          "query": "label_values(freqtrade_build_info{cluster=~\"$cluster\"}, strategy)",
          "refId": "StandardVariableQuery"
        },
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h"
    ]
  },
  "timezone": "",
  "title": "Freqtrade",
  "uid": "RGSqY5z7z",
  "version": 51
}