Path: blob/main/example/docker-compose/grafana/dashboards/agent.json
4096 views
{1"annotations": {2"list": [ ]3},4"editable": true,5"gnetId": null,6"graphTooltip": 0,7"hideControls": false,8"links": [ ],9"refresh": "30s",10"rows": [11{12"collapse": false,13"height": "250px",14"panels": [15{16"aliasColors": { },17"bars": false,18"dashLength": 10,19"dashes": false,20"datasource": "$datasource",21"fill": 1,22"id": 1,23"legend": {24"avg": false,25"current": false,26"max": false,27"min": false,28"show": true,29"total": false,30"values": false31},32"lines": true,33"linewidth": 1,34"links": [ ],35"nullPointMode": "null as zero",36"percentage": false,37"pointradius": 5,38"points": false,39"renderer": "flot",40"seriesOverrides": [ ],41"spaceLength": 10,42"span": 12,43"stack": false,44"steppedLine": false,45"styles": [46{47"alias": "Time",48"dateFormat": "YYYY-MM-DD HH:mm:ss",49"pattern": "Time",50"type": "hidden"51},52{53"alias": "Count",54"colorMode": null,55"colors": [ ],56"dateFormat": "YYYY-MM-DD HH:mm:ss",57"decimals": 2,58"link": false,59"linkTargetBlank": false,60"linkTooltip": "Drill down",61"linkUrl": "",62"pattern": "Value #A",63"thresholds": [ ],64"type": "hidden",65"unit": "short"66},67{68"alias": "Uptime",69"colorMode": null,70"colors": [ ],71"dateFormat": "YYYY-MM-DD HH:mm:ss",72"decimals": 2,73"link": false,74"linkTargetBlank": false,75"linkTooltip": "Drill down",76"linkUrl": "",77"pattern": "Value #B",78"thresholds": [ ],79"type": "number",80"unit": "short"81},82{83"alias": "Container",84"colorMode": null,85"colors": [ ],86"dateFormat": "YYYY-MM-DD HH:mm:ss",87"decimals": 2,88"link": false,89"linkTargetBlank": false,90"linkTooltip": "Drill down",91"linkUrl": "",92"pattern": "container",93"thresholds": [ ],94"type": "number",95"unit": "short"96},97{98"alias": "Pod",99"colorMode": null,100"colors": [ ],101"dateFormat": "YYYY-MM-DD HH:mm:ss",102"decimals": 2,103"link": false,104"linkTargetBlank": false,105"linkTooltip": "Drill down",106"linkUrl": "",107"pattern": "pod",108"thresholds": [ ],109"type": "number",110"unit": "short"111},112{113"alias": "Version",114"colorMode": null,115"colors": [ ],116"dateFormat": "YYYY-MM-DD HH:mm:ss",117"decimals": 2,118"link": false,119"linkTargetBlank": false,120"linkTooltip": "Drill down",121"linkUrl": "",122"pattern": "version",123"thresholds": [ ],124"type": "number",125"unit": "short"126},127{128"alias": "",129"colorMode": null,130"colors": [ ],131"dateFormat": "YYYY-MM-DD HH:mm:ss",132"decimals": 2,133"pattern": "/.*/",134"thresholds": [ ],135"type": "string",136"unit": "short"137}138],139"targets": [140{141"expr": "count by (pod, container, version) (agent_build_info{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"})",142"format": "table",143"instant": true,144"intervalFactor": 2,145"legendFormat": "",146"refId": "A",147"step": 10148},149{150"expr": "max by (pod, container) (time() - process_start_time_seconds{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"})",151"format": "table",152"instant": true,153"intervalFactor": 2,154"legendFormat": "",155"refId": "B",156"step": 10157}158],159"thresholds": [ ],160"timeFrom": null,161"timeShift": null,162"title": "Agent Stats",163"tooltip": {164"shared": true,165"sort": 2,166"value_type": "individual"167},168"transform": "table",169"type": "table",170"xaxis": {171"buckets": null,172"mode": "time",173"name": null,174"show": true,175"values": [ ]176},177"yaxes": [178{179"format": "short",180"label": null,181"logBase": 1,182"max": null,183"min": 0,184"show": true185},186{187"format": "short",188"label": null,189"logBase": 1,190"max": null,191"min": null,192"show": false193}194]195}196],197"repeat": null,198"repeatIteration": null,199"repeatRowId": null,200"showTitle": true,201"title": "Agent Stats",202"titleSize": "h6"203},204{205"collapse": false,206"height": "250px",207"panels": [208{209"aliasColors": { },210"bars": false,211"dashLength": 10,212"dashes": false,213"datasource": "$datasource",214"fill": 1,215"id": 2,216"legend": {217"avg": false,218"current": false,219"max": false,220"min": false,221"show": true,222"total": false,223"values": false224},225"lines": true,226"linewidth": 1,227"links": [ ],228"nullPointMode": "null as zero",229"percentage": false,230"pointradius": 5,231"points": false,232"renderer": "flot",233"seriesOverrides": [ ],234"spaceLength": 10,235"span": 6,236"stack": false,237"steppedLine": false,238"targets": [239{240"expr": "sum(rate(prometheus_target_sync_length_seconds_sum{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[5m])) by (pod, scrape_job) * 1e3",241"format": "time_series",242"intervalFactor": 2,243"legendFormat": "{{pod}}/{{scrape_job}}",244"legendLink": null,245"step": 10246}247],248"thresholds": [ ],249"timeFrom": null,250"timeShift": null,251"title": "Target Sync",252"tooltip": {253"shared": true,254"sort": 2,255"value_type": "individual"256},257"type": "graph",258"xaxis": {259"buckets": null,260"mode": "time",261"name": null,262"show": true,263"values": [ ]264},265"yaxes": [266{267"format": "ms",268"label": null,269"logBase": 1,270"max": null,271"min": 0,272"show": true273},274{275"format": "short",276"label": null,277"logBase": 1,278"max": null,279"min": null,280"show": false281}282]283},284{285"aliasColors": { },286"bars": false,287"dashLength": 10,288"dashes": false,289"datasource": "$datasource",290"fill": 10,291"id": 3,292"legend": {293"avg": false,294"current": false,295"max": false,296"min": false,297"show": true,298"total": false,299"values": false300},301"lines": true,302"linewidth": 0,303"links": [ ],304"nullPointMode": "null as zero",305"percentage": false,306"pointradius": 5,307"points": false,308"renderer": "flot",309"seriesOverrides": [ ],310"spaceLength": 10,311"span": 6,312"stack": true,313"steppedLine": false,314"targets": [315{316"expr": "sum by (pod) (prometheus_sd_discovered_targets{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"})",317"format": "time_series",318"intervalFactor": 2,319"legendFormat": "{{pod}}",320"legendLink": null,321"step": 10322}323],324"thresholds": [ ],325"timeFrom": null,326"timeShift": null,327"title": "Targets",328"tooltip": {329"shared": true,330"sort": 2,331"value_type": "individual"332},333"type": "graph",334"xaxis": {335"buckets": null,336"mode": "time",337"name": null,338"show": true,339"values": [ ]340},341"yaxes": [342{343"format": "short",344"label": null,345"logBase": 1,346"max": null,347"min": 0,348"show": true349},350{351"format": "short",352"label": null,353"logBase": 1,354"max": null,355"min": null,356"show": false357}358]359}360],361"repeat": null,362"repeatIteration": null,363"repeatRowId": null,364"showTitle": true,365"title": "Prometheus Discovery",366"titleSize": "h6"367},368{369"collapse": false,370"height": "250px",371"panels": [372{373"aliasColors": { },374"bars": false,375"dashLength": 10,376"dashes": false,377"datasource": "$datasource",378"fill": 1,379"id": 4,380"legend": {381"avg": false,382"current": false,383"max": false,384"min": false,385"show": true,386"total": false,387"values": false388},389"lines": true,390"linewidth": 1,391"links": [ ],392"nullPointMode": "null as zero",393"percentage": false,394"pointradius": 5,395"points": false,396"renderer": "flot",397"seriesOverrides": [ ],398"spaceLength": 10,399"span": 4,400"stack": false,401"steppedLine": false,402"targets": [403{404"expr": "rate(prometheus_target_interval_length_seconds_sum{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[5m])\n/\nrate(prometheus_target_interval_length_seconds_count{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[5m])\n* 1e3\n",405"format": "time_series",406"intervalFactor": 2,407"legendFormat": "{{pod}} {{interval}} configured",408"legendLink": null,409"step": 10410}411],412"thresholds": [ ],413"timeFrom": null,414"timeShift": null,415"title": "Average Scrape Interval Duration",416"tooltip": {417"shared": true,418"sort": 2,419"value_type": "individual"420},421"type": "graph",422"xaxis": {423"buckets": null,424"mode": "time",425"name": null,426"show": true,427"values": [ ]428},429"yaxes": [430{431"format": "ms",432"label": null,433"logBase": 1,434"max": null,435"min": 0,436"show": true437},438{439"format": "short",440"label": null,441"logBase": 1,442"max": null,443"min": null,444"show": false445}446]447},448{449"aliasColors": { },450"bars": false,451"dashLength": 10,452"dashes": false,453"datasource": "$datasource",454"fill": 10,455"id": 5,456"legend": {457"avg": false,458"current": false,459"max": false,460"min": false,461"show": true,462"total": false,463"values": false464},465"lines": true,466"linewidth": 0,467"links": [ ],468"nullPointMode": "null as zero",469"percentage": false,470"pointradius": 5,471"points": false,472"renderer": "flot",473"seriesOverrides": [ ],474"spaceLength": 10,475"span": 4,476"stack": true,477"steppedLine": false,478"targets": [479{480"expr": "sum by (job) (rate(prometheus_target_scrapes_exceeded_sample_limit_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[1m]))",481"format": "time_series",482"intervalFactor": 2,483"legendFormat": "exceeded sample limit: {{job}}",484"legendLink": null,485"step": 10486},487{488"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_duplicate_timestamp_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[1m]))",489"format": "time_series",490"intervalFactor": 2,491"legendFormat": "duplicate timestamp: {{job}}",492"legendLink": null,493"step": 10494},495{496"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_out_of_bounds_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[1m]))",497"format": "time_series",498"intervalFactor": 2,499"legendFormat": "out of bounds: {{job}}",500"legendLink": null,501"step": 10502},503{504"expr": "sum by (job) (rate(prometheus_target_scrapes_sample_out_of_order_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[1m]))",505"format": "time_series",506"intervalFactor": 2,507"legendFormat": "out of order: {{job}}",508"legendLink": null,509"step": 10510}511],512"thresholds": [ ],513"timeFrom": null,514"timeShift": null,515"title": "Scrape failures",516"tooltip": {517"shared": true,518"sort": 2,519"value_type": "individual"520},521"type": "graph",522"xaxis": {523"buckets": null,524"mode": "time",525"name": null,526"show": true,527"values": [ ]528},529"yaxes": [530{531"format": "short",532"label": null,533"logBase": 1,534"max": null,535"min": 0,536"show": true537},538{539"format": "short",540"label": null,541"logBase": 1,542"max": null,543"min": null,544"show": false545}546]547},548{549"aliasColors": { },550"bars": false,551"dashLength": 10,552"dashes": false,553"datasource": "$datasource",554"fill": 10,555"id": 6,556"legend": {557"avg": false,558"current": false,559"max": false,560"min": false,561"show": true,562"total": false,563"values": false564},565"lines": true,566"linewidth": 0,567"links": [ ],568"nullPointMode": "null as zero",569"percentage": false,570"pointradius": 5,571"points": false,572"renderer": "flot",573"seriesOverrides": [ ],574"spaceLength": 10,575"span": 4,576"stack": true,577"steppedLine": false,578"targets": [579{580"expr": "sum by (job, instance_group_name) (rate(agent_wal_samples_appended_total{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\"}[5m]))",581"format": "time_series",582"intervalFactor": 2,583"legendFormat": "{{job}} {{instance_group_name}}",584"legendLink": null,585"step": 10586}587],588"thresholds": [ ],589"timeFrom": null,590"timeShift": null,591"title": "Appended Samples",592"tooltip": {593"shared": true,594"sort": 2,595"value_type": "individual"596},597"type": "graph",598"xaxis": {599"buckets": null,600"mode": "time",601"name": null,602"show": true,603"values": [ ]604},605"yaxes": [606{607"format": "short",608"label": null,609"logBase": 1,610"max": null,611"min": 0,612"show": true613},614{615"format": "short",616"label": null,617"logBase": 1,618"max": null,619"min": null,620"show": false621}622]623}624],625"repeat": null,626"repeatIteration": null,627"repeatRowId": null,628"showTitle": true,629"title": "Prometheus Retrieval",630"titleSize": "h6"631}632],633"schemaVersion": 14,634"style": "dark",635"tags": [636"grafana-agent-mixin"637],638"templating": {639"list": [640{641"current": {642"text": "default",643"value": "default"644},645"hide": 0,646"label": "Data Source",647"name": "datasource",648"options": [ ],649"query": "prometheus",650"refresh": 1,651"regex": "",652"type": "datasource"653},654{655"allValue": ".+",656"current": {657"selected": true,658"text": "All",659"value": "$__all"660},661"datasource": "$datasource",662"hide": 0,663"includeAll": true,664"label": "cluster",665"multi": true,666"name": "cluster",667"options": [ ],668"query": "label_values(agent_build_info, cluster)",669"refresh": 1,670"regex": "",671"sort": 2,672"tagValuesQuery": "",673"tags": [ ],674"tagsQuery": "",675"type": "query",676"useTags": false677},678{679"allValue": ".+",680"current": {681"selected": true,682"text": "All",683"value": "$__all"684},685"datasource": "$datasource",686"hide": 0,687"includeAll": true,688"label": "namespace",689"multi": true,690"name": "namespace",691"options": [ ],692"query": "label_values(agent_build_info, namespace)",693"refresh": 1,694"regex": "",695"sort": 2,696"tagValuesQuery": "",697"tags": [ ],698"tagsQuery": "",699"type": "query",700"useTags": false701},702{703"allValue": ".+",704"current": {705"selected": true,706"text": "All",707"value": "$__all"708},709"datasource": "$datasource",710"hide": 0,711"includeAll": true,712"label": "container",713"multi": true,714"name": "container",715"options": [ ],716"query": "label_values(agent_build_info, container)",717"refresh": 1,718"regex": "",719"sort": 2,720"tagValuesQuery": "",721"tags": [ ],722"tagsQuery": "",723"type": "query",724"useTags": false725},726{727"allValue": "grafana-agent-.*",728"current": {729"selected": true,730"text": "All",731"value": "$__all"732},733"datasource": "$datasource",734"hide": 0,735"includeAll": true,736"label": "pod",737"multi": true,738"name": "pod",739"options": [ ],740"query": "label_values(agent_build_info{container=~\"$container\"}, pod)",741"refresh": 1,742"regex": "",743"sort": 2,744"tagValuesQuery": "",745"tags": [ ],746"tagsQuery": "",747"type": "query",748"useTags": false749}750]751},752"time": {753"from": "now-1h",754"to": "now"755},756"timepicker": {757"refresh_intervals": [758"5s",759"10s",760"30s",761"1m",762"5m",763"15m",764"30m",765"1h",766"2h",767"1d"768],769"time_options": [770"5m",771"15m",772"1h",773"6h",774"12h",775"24h",776"2d",777"7d",778"30d"779]780},781"timezone": "",782"title": "Agent",783"uid": "",784"version": 0785}786787788