Skip to content

Commit

Permalink
Merge pull request #100 from mulesoft-catalyst/feature/OSv2
Browse files Browse the repository at this point in the history
Feature/OSv2
  • Loading branch information
DavoCoder authored May 12, 2021
2 parents b1858ae + 4c104e1 commit 9fc7701
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 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

Expand Down
6 changes: 3 additions & 3 deletions dashboards/splunk/osv2__production.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<single>
<title>ObjectStore V2 - Production - Current Count</title>
<search>
<query>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"</query>
<query>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"</query>
<earliest>$timeToken.earliest$</earliest>
<latest>$timeToken.latest$</latest>
</search>
Expand All @@ -53,9 +53,9 @@
<panel>
<title>ObjectStore V2 - Production - Usage Growth - Timeline</title>
<chart>
<title>ObjectStore V3 - Production - Usage Growth - Timeline</title>
<title>ObjectStore V2 - Production - Usage Growth - Timeline</title>
<search>
<query>index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osv2Metrics.stats.production.requestCount &gt; 0 | chart values(osv2Metrics.stats.production.requestCount) as "Request count" by _time, businessGroup</query>
<query>index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osV2Metrics.stats.production.requestCount &gt; 0 | chart values(osV2Metrics.stats.production.requestCount) as "Request count" by _time, businessGroup</query>
<earliest>$timeToken.earliest$</earliest>
<latest>$timeToken.latest$</latest>
</search>
Expand Down
6 changes: 3 additions & 3 deletions dashboards/splunk/osv2__sandbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<single>
<title>ObjectStore V2 - Sandbox - Current Count</title>
<search>
<query>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"</query>
<query>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"</query>
<earliest>$timeToken.earliest$</earliest>
<latest>$timeToken.latest$</latest>
</search>
Expand All @@ -53,9 +53,9 @@
<panel>
<title>ObjectStore V2 - Sandbox - Usage Growth - Timeline</title>
<chart>
<title>ObjectStore V3 - Sandbox - Usage Growth - Timeline</title>
<title>ObjectStore V2 - Sandbox - Usage Growth - Timeline</title>
<search>
<query>index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osv2Metrics.stats.sandbox.requestCount &gt; 0 | chart values(osv2Metrics.stats.sandbox.requestCount) as "Request count" by _time, businessGroup</query>
<query>index=$platformMetricsIndex$ | search businessGroup IN ($bgToken$) | search osV2Metrics.stats.sandbox.requestCount &gt; 0 | chart values(osV2Metrics.stats.sandbox.requestCount) as "Request count" by _time, businessGroup</query>
<earliest>$timeToken.earliest$</earliest>
<latest>$timeToken.latest$</latest>
</search>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.mulesoft</groupId>
<artifactId>metrics-accelerator</artifactId>
<version>1.7.0</version>
<version>1.7.1</version>
<packaging>mule-application</packaging>

<name>metrics-accelerator</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
<flow name="api-call-osv2-stats-flow" doc:id="85ccc0f0-03cb-4654-8015-9f0d6af9399f"
maxConcurrency="${anypoint.platform.apis.cloudhub.maxConcurrency}">
maxConcurrency="${anypoint.platform.apis.osv2.maxConcurrency}">
<logger level="DEBUG" doc:name="Log OSv2 Stats Start" doc:id="276eff08-104d-489a-9674-42aec3d676e4" message="Calling OSv2 - Stats" />
<http:request method="GET" doc:name="Get OSv2 Stats Request" doc:id="cecc913e-f597-4028-a404-f915215a9c8b"
config-ref="HTTP_OSv2_Request_configuration" path="${anypoint.platform.apis.osv2.stats.path}" sendBodyMode="NEVER">
Expand Down

0 comments on commit 9fc7701

Please sign in to comment.