2021-12-28 03:25:10 +00:00
{
"annotations" : {
"list" : [ ]
} ,
"editable" : true ,
"gnetId" : null ,
"graphTooltip" : 0 ,
"hideControls" : false ,
"links" : [
{
"asDropdown" : true ,
"icon" : "external link" ,
"includeVars" : true ,
"keepTime" : true ,
"tags" : [
"loki"
] ,
"targetBlank" : false ,
"title" : "Loki Dashboards" ,
"type" : "dashboards"
}
] ,
"refresh" : "10s" ,
"rows" : [
{
"collapse" : false ,
"height" : "100px" ,
"panels" : [
{
"aliasColors" : { } ,
"bars" : false ,
"dashLength" : 10 ,
"dashes" : false ,
"datasource" : "$datasource" ,
"fill" : 1 ,
"format" : "none" ,
"id" : 1 ,
"legend" : {
"avg" : false ,
"current" : false ,
"max" : false ,
"min" : false ,
"show" : true ,
"total" : false ,
"values" : false
} ,
"lines" : true ,
"linewidth" : 1 ,
"links" : [ ] ,
"nullPointMode" : "null as zero" ,
"percentage" : false ,
"pointradius" : 5 ,
"points" : false ,
"renderer" : "flot" ,
"seriesOverrides" : [ ] ,
"spaceLength" : 10 ,
"span" : 6 ,
"stack" : false ,
"steppedLine" : false ,
"targets" : [
{
"expr" : "sum(loki_compactor_pending_delete_requests_count{cluster=~\"$cluster\", namespace=~\"$namespace\"})" ,
"format" : "time_series" ,
"instant" : true ,
"refId" : "A"
}
] ,
"thresholds" : "70,80" ,
"timeFrom" : null ,
"timeShift" : null ,
"title" : "Number of Pending Requests" ,
"tooltip" : {
"shared" : true ,
"sort" : 2 ,
"value_type" : "individual"
} ,
"type" : "singlestat" ,
"xaxis" : {
"buckets" : null ,
"mode" : "time" ,
"name" : null ,
"show" : true ,
"values" : [ ]
} ,
"yaxes" : [
{
"format" : "short" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : 0 ,
"show" : true
} ,
{
"format" : "short" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : null ,
"show" : false
}
]
} ,
{
"aliasColors" : { } ,
"bars" : false ,
"dashLength" : 10 ,
"dashes" : false ,
"datasource" : "$datasource" ,
"fill" : 1 ,
"format" : "dtdurations" ,
"id" : 2 ,
"legend" : {
"avg" : false ,
"current" : false ,
"max" : false ,
"min" : false ,
"show" : true ,
"total" : false ,
"values" : false
} ,
"lines" : true ,
"linewidth" : 1 ,
"links" : [ ] ,
"nullPointMode" : "null as zero" ,
"percentage" : false ,
"pointradius" : 5 ,
"points" : false ,
"renderer" : "flot" ,
"seriesOverrides" : [ ] ,
"spaceLength" : 10 ,
"span" : 6 ,
"stack" : false ,
"steppedLine" : false ,
"targets" : [
{
"expr" : "max(loki_compactor_oldest_pending_delete_request_age_seconds{cluster=~\"$cluster\", namespace=~\"$namespace\"})" ,
"format" : "time_series" ,
"instant" : true ,
"refId" : "A"
}
] ,
"thresholds" : "70,80" ,
"timeFrom" : null ,
"timeShift" : null ,
"title" : "Oldest Pending Request Age" ,
"tooltip" : {
"shared" : true ,
"sort" : 2 ,
"value_type" : "individual"
} ,
"type" : "singlestat" ,
"xaxis" : {
"buckets" : null ,
"mode" : "time" ,
"name" : null ,
"show" : true ,
"values" : [ ]
} ,
"yaxes" : [
{
"format" : "short" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : 0 ,
"show" : true
} ,
{
"format" : "short" ,
"label" : null ,
"logBase" : 1 ,
"max" : null ,
"min" : null ,
"show" : false
}
]
}
] ,
"repeat" : null ,
"repeatIteration" : null ,
"repeatRowId" : null ,
"showTitle" : false ,
"title" : "Headlines" ,
"titleSize" : "h6"
} ,
{
"collapse" : false ,
"height" : "250px" ,
"panels" : [
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2021-12-28 03:25:10 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 3 ,
2021-12-28 03:25:10 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
"targets" : [
{
"expr" : "(loki_compactor_delete_requests_received_total{cluster=~\"$cluster\", namespace=~\"$namespace\"} or on() vector(0)) - on () (loki_compactor_delete_requests_processed_total{cluster=~\"$cluster\", namespace=~\"$namespace\"} or on () vector(0))" ,
"format" : "time_series" ,
"legendFormat" : "in progress" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2022-09-27 04:46:40 +00:00
}
] ,
"title" : "# of Delete Requests (received - processed) " ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2022-09-27 04:46:40 +00:00
} ,
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2022-09-27 04:46:40 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 4 ,
2022-09-27 04:46:40 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
2021-12-28 03:25:10 +00:00
"targets" : [
{
"expr" : "sum(increase(loki_compactor_delete_requests_received_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[1d]))" ,
"format" : "time_series" ,
"legendFormat" : "received" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2021-12-28 03:25:10 +00:00
}
] ,
"title" : "Delete Requests Received / Day" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2021-12-28 03:25:10 +00:00
} ,
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2021-12-28 03:25:10 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 5 ,
2021-12-28 03:25:10 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
2021-12-28 03:25:10 +00:00
"targets" : [
{
"expr" : "sum(increase(loki_compactor_delete_requests_processed_total{cluster=~\"$cluster\", namespace=~\"$namespace\"}[1d]))" ,
"format" : "time_series" ,
"legendFormat" : "processed" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2021-12-28 03:25:10 +00:00
}
] ,
"title" : "Delete Requests Processed / Day" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2021-12-28 03:25:10 +00:00
}
] ,
"repeat" : null ,
"repeatIteration" : null ,
"repeatRowId" : null ,
"showTitle" : true ,
"title" : "Churn" ,
"titleSize" : "h6"
} ,
{
"collapse" : false ,
"height" : "250px" ,
"panels" : [
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2021-12-28 03:25:10 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 6 ,
2021-12-28 03:25:10 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
2021-12-28 03:25:10 +00:00
"targets" : [
{
2024-10-25 03:33:09 +00:00
"expr" : "node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"(compactor|(loki.*|enterprise-logs)-backend.*|loki-single-binary)\"}" ,
2021-12-28 03:25:10 +00:00
"format" : "time_series" ,
2022-09-27 04:46:40 +00:00
"legendFormat" : "{{pod}}" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2021-12-28 03:25:10 +00:00
}
] ,
2022-09-27 04:46:40 +00:00
"title" : "Compactor CPU usage" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2022-09-27 04:46:40 +00:00
} ,
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2022-09-27 04:46:40 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 7 ,
2022-09-27 04:46:40 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
"targets" : [
{
2024-10-25 03:33:09 +00:00
"expr" : "go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"(compactor|(loki.*|enterprise-logs)-backend.*|loki-single-binary)\"} / 1024 / 1024 " ,
2022-09-27 04:46:40 +00:00
"format" : "time_series" ,
"legendFormat" : " {{pod}} " ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2022-09-27 04:46:40 +00:00
}
] ,
"title" : "Compactor memory usage (MiB)" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2022-09-27 04:46:40 +00:00
} ,
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2022-09-27 04:46:40 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 8 ,
2022-09-27 04:46:40 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 4 ,
"targets" : [
{
"expr" : "loki_boltdb_shipper_compact_tables_operation_duration_seconds{cluster=~\"$cluster\", namespace=~\"$namespace\"}" ,
"format" : "time_series" ,
"legendFormat" : "{{pod}}" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2022-09-27 04:46:40 +00:00
}
] ,
"title" : "Compaction run duration (seconds)" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2021-12-28 03:25:10 +00:00
}
] ,
"repeat" : null ,
"repeatIteration" : null ,
"repeatRowId" : null ,
"showTitle" : true ,
2022-09-27 04:46:40 +00:00
"title" : "Compactor" ,
2021-12-28 03:25:10 +00:00
"titleSize" : "h6"
2022-06-16 03:56:08 +00:00
} ,
{
"collapse" : false ,
"height" : "250px" ,
"panels" : [
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2022-09-27 04:46:40 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 9 ,
2022-09-27 04:46:40 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 6 ,
"targets" : [
{
"expr" : "sum(increase(loki_compactor_load_pending_requests_attempts_total{status=\"fail\", cluster=~\"$cluster\", namespace=~\"$namespace\"}[1h]))" ,
"format" : "time_series" ,
"legendFormat" : "failures" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2022-09-27 04:46:40 +00:00
}
] ,
"title" : "Failures in Loading Delete Requests / Hour" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2022-09-27 04:46:40 +00:00
} ,
{
"datasource" : "$datasource" ,
2024-10-25 03:33:09 +00:00
"fieldConfig" : {
"defaults" : {
"custom" : {
"drawStyle" : "line" ,
"fillOpacity" : 10 ,
"lineWidth" : 1 ,
"pointSize" : 5 ,
"showPoints" : "never" ,
"spanNulls" : false ,
"stacking" : {
"group" : "A" ,
"mode" : "none"
}
} ,
"thresholds" : {
"mode" : "absolute" ,
"steps" : [ ]
} ,
"unit" : "short"
} ,
"overrides" : [ ]
2022-06-16 03:56:08 +00:00
} ,
2024-10-25 03:33:09 +00:00
"id" : 10 ,
2022-06-16 03:56:08 +00:00
"links" : [ ] ,
2024-10-25 03:33:09 +00:00
"options" : {
"legend" : {
"showLegend" : true
} ,
"tooltip" : {
"mode" : "single" ,
"sort" : "none"
}
} ,
2022-09-27 04:46:40 +00:00
"span" : 6 ,
2022-06-16 03:56:08 +00:00
"targets" : [
{
2024-10-25 03:33:09 +00:00
"expr" : "sum(rate(loki_compactor_deleted_lines{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"(compactor|(loki.*|enterprise-logs)-backend.*|loki-single-binary)\"}[$__rate_interval])) by (user)" ,
2022-06-16 03:56:08 +00:00
"format" : "time_series" ,
"legendFormat" : "{{user}}" ,
2024-10-25 03:33:09 +00:00
"legendLink" : null
2022-06-16 03:56:08 +00:00
}
] ,
"title" : "Lines Deleted / Sec" ,
2024-10-25 03:33:09 +00:00
"type" : "timeseries"
2022-06-16 03:56:08 +00:00
}
] ,
"repeat" : null ,
"repeatIteration" : null ,
"repeatRowId" : null ,
"showTitle" : true ,
2022-09-27 04:46:40 +00:00
"title" : "Deletion metrics" ,
2022-06-16 03:56:08 +00:00
"titleSize" : "h6"
2022-10-01 04:58:11 +00:00
} ,
{
"collapse" : false ,
"height" : "250px" ,
"panels" : [
{
2022-10-15 04:47:25 +00:00
"datasource" : "$loki_datasource" ,
2022-10-01 04:58:11 +00:00
"id" : 11 ,
"span" : 6 ,
"targets" : [
{
2024-10-25 03:33:09 +00:00
"expr" : "{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"(compactor|(loki.*|enterprise-logs)-backend.*|loki-single-binary)\"} |~ \"Started processing delete request|delete request for user marked as processed\" | logfmt | line_format \"{{.ts}} user={{.user}} delete_request_id={{.delete_request_id}} msg={{.msg}}\" " ,
2022-10-01 04:58:11 +00:00
"refId" : "A"
}
] ,
"title" : "In progress/finished" ,
"type" : "logs"
} ,
{
2022-10-15 04:47:25 +00:00
"datasource" : "$loki_datasource" ,
2022-10-01 04:58:11 +00:00
"id" : 12 ,
"span" : 6 ,
"targets" : [
{
2024-10-25 03:33:09 +00:00
"expr" : "{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"(compactor|(loki.*|enterprise-logs)-backend.*|loki-single-binary)\"} |~ \"delete request for user added\" | logfmt | line_format \"{{.ts}} user={{.user}} query='{{.query}}'\"" ,
2022-10-01 04:58:11 +00:00
"refId" : "A"
}
] ,
"title" : "Requests" ,
"type" : "logs"
}
] ,
"repeat" : null ,
"repeatIteration" : null ,
"repeatRowId" : null ,
"showTitle" : true ,
"title" : "List of deletion requests" ,
"titleSize" : "h6"
2021-12-28 03:25:10 +00:00
}
] ,
"schemaVersion" : 14 ,
"style" : "dark" ,
"tags" : [
"loki"
] ,
"templating" : {
"list" : [
{
"current" : {
"text" : "default" ,
"value" : "default"
} ,
"hide" : 0 ,
2024-10-25 03:33:09 +00:00
"label" : "Data source" ,
2021-12-28 03:25:10 +00:00
"name" : "datasource" ,
"options" : [ ] ,
"query" : "prometheus" ,
"refresh" : 1 ,
"regex" : "" ,
"type" : "datasource"
} ,
{
"allValue" : null ,
"current" : {
"text" : "prod" ,
"value" : "prod"
} ,
"datasource" : "$datasource" ,
"hide" : 0 ,
"includeAll" : false ,
"label" : "cluster" ,
"multi" : false ,
"name" : "cluster" ,
"options" : [ ] ,
"query" : "label_values(loki_build_info, cluster)" ,
"refresh" : 1 ,
"regex" : "" ,
"sort" : 2 ,
"tagValuesQuery" : "" ,
"tags" : [ ] ,
"tagsQuery" : "" ,
"type" : "query" ,
"useTags" : false
} ,
{
"allValue" : null ,
"current" : {
"text" : "prod" ,
"value" : "prod"
} ,
"datasource" : "$datasource" ,
"hide" : 0 ,
"includeAll" : false ,
"label" : "namespace" ,
"multi" : false ,
"name" : "namespace" ,
"options" : [ ] ,
"query" : "label_values(loki_build_info{cluster=~\"$cluster\"}, namespace)" ,
"refresh" : 1 ,
"regex" : "" ,
"sort" : 2 ,
"tagValuesQuery" : "" ,
"tags" : [ ] ,
"tagsQuery" : "" ,
"type" : "query" ,
"useTags" : false
2024-10-25 03:33:09 +00:00
} ,
{
"hide" : 0 ,
"label" : null ,
"name" : "loki_datasource" ,
"options" : [ ] ,
"query" : "loki" ,
"refresh" : 1 ,
"regex" : "" ,
"type" : "datasource"
2021-12-28 03:25:10 +00:00
}
]
} ,
"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" : "utc" ,
"title" : "Loki / Deletion" ,
"uid" : "deletion" ,
"version" : 0
}