Skip to content

Commit

Permalink
fix: [PAGOPA-2703] Minor fix on FDR1 dashboard (#2844)
Browse files Browse the repository at this point in the history
* [PAGOPA-2703] minor fix on FDR1 dashboard

* fix escape

---------

Co-authored-by: Andrea D. <[email protected]>
Co-authored-by: Jacopo Carlini <[email protected]>
Co-authored-by: Francesco Cesareo <[email protected]>
  • Loading branch information
4 people authored Mar 3, 2025
1 parent 6b708f1 commit 7401ede
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@
},
{
"name": "Query",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend outcome = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend outcome = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n",
"isOptional": true
},
{
Expand Down Expand Up @@ -1535,7 +1535,7 @@
"flowId": "261px",
"errorMessage": "464px"
},
"Query": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend errorMessage = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n",
"Query": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend errorMessage = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n",
"ControlType": "AnalyticsGrid",
"PartTitle": "KO on register for validation",
"PartSubTitle": "register-for-validation"
Expand Down Expand Up @@ -1594,7 +1594,7 @@
},
{
"name": "Query",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [nodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[nodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n",
"isOptional": true
},
{
Expand Down Expand Up @@ -1712,7 +1712,7 @@
},
{
"name": "Query",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n",
"value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n",
"isOptional": true
},
{
Expand Down Expand Up @@ -1780,7 +1780,7 @@
"flowId": "271px",
"timestamp": "139px"
},
"Query": "traces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend errorMessage = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n",
"Query": "traces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend errorMessage = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n",
"ControlType": "AnalyticsGrid",
"PartTitle": "KO on nodoInviaFlussoRendicontazioneFTP",
"PartSubTitle": "nodo-invia-flusso-rendicontazione-FTP"
Expand Down

0 comments on commit 7401ede

Please sign in to comment.