Skip to content

Instantly share code, notes, and snippets.

@ideepika
Created August 6, 2024 18:34
Show Gist options
  • Select an option

  • Save ideepika/72e77c5f88776b0b58b6a2ef5905682a to your computer and use it in GitHub Desktop.

Select an option

Save ideepika/72e77c5f88776b0b58b6a2ef5905682a to your computer and use it in GitHub Desktop.
{
"datasource": {
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"barAlignment": 0,
"lineWidth": 1,
"fillOpacity": 10,
"gradientMode": "none",
"spanNulls": true,
"insertNulls": false,
"showPoints": "never",
"pointSize": 5,
"stacking": {
"mode": "none",
"group": "A"
},
"axisPlacement": "auto",
"axisLabel": "Read (-) / Write (+)",
"axisColorMode": "text",
"axisBorderShow": false,
"scaleDistribution": {
"type": "linear"
},
"axisCenteredZero": false,
"hideFrom": {
"tooltip": false,
"viz": false,
"legend": false
},
"thresholdsStyle": {
"mode": "off"
}
},
"color": {
"mode": "palette-classic"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "Bps"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Reads"
},
"properties": [
{
"id": "custom.transform",
"value": "negative-Y"
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 6
},
"id": 45,
"options": {
"tooltip": {
"mode": "multi",
"sort": "none"
},
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom",
"calcs": []
}
},
"pluginVersion": "8.4.6",
"targets": [
{
"datasource": {
"uid": "$datasource"
},
"exemplar": true,
"expr": "sum(irate(ceph_osd_op_w_in_bytes{job=\"$job\"}[1m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Writes",
"refId": "A"
},
{
"datasource": {
"uid": "$datasource"
},
"exemplar": true,
"expr": "sum(irate(ceph_osd_op_r_out_bytes{job=\"$job\"}[1m]))",
"format": "time_series",
"interval": "",
"intervalFactor": 1,
"legendFormat": "Reads",
"refId": "B"
}
],
"title": "Cluster Throughput",
"type": "timeseries"
}
@ideepika
Copy link
Author

ideepika commented Aug 6, 2024

total req/sec by rgw instance

{
  "datasource": {
    "type": "prometheus",
    "uid": "e9dbd393-a281-43d8-8c8a-891a86a8c49c"
  },
  "fieldConfig": {
    "defaults": {
      "custom": {
        "drawStyle": "line",
        "lineInterpolation": "linear",
        "barAlignment": 0,
        "lineWidth": 1,
        "fillOpacity": 10,
        "gradientMode": "none",
        "spanNulls": false,
        "insertNulls": false,
        "showPoints": "never",
        "pointSize": 5,
        "stacking": {
          "mode": "normal",
          "group": "A"
        },
        "axisPlacement": "auto",
        "axisLabel": "",
        "axisColorMode": "text",
        "axisBorderShow": false,
        "scaleDistribution": {
          "type": "linear"
        },
        "axisCenteredZero": false,
        "hideFrom": {
          "tooltip": false,
          "viz": false,
          "legend": false
        },
        "thresholdsStyle": {
          "mode": "off"
        }
      },
      "color": {
        "mode": "palette-classic"
      },
      "mappings": [],
      "thresholds": {
        "mode": "absolute",
        "steps": [
          {
            "value": null,
            "color": "green"
          },
          {
            "value": 80,
            "color": "red"
          }
        ]
      },
      "links": [],
      "unit": "none",
      "decimals": 0,
      "min": 0
    },
    "overrides": []
  },
  "gridPos": {
    "h": 8,
    "w": 12,
    "x": 0,
    "y": 10
  },
  "id": 127,
  "pluginVersion": "10.4.1",
  "targets": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "e9dbd393-a281-43d8-8c8a-891a86a8c49c"
      },
      "editorMode": "code",
      "expr": "sum by (instanc_id) (rate(ceph_rgw_req{job=\"$job\",instance_id=~\"$rgw_servers\"}[1m]) * on(instance_id) group_left(ceph_daemon) ceph_rgw_metadata{job=\"$job\"})",
      "hide": false,
      "legendFormat": "total req/sec {{ceph_daemon}}",
      "range": true,
      "refId": "A"
    }
  ],
  "title": "Total Requests/sec by RGW Instance",
  "type": "timeseries",
  "options": {
    "tooltip": {
      "mode": "multi",
      "sort": "none"
    },
    "legend": {
      "showLegend": true,
      "displayMode": "list",
      "placement": "bottom",
      "calcs": []
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment