1
0
Fork 0
mirror of https://github.com/monitoring-mixins/website.git synced 2024-12-14 11:37:31 +00:00
monitoring-mixins-website/assets/nsq/dashboards/nsq-topics.json
Vitaly Zhuravlev b3b400137a Add jsonnet-libs mixins
Add blackbox exporter
Add mysql exporter
2024-05-04 12:01:41 +00:00

917 lines
26 KiB
JSON

{
"__inputs": [ ],
"__requires": [ ],
"annotations": {
"list": [ ]
},
"editable": false,
"gnetId": null,
"graphTooltip": 1,
"hideControls": false,
"id": null,
"links": [
{
"asDropdown": false,
"icon": "external link",
"includeVars": true,
"keepTime": true,
"tags": [
"nsq"
],
"targetBlank": false,
"title": "Other NSQ dashboards",
"type": "dashboards",
"url": ""
}
],
"panels": [
{
"collapse": false,
"collapsed": false,
"gridPos": {
"h": 0,
"w": 0,
"x": 0,
"y": 0
},
"id": 2,
"panels": [ ],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
"title": "Topics",
"titleSize": "h6",
"type": "row"
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
},
"links": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic}",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&${datasource:queryparam}&${job:queryparam}&$${__url_time_range}"
}
],
"unit": "ns"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"id": 3,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg without (instance) (nsq_topic_e2e_processing_latency_99{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}} p99",
"refId": "A"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Topic end-to-end processing time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
}
},
"overrides": [
{
"matcher": {
"id": "byRegexp",
"options": ".+ rps"
},
"properties": [
{
"id": "links",
"value": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic} ",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&${datasource:queryparam}&${job:queryparam}&$${__url_time_range}"
}
]
}
]
},
{
"matcher": {
"id": "byRegexp",
"options": ".+ Bps rate"
},
"properties": [
{
"id": "custom.drawStyle",
"value": "bars"
},
{
"id": "custom.axisPlacement",
"value": "right"
},
{
"id": "custom.stacking",
"value": {
"group": "A",
"mode": "normal"
}
},
{
"id": "color",
"value": {
"fixedColor": "#cef7913b",
"mode": "fixed"
}
},
{
"id": "unit",
"value": "Bps"
},
{
"id": "custom.barAlignment",
"value": -1
},
{
"id": "custom.fillOpacity",
"value": 10
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 6
},
"id": 4,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg by (topic) (rate(nsq_topic_message_count{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}} rps",
"refId": "A"
},
{
"expr": "sum by () (rate(nsq_topic_message_bytes{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "selected topics Bps rate",
"refId": "B"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Topic messages",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
},
"links": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic}",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&${datasource:queryparam}&${job:queryparam}&$${__url_time_range}"
}
],
"unit": "short"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 6
},
"id": 5,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum without (instance) (nsq_topic_depth{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}} depth",
"refId": "A"
},
{
"expr": "sum without (instance) (nsq_topic_backend_depth{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}} memory+disk depth",
"refId": "B"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Topic depth",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"collapse": false,
"collapsed": false,
"gridPos": {
"h": 0,
"w": 0,
"x": 0,
"y": 14
},
"id": 6,
"panels": [ ],
"repeat": null,
"repeatIteration": null,
"repeatRowId": null,
"showTitle": true,
"title": "Channels",
"titleSize": "h6",
"type": "row"
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
},
"links": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic}/${__field.labels.channel}",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&var-channel=${__field.labels.channel}&${datasource:queryparam}&${job:queryparam}&${__url_time_range}"
}
],
"unit": "ns"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 14
},
"id": 7,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "avg without (instance) (nsq_topic_channel_e2e_processing_latency_99{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} p99",
"refId": "A"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Channel end-to-end processing time",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
},
"links": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic}/${__field.labels.channel}",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&var-channel=${__field.labels.channel}&${datasource:queryparam}&${job:queryparam}&${__url_time_range}"
}
]
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 20
},
"id": 8,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum without (instance) (nsq_topic_channel_clients{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}}",
"refId": "A"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Channel clients",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
},
{
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fieldConfig": {
"defaults": {
"custom": {
"fillOpacity": 0,
"lineInterpolation": "smooth",
"showPoints": "never"
},
"links": [
{
"title": "Show split by nsqd instances for ${__field.labels.topic}/${__field.labels.channel}",
"url": "d/nsq-instances?var-topic=${__field.labels.topic}&var-channel=${__field.labels.channel}&${datasource:queryparam}&${job:queryparam}&${__url_time_range}"
}
],
"unit": "short"
}
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 20
},
"id": 9,
"legend": {
"alignAsTable": false,
"avg": false,
"current": false,
"max": false,
"min": false,
"rightSide": false,
"show": true,
"sideWidth": null,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null",
"options": {
"tooltip": {
"mode": "multi"
}
},
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"repeat": null,
"seriesOverrides": [ ],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum without (instance) (nsq_topic_channel_depth{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} depth",
"refId": "A"
},
{
"expr": "sum without (instance) (nsq_topic_channel_backend_depth{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} memory+disk depth",
"refId": "B"
},
{
"expr": "sum without (instance) (nsq_topic_channel_in_flight_count{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} in-flight",
"refId": "C"
},
{
"expr": "avg without (instance) (rate(nsq_topic_channel_requeue_count{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} requeue",
"refId": "D"
},
{
"expr": "avg without (instance) (rate(nsq_topic_channel_timeout_count{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"}[$__rate_interval]))",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} timeout",
"refId": "E"
},
{
"expr": "sum without (instance) (nsq_topic_channel_deferred_count{job=~\"$job\", instance=~\"$instance\",topic=~\"$topic\",channel=~\"$channel\"})",
"format": "time_series",
"intervalFactor": 1,
"legendFormat": "{{topic}}/{{channel}} deferred",
"refId": "F"
}
],
"thresholds": [ ],
"timeFrom": null,
"timeShift": null,
"title": "Channel stats",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "timeseries",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": [ ]
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
]
}
],
"refresh": "1m",
"rows": [ ],
"schemaVersion": 14,
"style": "dark",
"tags": [
"nsq"
],
"templating": {
"list": [
{
"current": {
"text": "Prometheus",
"value": "Prometheus"
},
"hide": 0,
"label": "Data Source",
"name": "datasource",
"options": [ ],
"query": "prometheus",
"refresh": 1,
"regex": "",
"type": "datasource"
},
{
"allValue": ".+",
"datasource": "$datasource",
"hide": 0,
"includeAll": true,
"label": "job",
"multi": true,
"name": "job",
"options": [ ],
"query": "label_values(nsq_topic_message_count, job)",
"refresh": 1,
"regex": "",
"type": "query"
},
{
"allValue": ".+",
"datasource": "$datasource",
"hide": 0,
"includeAll": true,
"label": "instance",
"multi": true,
"name": "instance",
"options": [ ],
"query": "label_values(nsq_topic_message_count{job=~\"$job\"},instance)",
"refresh": 2,
"regex": "",
"type": "query"
},
{
"datasource": "$datasource",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "topic",
"options": [ ],
"query": "label_values(nsq_topic_message_count{job=~\"$job\",instance=~\"$instance\"},topic)",
"refresh": 2,
"regex": "",
"type": "query"
},
{
"datasource": "$datasource",
"hide": 0,
"includeAll": true,
"label": null,
"multi": true,
"name": "channel",
"options": [ ],
"query": "label_values(nsq_topic_channel_message_count{job=~\"$job\",instance=~\"$instance\",topic=~\"$topic\"},channel)",
"refresh": 2,
"regex": "",
"type": "query"
}
]
},
"time": {
"from": "now-1h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "default",
"title": "NSQ Topics",
"uid": "nsq-topics",
"version": 0
}