From b1858ae3069fd74eb38782aa77125fcbe8e28664 Mon Sep 17 00:00:00 2001 From: David Cisneros Date: Wed, 12 May 2021 09:58:02 -0700 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2cb6b9f..1d839159 100755 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Table of Contents * [Final Notes](#final-notes) # Metrics Accelerator -The **metrics accelerator** (**formerly metrics framework**) is a Mule application intended to collect, aggregate and load platform metrics into different visualization systems; providing out of the box integrations and visualization options, including useful dashboards and charts. In addition to the platform metrics, the accelerator also extends the capabilities to integrate with external applications like Jira, Confluence, Jenkins, Bitbucket and Splunk to gather SDLC metrics. This is an [UNLICENSED software, please review the considerations](UNLICENSE.md). If you need assistance for extending this, contact MuleSoft Professional Services +The **metrics accelerator** (**formerly metrics framework**) is a Mule application intended to collect, aggregate and load platform metrics into different visualization systems; providing out of the box integrations and visualization options, including useful dashboards and charts. In addition to the platform metrics, the accelerator also extends the capabilities to integrate with external applications like Jira, Confluence, Jenkins, Bitbucket and Splunk to gather SDLC metrics. This is an [UNLICENSED software, please review the considerations](UNLICENSE.md). If you need assistance on extending this application, contact your MuleSoft Customer Success representative or MuleSoft Professional Services ## Features - Compact Mule application (1 single application) From d5942e977bd80bb4edae948ab8325955ce5ae897 Mon Sep 17 00:00:00 2001 From: panizzag Date: Wed, 12 May 2021 16:38:56 -0300 Subject: [PATCH 2/4] OSv2: Add fixes. Increase version for release --- dashboards/splunk/osv2__production.xml | 6 +++--- dashboards/splunk/osv2__sandbox.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboards/splunk/osv2__production.xml b/dashboards/splunk/osv2__production.xml index 345b5cb2..7d6cab14 100644 --- a/dashboards/splunk/osv2__production.xml +++ b/dashboards/splunk/osv2__production.xml @@ -37,7 +37,7 @@ ObjectStore V2 - Production - Current Count - index=metrics | eventstats max(_time) as maxTimestamp | where _time=maxTimestamp | search businessGroup IN ($bgToken$) | stats values(osv2Metrics.stats.production.requestCount) as total | stats max(total) as "Request count" + index=metrics | eventstats max(_time) as maxTimestamp | where _time=maxTimestamp | search businessGroup IN ($bgToken$) | stats values(osV2Metrics.stats.production.requestCount) as total | stats max(total) as "Request count" $timeToken.earliest$ $timeToken.latest$ @@ -53,9 +53,9 @@ ObjectStore V2 - Production - Usage Growth - Timeline - ObjectStore V3 - Production - Usage Growth - Timeline + ObjectStore V2 - Production - Usage Growth - Timeline - index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osv2Metrics.stats.production.requestCount > 0 | chart values(osv2Metrics.stats.production.requestCount) as "Request count" by _time, businessGroup + index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osV2Metrics.stats.production.requestCount > 0 | chart values(osV2Metrics.stats.production.requestCount) as "Request count" by _time, businessGroup $timeToken.earliest$ $timeToken.latest$ diff --git a/dashboards/splunk/osv2__sandbox.xml b/dashboards/splunk/osv2__sandbox.xml index f16e867f..11e46802 100644 --- a/dashboards/splunk/osv2__sandbox.xml +++ b/dashboards/splunk/osv2__sandbox.xml @@ -37,7 +37,7 @@ ObjectStore V2 - Sandbox - Current Count - index=metrics | eventstats max(_time) as maxTimestamp | where _time=maxTimestamp | search businessGroup IN ($bgToken$) | stats values(osv2Metrics.stats.sandbox.requestCount) as total | stats max(total) as "Request count" + index=metrics | eventstats max(_time) as maxTimestamp | where _time=maxTimestamp | search businessGroup IN ($bgToken$) | stats values(osV2Metrics.stats.sandbox.requestCount) as total | stats max(total) as "Request count" $timeToken.earliest$ $timeToken.latest$ @@ -53,9 +53,9 @@ ObjectStore V2 - Sandbox - Usage Growth - Timeline - ObjectStore V3 - Sandbox - Usage Growth - Timeline + ObjectStore V2 - Sandbox - Usage Growth - Timeline - index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osv2Metrics.stats.sandbox.requestCount > 0 | chart values(osv2Metrics.stats.sandbox.requestCount) as "Request count" by _time, businessGroup + index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osV2Metrics.stats.sandbox.requestCount > 0 | chart values(osV2Metrics.stats.sandbox.requestCount) as "Request count" by _time, businessGroup $timeToken.earliest$ $timeToken.latest$ From c4267178a4f21f6dee035bba447c92212fc5b66b Mon Sep 17 00:00:00 2001 From: panizzag Date: Wed, 12 May 2021 16:48:17 -0300 Subject: [PATCH 3/4] OSv2: Add fixes. Increase version for release. Add note to README --- README.md | 2 +- pom.xml | 2 +- src/main/mule/sources/anypoint/platform/apis/api-call-osv2.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1d839159..ca9b0dc8 100755 --- a/README.md +++ b/README.md @@ -350,7 +350,7 @@ splunk.index.metrics | Index for storing Platform operational metrics | metrics splunk.index.benefits | Index for storing Platform benefits | platform_benefits -> (*): Please note that by default, "Source Types" are created with a limit of 3000 characters. It is very likely that the Metrics Accelerator JSON event exceeds this limit. In order to solve that, you need to add a new property "TRUNCATE" in the Advanced configuration of the specific Source Type. For example: TRUNCATE = 10000 +> (*): Please note that by default, "Source Types" are created with a limit of 3000 characters. The Metrics Accelerator JSON event exceeds this limit. In order to solve that, you must increase this limit adding a new property "TRUNCATE" in the Advanced configuration of the specific Source Type. For example: TRUNCATE = 40000. Depending of the size of your organization, in terms of Business Groups, environments and number of applications and APIs in each environment, this value can be higher. ### ELK steps diff --git a/pom.xml b/pom.xml index 4dc3da6b..0a3ffcf8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.mulesoft metrics-accelerator - 1.7.0 + 1.7.1 mule-application metrics-accelerator diff --git a/src/main/mule/sources/anypoint/platform/apis/api-call-osv2.xml b/src/main/mule/sources/anypoint/platform/apis/api-call-osv2.xml index 568e2325..c88b08dd 100644 --- a/src/main/mule/sources/anypoint/platform/apis/api-call-osv2.xml +++ b/src/main/mule/sources/anypoint/platform/apis/api-call-osv2.xml @@ -5,7 +5,7 @@ xsi:schemaLocation=" http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd"> + maxConcurrency="${anypoint.platform.apis.osv2.maxConcurrency}"> From 4c104e136a7eb74716c6cc2a8b90407efa1f3c2a Mon Sep 17 00:00:00 2001 From: panizzag Date: Wed, 12 May 2021 16:55:23 -0300 Subject: [PATCH 4/4] Re phrase Splunk character limitation --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca9b0dc8..31d5cf31 100755 --- a/README.md +++ b/README.md @@ -350,7 +350,7 @@ splunk.index.metrics | Index for storing Platform operational metrics | metrics splunk.index.benefits | Index for storing Platform benefits | platform_benefits -> (*): Please note that by default, "Source Types" are created with a limit of 3000 characters. The Metrics Accelerator JSON event exceeds this limit. In order to solve that, you must increase this limit adding a new property "TRUNCATE" in the Advanced configuration of the specific Source Type. For example: TRUNCATE = 40000. Depending of the size of your organization, in terms of Business Groups, environments and number of applications and APIs in each environment, this value can be higher. +> (*): Please note that by default, "Source Types" are created with a limit of 3000 characters. The Metrics Accelerator JSON event might exceed this limit. In order to solve that, you must increase this limit adding a new property "TRUNCATE" in the Advanced configuration of the specific Source Type. For example: TRUNCATE = 40000. Depending of the size of your organization, in terms of Business Groups, environments and number of applications and APIs in each environment, this value can be higher. ### ELK steps