From 427118905eaa82df0b20702c56d0fd920b257d71 Mon Sep 17 00:00:00 2001 From: Sourav Banerjee Date: Fri, 6 Feb 2026 15:19:04 +0530 Subject: [PATCH 1/5] ACS-9976 document update for ElasticSearch Prometheus metrics --- docs/micrometer/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/micrometer/README.md b/docs/micrometer/README.md index 6c36011f84..d88ab75830 100644 --- a/docs/micrometer/README.md +++ b/docs/micrometer/README.md @@ -20,6 +20,7 @@ Several types of metrics are exposed by the repository: * DB (mybatis) metrics * REST API metrics * Authentication metrics (tickets/sessions and users) +* ElasticSearch metrics All of these and specific details about each gathered metric can be controlled with system properties: @@ -34,6 +35,9 @@ metrics.jvmMetricsReporter.enabled=false metrics.restMetricsReporter.enabled=false metrics.restMetricsReporter.path.enabled=false metrics.authenticationMetricsReporter.enabled=false +metrics.elasticSearchMetricsReporter.enabled=false +metrics.elasticSearchMetricsReporter.cache.expireAfterWrite.seconds=120 +metrics.elasticSearchMetricsReporter.cache.refreshAfterWrite.seconds=60 ``` > This feature is enterprise only! From 7cc35991e06d67c20b915a2a17d94af20485b0e3 Mon Sep 17 00:00:00 2001 From: Sourav Banerjee Date: Tue, 10 Feb 2026 01:26:11 +0530 Subject: [PATCH 2/5] ACS-9976 Adding Grafana Dashboards --- ...search Indexing Metrics-1770666647804.json | 555 ++++++++++++++++++ ...\200\223 Advanced View-1770666664236.json" | 506 ++++++++++++++++ 2 files changed, 1061 insertions(+) create mode 100644 docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json create mode 100644 "docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" diff --git a/docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json b/docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json new file mode 100644 index 0000000000..ac57d88a38 --- /dev/null +++ b/docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json @@ -0,0 +1,555 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 1, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 8, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_document_count", + "refId": "A" + } + ], + "title": "Elasticsearch Document Count", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 8, + "x": 8, + "y": 0 + }, + "id": 2, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "repository_nodesCount", + "refId": "A" + } + ], + "title": "Repository Nodes Count", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 8, + "x": 16, + "y": 0 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "repository_nodesCount - elasticsearch_document_count", + "refId": "A" + } + ], + "title": "Indexing Gap (Nodes - ES Docs)", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_success_count", + "legendFormat": "Success", + "refId": "A" + }, + { + "expr": "elasticsearch_content_indexing_failures_count", + "legendFormat": "Failures", + "refId": "B" + } + ], + "title": "Indexing Success vs Failures", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 4 + }, + "id": 5, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_new_documents_progress_count", + "legendFormat": "New Documents", + "refId": "A" + }, + { + "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", + "legendFormat": "Updated Documents", + "refId": "B" + } + ], + "title": "Indexing In Progress", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 10 + }, + "id": 6, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_failures_count", + "refId": "A" + } + ], + "title": "Indexing Failures", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 6, + "y": 10 + }, + "id": 7, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_new_documents_progress_count", + "refId": "A" + } + ], + "title": "New Documents In Progress", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 12, + "y": 10 + }, + "id": 8, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", + "refId": "A" + } + ], + "title": "Updated Documents In Progress", + "type": "stat" + } + ], + "preload": false, + "refresh": "5s", + "schemaVersion": 42, + "tags": [ + "alfresco", + "elasticsearch", + "indexing" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Alfresco Elasticsearch Indexing Metrics", + "uid": "alfresco-elastic-metrics", + "version": 1 +} \ No newline at end of file diff --git "a/docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" "b/docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" new file mode 100644 index 0000000000..d1510d5dd8 --- /dev/null +++ "b/docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" @@ -0,0 +1,506 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 2, + "links": [], + "panels": [ + { + "fieldConfig": { + "defaults": { + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": 0 + }, + { + "color": "yellow", + "value": 90 + }, + { + "color": "green", + "value": 98 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 8, + "x": 0, + "y": 0 + }, + "id": 1, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "(elasticsearch_document_count / repository_nodesCount) * 100", + "refId": "A" + } + ], + "title": "Elasticsearch Coverage (%)", + "type": "gauge" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 16, + "x": 8, + "y": 0 + }, + "id": 2, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "repository_nodesCount", + "legendFormat": "Repository Nodes", + "refId": "A" + }, + { + "expr": "elasticsearch_document_count", + "legendFormat": "Elasticsearch Docs", + "refId": "B" + } + ], + "title": "Repository vs Elasticsearch Growth", + "type": "timeseries" + }, + { + "description": "Difference between repository nodes and indexed documents", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "orange", + "value": 1000 + }, + { + "color": "red", + "value": 10000 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 4, + "w": 6, + "x": 0, + "y": 5 + }, + "id": 3, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "repository_nodesCount - elasticsearch_document_count", + "refId": "A" + } + ], + "title": "Indexing Gap", + "type": "stat" + }, + { + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 18, + "x": 6, + "y": 5 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "rate(elasticsearch_content_indexing_success_count[5m])", + "legendFormat": "Success / sec", + "refId": "A" + }, + { + "expr": "rate(elasticsearch_content_indexing_failures_count[5m])", + "legendFormat": "Failures / sec", + "refId": "B" + } + ], + "title": "Indexing Success vs Failures (Rate)", + "type": "timeseries" + }, + { + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 0, + "y": 11 + }, + "id": 5, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_new_documents_progress_count", + "legendFormat": "New Documents", + "refId": "A" + }, + { + "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", + "legendFormat": "Updated Documents", + "refId": "B" + } + ], + "title": "Indexing In Progress", + "type": "bargauge" + }, + { + "description": "Total documents waiting to be indexed", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 5, + "w": 12, + "x": 12, + "y": 11 + }, + "id": 6, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "expr": "elasticsearch_content_indexing_new_documents_progress_count + elasticsearch_content_indexing_outdated_documents_progress_count", + "legendFormat": "Total Backlog", + "refId": "A" + } + ], + "title": "Indexing Backlog Trend", + "type": "timeseries" + } + ], + "preload": false, + "refresh": "10s", + "schemaVersion": 42, + "tags": [ + "alfresco", + "elasticsearch", + "indexing", + "sre" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-30m", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "Alfresco Elasticsearch Indexing – Advanced View", + "uid": "alfresco-elastic-advanced", + "version": 1 +} \ No newline at end of file From 789380e67dcefb6ec9880831c486a4ce166ed573 Mon Sep 17 00:00:00 2001 From: Sourav Banerjee Date: Tue, 17 Feb 2026 14:29:34 +0530 Subject: [PATCH 3/5] ACS-9976 Updated Grafana Dashboard names --- ..._Elasticsearch_Indexing_Advanced_View.json | 495 +++++++++++------- ...resco_Elasticsearch_Indexing_Metrics.json} | 0 docs/micrometer/README.md | 8 +- 3 files changed, 301 insertions(+), 202 deletions(-) rename "docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" => docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json (54%) rename docs/micrometer/{Alfresco Elasticsearch Indexing Metrics-1770666647804.json => Alfresco_Elasticsearch_Indexing_Metrics.json} (100%) diff --git "a/docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json similarity index 54% rename from "docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" rename to docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json index d1510d5dd8..a2f1907bbf 100644 --- "a/docs/micrometer/Alfresco Elasticsearch Indexing \342\200\223 Advanced View-1770666664236.json" +++ b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json @@ -18,47 +18,60 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 2, + "id": 0, "links": [], "panels": [ { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 4, + "panels": [], + "title": "Content Indexing Metrics", + "type": "row" + }, + { + "datasource": { + "type": "prometheus" + }, + "description": "Total number of documents currently indexed in Elasticsearch (all types).", "fieldConfig": { "defaults": { "mappings": [], - "max": 100, - "min": 0, "thresholds": { "mode": "absolute", "steps": [ { - "color": "red", + "color": "green", "value": 0 }, { - "color": "yellow", - "value": 90 - }, - { - "color": "green", - "value": 98 + "color": "red", + "value": 80 } ] }, - "unit": "percent" + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 8, + "h": 6, + "w": 12, "x": 0, - "y": 0 + "y": 1 }, - "id": 1, + "id": 2, "options": { - "minVizHeight": 75, - "minVizWidth": 75, + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", "orientation": "auto", + "percentChangeColorMode": "standard", "reduceOptions": { "calcs": [ "lastNotNull" @@ -66,60 +79,31 @@ "fields": "", "values": false }, - "showThresholdLabels": false, - "showThresholdMarkers": true, - "sizing": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { - "expr": "(elasticsearch_document_count / repository_nodesCount) * 100", + "editorMode": "code", + "expr": "elasticsearch_document_count", + "legendFormat": "Total Indexed Documents", + "range": true, "refId": "A" } ], - "title": "Elasticsearch Coverage (%)", - "type": "gauge" + "title": "Elasticsearch Total Indexed Documents", + "type": "stat" }, { + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Total number of indexable repository nodes.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, "mappings": [], "thresholds": { "mode": "absolute", @@ -133,48 +117,54 @@ "value": 80 } ] - } + }, + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 16, - "x": 8, - "y": 0 + "h": 6, + "w": 12, + "x": 12, + "y": 1 }, - "id": 2, + "id": 3, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { + "editorMode": "code", "expr": "repository_nodesCount", "legendFormat": "Repository Nodes", + "range": true, "refId": "A" - }, - { - "expr": "elasticsearch_document_count", - "legendFormat": "Elasticsearch Docs", - "refId": "B" } ], - "title": "Repository vs Elasticsearch Growth", - "type": "timeseries" + "title": "Repository Node Count", + "type": "stat" }, { - "description": "Difference between repository nodes and indexed documents", + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Total successful content indexing operations.", "fieldConfig": { "defaults": { "mappings": [], @@ -185,13 +175,9 @@ "color": "green", "value": 0 }, - { - "color": "orange", - "value": 1000 - }, { "color": "red", - "value": 10000 + "value": 80 } ] } @@ -199,12 +185,12 @@ "overrides": [] }, "gridPos": { - "h": 4, + "h": 6, "w": 6, "x": 0, - "y": 5 + "y": 7 }, - "id": 3, + "id": 5, "options": { "colorMode": "value", "graphMode": "area", @@ -225,53 +211,24 @@ "pluginVersion": "12.3.1", "targets": [ { - "expr": "repository_nodesCount - elasticsearch_document_count", + "editorMode": "code", + "expr": "elasticsearch_content_indexing_success_count", + "legendFormat": "Success", + "range": true, "refId": "A" } ], - "title": "Indexing Gap", + "title": "Content Indexing Success Count", "type": "stat" }, { + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Total failed content indexing operations.", "fieldConfig": { "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, "mappings": [], "thresholds": { "mode": "absolute", @@ -282,7 +239,7 @@ }, { "color": "red", - "value": 80 + "value": 1 } ] } @@ -291,44 +248,51 @@ }, "gridPos": { "h": 6, - "w": 18, + "w": 6, "x": 6, - "y": 5 + "y": 7 }, - "id": 4, + "id": 6, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "percentChangeColorMode": "standard", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, "pluginVersion": "12.3.1", "targets": [ { - "expr": "rate(elasticsearch_content_indexing_success_count[5m])", - "legendFormat": "Success / sec", + "editorMode": "code", + "expr": "elasticsearch_content_indexing_failures_count", + "legendFormat": "Failures", + "range": true, "refId": "A" - }, - { - "expr": "rate(elasticsearch_content_indexing_failures_count[5m])", - "legendFormat": "Failures / sec", - "refId": "B" } ], - "title": "Indexing Success vs Failures (Rate)", - "type": "timeseries" + "title": "Content Indexing Failures Count", + "type": "stat" }, { + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Number of new documents currently being indexed.", "fieldConfig": { "defaults": { "mappings": [], + "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -341,29 +305,21 @@ "value": 80 } ] - } + }, + "unit": "none" }, "overrides": [] }, "gridPos": { - "h": 5, - "w": 12, - "x": 0, - "y": 11 + "h": 6, + "w": 6, + "x": 12, + "y": 7 }, - "id": 5, + "id": 7, "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 16, - "minVizWidth": 8, - "namePlacement": "auto", + "minVizHeight": 75, + "minVizWidth": 75, "orientation": "auto", "reduceOptions": { "calcs": [ @@ -372,28 +328,91 @@ "fields": "", "values": false }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" }, "pluginVersion": "12.3.1", "targets": [ { + "editorMode": "code", "expr": "elasticsearch_content_indexing_new_documents_progress_count", - "legendFormat": "New Documents", + "legendFormat": "New Content Progress", + "range": true, "refId": "A" + } + ], + "title": "New Content Indexing In Progress", + "type": "gauge" + }, + { + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Number of outdated documents currently being reindexed.", + "fieldConfig": { + "defaults": { + "mappings": [], + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "none" }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 18, + "y": 7 + }, + "id": 8, + "options": { + "minVizHeight": 75, + "minVizWidth": 75, + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showThresholdLabels": false, + "showThresholdMarkers": true, + "sizing": "auto" + }, + "pluginVersion": "12.3.1", + "targets": [ { + "editorMode": "code", "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", - "legendFormat": "Updated Documents", - "refId": "B" + "legendFormat": "Reindex Progress", + "range": true, + "refId": "A" } ], - "title": "Indexing In Progress", - "type": "bargauge" + "title": "Outdated Content Reindexing In Progress", + "type": "gauge" }, { - "description": "Total documents waiting to be indexed", + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Trend of successful and failed content indexing operations over time.", "fieldConfig": { "defaults": { "color": { @@ -451,12 +470,12 @@ "overrides": [] }, "gridPos": { - "h": 5, - "w": 12, - "x": 12, - "y": 11 + "h": 8, + "w": 24, + "x": 0, + "y": 13 }, - "id": 6, + "id": 9, "options": { "legend": { "calcs": [], @@ -473,34 +492,114 @@ "pluginVersion": "12.3.1", "targets": [ { - "expr": "elasticsearch_content_indexing_new_documents_progress_count + elasticsearch_content_indexing_outdated_documents_progress_count", - "legendFormat": "Total Backlog", + "editorMode": "code", + "expr": "rate(elasticsearch_content_indexing_success_count[5m])", + "legendFormat": "Success Rate", + "range": true, "refId": "A" + }, + { + "editorMode": "code", + "expr": "rate(elasticsearch_content_indexing_failures_count[5m])", + "legendFormat": "Failure Rate", + "range": true, + "refId": "B" } ], - "title": "Indexing Backlog Trend", + "title": "Content Indexing Success vs Failures (Trend)", "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "afdfsqye8syyod" + }, + "description": "Current indexing workload split between new and outdated content. This metric applies only to content indexing operations.", + "fieldConfig": { + "defaults": { + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 24, + "x": 0, + "y": 21 + }, + "id": 10, + "options": { + "displayMode": "gradient", + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": false + }, + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" + }, + "pluginVersion": "12.3.1", + "targets": [ + { + "editorMode": "code", + "expr": "elasticsearch_content_indexing_new_documents_progress_count", + "legendFormat": "New Content", + "range": true, + "refId": "A" + }, + { + "editorMode": "code", + "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", + "legendFormat": "Outdated Content", + "range": true, + "refId": "B" + } + ], + "title": "Current Content Indexing Load", + "type": "bargauge" } ], "preload": false, "refresh": "10s", "schemaVersion": 42, - "tags": [ - "alfresco", - "elasticsearch", - "indexing", - "sre" - ], + "tags": [], "templating": { "list": [] }, "time": { - "from": "now-30m", + "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", - "title": "Alfresco Elasticsearch Indexing – Advanced View", - "uid": "alfresco-elastic-advanced", - "version": 1 + "title": "Alfresco Elasticsearch Metrics (Context-Aware)", + "uid": "97076aad-bbe5-4074-ad45-e615021ff7d1", + "version": 4 } \ No newline at end of file diff --git a/docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json similarity index 100% rename from docs/micrometer/Alfresco Elasticsearch Indexing Metrics-1770666647804.json rename to docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json diff --git a/docs/micrometer/README.md b/docs/micrometer/README.md index d88ab75830..5c8128f878 100644 --- a/docs/micrometer/README.md +++ b/docs/micrometer/README.md @@ -20,7 +20,7 @@ Several types of metrics are exposed by the repository: * DB (mybatis) metrics * REST API metrics * Authentication metrics (tickets/sessions and users) -* ElasticSearch metrics +* Elasticsearch metrics All of these and specific details about each gathered metric can be controlled with system properties: @@ -35,9 +35,9 @@ metrics.jvmMetricsReporter.enabled=false metrics.restMetricsReporter.enabled=false metrics.restMetricsReporter.path.enabled=false metrics.authenticationMetricsReporter.enabled=false -metrics.elasticSearchMetricsReporter.enabled=false -metrics.elasticSearchMetricsReporter.cache.expireAfterWrite.seconds=120 -metrics.elasticSearchMetricsReporter.cache.refreshAfterWrite.seconds=60 +metrics.elasticsearchMetricsReporter.enabled=false +metrics.elasticsearchMetricsReporter.cache.expireAfterWrite.seconds=120 +metrics.elasticsearchMetricsReporter.cache.refreshAfterWrite.seconds=60 ``` > This feature is enterprise only! From 7363408622ac255b7b695cdb64940c6c169d9b2a Mon Sep 17 00:00:00 2001 From: Sourav Banerjee Date: Wed, 18 Feb 2026 01:16:50 +0530 Subject: [PATCH 4/5] ACS-9976 Deleted one Elasticsearch Grafana dashboard --- ..._Elasticsearch_Indexing_Advanced_View.json | 90 +-- ...fresco_Elasticsearch_Indexing_Metrics.json | 555 ------------------ 2 files changed, 7 insertions(+), 638 deletions(-) delete mode 100644 docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json diff --git a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json index a2f1907bbf..8da0d56556 100644 --- a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json +++ b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json @@ -99,7 +99,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Total number of indexable repository nodes.", "fieldConfig": { @@ -162,7 +162,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Total successful content indexing operations.", "fieldConfig": { @@ -224,7 +224,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Total failed content indexing operations.", "fieldConfig": { @@ -286,7 +286,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Number of new documents currently being indexed.", "fieldConfig": { @@ -348,7 +348,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Number of outdated documents currently being reindexed.", "fieldConfig": { @@ -410,7 +410,7 @@ { "datasource": { "type": "prometheus", - "uid": "afdfsqye8syyod" + "uid": "dfdjl9zew1jb4b" }, "description": "Trend of successful and failed content indexing operations over time.", "fieldConfig": { @@ -508,82 +508,6 @@ ], "title": "Content Indexing Success vs Failures (Trend)", "type": "timeseries" - }, - { - "datasource": { - "type": "prometheus", - "uid": "afdfsqye8syyod" - }, - "description": "Current indexing workload split between new and outdated content. This metric applies only to content indexing operations.", - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 24, - "x": 0, - "y": 21 - }, - "id": 10, - "options": { - "displayMode": "gradient", - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": false - }, - "maxVizHeight": 300, - "minVizHeight": 16, - "minVizWidth": 8, - "namePlacement": "auto", - "orientation": "auto", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showUnfilled": true, - "sizing": "auto", - "valueMode": "color" - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "editorMode": "code", - "expr": "elasticsearch_content_indexing_new_documents_progress_count", - "legendFormat": "New Content", - "range": true, - "refId": "A" - }, - { - "editorMode": "code", - "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", - "legendFormat": "Outdated Content", - "range": true, - "refId": "B" - } - ], - "title": "Current Content Indexing Load", - "type": "bargauge" } ], "preload": false, @@ -601,5 +525,5 @@ "timezone": "browser", "title": "Alfresco Elasticsearch Metrics (Context-Aware)", "uid": "97076aad-bbe5-4074-ad45-e615021ff7d1", - "version": 4 + "version": 2 } \ No newline at end of file diff --git a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json deleted file mode 100644 index ac57d88a38..0000000000 --- a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Metrics.json +++ /dev/null @@ -1,555 +0,0 @@ -{ - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 0, - "id": 1, - "links": [], - "panels": [ - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 8, - "x": 0, - "y": 0 - }, - "id": 1, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_document_count", - "refId": "A" - } - ], - "title": "Elasticsearch Document Count", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 8, - "x": 8, - "y": 0 - }, - "id": 2, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "repository_nodesCount", - "refId": "A" - } - ], - "title": "Repository Nodes Count", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 8, - "x": 16, - "y": 0 - }, - "id": 3, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "repository_nodesCount - elasticsearch_document_count", - "refId": "A" - } - ], - "title": "Indexing Gap (Nodes - ES Docs)", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 0, - "y": 4 - }, - "id": 4, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_content_indexing_success_count", - "legendFormat": "Success", - "refId": "A" - }, - { - "expr": "elasticsearch_content_indexing_failures_count", - "legendFormat": "Failures", - "refId": "B" - } - ], - "title": "Indexing Success vs Failures", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "color": { - "mode": "palette-classic" - }, - "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false - }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" - }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" - } - }, - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 6, - "w": 12, - "x": 12, - "y": 4 - }, - "id": 5, - "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_content_indexing_new_documents_progress_count", - "legendFormat": "New Documents", - "refId": "A" - }, - { - "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", - "legendFormat": "Updated Documents", - "refId": "B" - } - ], - "title": "Indexing In Progress", - "type": "timeseries" - }, - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 0, - "y": 10 - }, - "id": 6, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_content_indexing_failures_count", - "refId": "A" - } - ], - "title": "Indexing Failures", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 6, - "y": 10 - }, - "id": 7, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_content_indexing_new_documents_progress_count", - "refId": "A" - } - ], - "title": "New Documents In Progress", - "type": "stat" - }, - { - "fieldConfig": { - "defaults": { - "mappings": [], - "thresholds": { - "mode": "absolute", - "steps": [ - { - "color": "green", - "value": 0 - }, - { - "color": "red", - "value": 80 - } - ] - } - }, - "overrides": [] - }, - "gridPos": { - "h": 4, - "w": 6, - "x": 12, - "y": 10 - }, - "id": 8, - "options": { - "colorMode": "value", - "graphMode": "area", - "justifyMode": "auto", - "orientation": "auto", - "percentChangeColorMode": "standard", - "reduceOptions": { - "calcs": [ - "lastNotNull" - ], - "fields": "", - "values": false - }, - "showPercentChange": false, - "textMode": "auto", - "wideLayout": true - }, - "pluginVersion": "12.3.1", - "targets": [ - { - "expr": "elasticsearch_content_indexing_outdated_documents_progress_count", - "refId": "A" - } - ], - "title": "Updated Documents In Progress", - "type": "stat" - } - ], - "preload": false, - "refresh": "5s", - "schemaVersion": 42, - "tags": [ - "alfresco", - "elasticsearch", - "indexing" - ], - "templating": { - "list": [] - }, - "time": { - "from": "now-30m", - "to": "now" - }, - "timepicker": {}, - "timezone": "browser", - "title": "Alfresco Elasticsearch Indexing Metrics", - "uid": "alfresco-elastic-metrics", - "version": 1 -} \ No newline at end of file From 24e39e98018a9df68e2033ee07fba251957bab30 Mon Sep 17 00:00:00 2001 From: Sourav Banerjee Date: Fri, 20 Feb 2026 12:43:16 +0530 Subject: [PATCH 5/5] ACS-9976 Updated Elasticsearch Grafana dashboard. --- ..._Elasticsearch_Indexing_Advanced_View.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json index 8da0d56556..07c76f8992 100644 --- a/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json +++ b/docs/micrometer/Alfresco_Elasticsearch_Indexing_Advanced_View.json @@ -38,7 +38,7 @@ "datasource": { "type": "prometheus" }, - "description": "Total number of documents currently indexed in Elasticsearch (all types).", + "description": "Document indexed in Elasticsearch instances. This number will not include any default documents created during bootstrap unless these have been explicitly re-indexed. Therefore there may be a discrepancy with the number above.", "fieldConfig": { "defaults": { "mappings": [], @@ -99,9 +99,9 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, - "description": "Total number of indexable repository nodes.", + "description": "Documents that can be indexed using Elasticsearch.", "fieldConfig": { "defaults": { "mappings": [], @@ -162,9 +162,9 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, - "description": "Total successful content indexing operations.", + "description": "This metric indicates the number of documents whose content has been successfully indexed in Elasticsearch instances. It is a subset of the total count of indexed documents.", "fieldConfig": { "defaults": { "mappings": [], @@ -224,9 +224,9 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, - "description": "Total failed content indexing operations.", + "description": "This metric indicates the number of documents whose content has not been successfully indexed in Elasticsearch instances. Reindexing may be necessary for these documents.", "fieldConfig": { "defaults": { "mappings": [], @@ -286,9 +286,9 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, - "description": "Number of new documents currently being indexed.", + "description": "This metric indicates the number of newly added documents whose content indexing is in progress.", "fieldConfig": { "defaults": { "mappings": [], @@ -348,9 +348,9 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, - "description": "Number of outdated documents currently being reindexed.", + "description": "This metric indicates the number of modified documents whose content indexing is in progress.", "fieldConfig": { "defaults": { "mappings": [], @@ -410,7 +410,7 @@ { "datasource": { "type": "prometheus", - "uid": "dfdjl9zew1jb4b" + "uid": "ffdp68onn7pj4b" }, "description": "Trend of successful and failed content indexing operations over time.", "fieldConfig": { @@ -525,5 +525,5 @@ "timezone": "browser", "title": "Alfresco Elasticsearch Metrics (Context-Aware)", "uid": "97076aad-bbe5-4074-ad45-e615021ff7d1", - "version": 2 + "version": 3 } \ No newline at end of file