Skip to content

Commit 15bba65

Browse files
Merge pull request #516 from mulesoft/W-13480493-update-UI-mule-API-analytics-gr
W 13480493 update UI mule api analytics gr
2 parents 5d7a9f3 + 5843e9b commit 15bba65

9 files changed

Lines changed: 50 additions & 43 deletions

modules/ROOT/nav.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@
5454
** xref:proxy-mule3-elements.adoc[Filter Mule Headers in Mule 3.x API Proxies]
5555
** xref:proxy-domain-support.adoc[Automatic Domain Support for Mule 4 API Proxies]
5656
* xref:manage-policies-overview.adoc[Policies]
57-
* xref:analytics-landing-page.adoc[View Analytics]
58-
** xref:viewing-api-analytics.adoc[Review Analytics Usage]
59-
** xref:analytics-chart.adoc[Review Analytics Charts Usage]
60-
** xref:analytics-event-api.adoc[Review Analytics Event API]
61-
** xref:analytics-event-forward.adoc[Review Analytics Event Forwarding]
57+
* xref:analytics-landing-page.adoc[View Mule API Analytics]
58+
** xref:viewing-api-analytics.adoc[Review Mule API Analytics Usage]
59+
** xref:analytics-chart.adoc[Review Mule API Analytics Charts Usage]
60+
** xref:analytics-event-api.adoc[Review Mule API Analytics Event API]
61+
** xref:analytics-event-forward.adoc[Review Mule API Analytics Event Forwarding]
6262
* xref:mule-oauth-provider-landing-page.adoc[Mule OAuth 2.0 Provider]
6363
** xref:about-configure-api-for-oauth.adoc[OAuth 2.0 Policy Prerequisites]
6464
** xref:external-oauth-2.0-token-validation-policy.adoc[OAuth 2.0 Access Token Enforcement Using Mule OAuth Provider]

modules/ROOT/pages/analytics-chart.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
= Reviewing API Manager Analytics Charts Usage
1+
= Reviewing API Manager Mule API Analytics Charts Usage
22
ifndef::env-site,env-github[]
33
include::_attributes.adoc[]
44
endif::[]
55

6-
API Analytics provides a summary in chart form of requests, top apps, and latency for 1 hour, 3 hours, 1 day, 7 days, or 1 month. This data is available for 30 days. To view the Analytics chart, in API Manager, click the instance name of a deployed API.
6+
Mule API Analytics provides a summary in chart form of requests, top apps, and latency for 1 hour, 3 hours, 1 day, 7 days, or 1 month. This data is available for 30 days. To view the Mule API Analytics chart, in API Manager, click the instance name of a deployed API.
77

8-
*Note:* To view Analytics charts, users need View APIs Configuration permission. See xref:environment-permission-task.adoc[To Set Permissions].
8+
*Note:* To view Mule API Analytics charts, users need `View APIs Configuration` permission. See xref:environment-permission-task.adoc[To Set Permissions].
99

1010
== Reviewing Requests Summary Chart
1111

12-
The requests summary chart lists the total number of requests to your API by the duration you choose. The chart shows the HTTP status codes specified by W3C. For example:
12+
The requests summary chart lists the total number of requests to your API instance by the duration you choose. The chart shows the HTTP status codes specified by W3C. For example:
1313

1414
image::request-analytics.png["Summary chart of the total number of requests for June 1, 2017, shown by one hour duration."]
1515

@@ -21,7 +21,7 @@ Graph lines are provided for:
2121

2222
== Reviewing Top Apps Summary Chart
2323

24-
The top apps summary chart lists the number of requests made to the API by each application for the top 5 applications calling that API. Each color represents one of the top 5 applications accessing the API. The y-axis plots the number of calls made to the API.
24+
The top apps summary chart lists the number of requests made to the API instance by each application for the top 5 applications calling that API instance. Each color represents one of the top 5 applications accessing the API. The y-axis plots the number of calls made to the API instance.
2525

2626
The graph lists the number of requests over the duration you select, for example:
2727

@@ -37,9 +37,9 @@ image::performance-analytics.png["A latency summary chart showing the average la
3737

3838
== Including Policy Violations in Charts
3939

40-
*Note:* Users must have the View Policies permission set to view policies or edit a Policy Violation alert.
40+
*Note:* Users must have the `View Policies` permission set to view policies or edit a Policy Violation alert.
4141

42-
Enable or disable the tracking of policy violations by checking the Include Policy Violations checkbox on an Analytics chart screen. The chart shows traffic rejected, or not rejected, by a policy.
42+
Enable or disable the tracking of policy violations by checking the Include Policy Violations checkbox on an Mule API Analytics chart screen. The chart shows traffic rejected, or not rejected, by a policy.
4343

4444
image::policy-violations-dashboard.png["An analytics chart screen with the Include Policy Violations checkbox indicated with a callout."]
4545

modules/ROOT/pages/analytics-event-api.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
= Reviewing Analytics Event API
1+
= Reviewing Mule API Analytics Event API
22
ifndef::env-site,env-github[]
33
include::_attributes.adoc[]
44
endif::[]
55
:keywords: analytics, api, reports
66

77
//Rename topic to Generating Analytics Reports for APIs
88

9-
API Manager gathers analytics data for each API that you manage. You can generate this data in reports and charts, using the Analytics Event API. You can create reports for a specific environment or for multiple APIs, and you can create different reports for the same API.
9+
API Manager gathers analytics data for each Mule API that you manage. You can generate this data in reports and charts, using the Analytics Event API. You can create reports for a specific environment or for multiple APIs, and you can create different reports for the same API.
1010

1111
== Requirements and Restrictions
1212

@@ -22,7 +22,7 @@ Before you start using the API to create reports, consider the following require
2222
* Although the Analytics Events API enforces a limit of 10 requests per minute, the best practice is 1 request per minute.
2323
* Do not use the Analytics Events API for data synchronization.
2424
+
25-
If you need to synchronize data for events with an external system, see xref:analytics-event-forward.adoc[Analytics Event Forwarding].
25+
If you need to synchronize data for events with an external system, see xref:analytics-event-forward.adoc[Mule API Analytics Event Forwarding].
2626

2727

2828
== Create a Report
@@ -31,7 +31,7 @@ You can create a report to find API events, such as policy violations due to rat
3131

3232
To create a report:
3333

34-
. Navigate to *API Manager > Analytics > Manage Reports* and click *New*.
34+
. Navigate to *API Manager* > *Mule Analytics* > *Manage Reports* and click *New*.
3535
. In *Create Report*, select a data source, range, and format.
3636
. In *Fields*, select *Violated Policy Name*.
3737
. Save the report.
@@ -80,7 +80,7 @@ This command sends a request to the authentication servers of the Anypoint Platf
8080
----
8181
+
8282
. Append the access token to the `Authorization` header in the request of the Analytics Reporting API endpoint for your report:
83-
.. Copy the endpoint from the *Manage Reports* page in the Analytics dashboard.
83+
.. Copy the endpoint from the *Manage Reports* page in the Mule API Analytics dashboard.
8484
.. Include the `$TOKEN` variable from the previous step in the next request, as shown in the following example that retrieves analytics for organizations without environments:
8585
+
8686
[source,console]
@@ -98,7 +98,7 @@ curl -H "Authorization: Bearer $TOKEN" "https://anypoint.mulesoft.com:443/analyt
9898
----
9999

100100
In this example, analytics data is retrieved for the past 30 days from the API with the API ID <API_ID>. The results are generated in a CSV format.
101-
+
101+
102102
The following example combines two `curl` commands and displays values in the command prompt window:
103103

104104
[source,text,linenums]
@@ -183,7 +183,7 @@ Timestamp, API Name, API ID, API Version, API Version ID are always included. +
183183
*Type:* string +
184184
*Required:* yes +
185185
*Example:* `format=csv`
186-
|maxResults |Maximum number of events to return. Default value is `20000`.+
186+
|maxResults |Maximum number of events to return. Default value is `20000`. +
187187

188188
*Type:* integer +
189189
*Required:* no +
@@ -240,12 +240,12 @@ Your report can query data for one or more of the available data fields:
240240
In your query, if the `Content-Length` header is:
241241

242242
* Present: `Response Size` is set to that value.
243-
* Not present and the payload is a String: Analytics calculates the length of the String and reports that value.
244-
* Not present and the payload is not a String: Analytics reports the response size as -1.
243+
* Not present and the payload is a String: Mule API Analytics calculates the length of the String and reports that value.
244+
* Not present and the payload is not a String: Mule API Analytics reports the response size as -1.
245245
+
246246
For example, if the output returned is a DataWeave stream and the `Content-Length` header is not present, the Analytics Event API does not report a response size because the value is not a String. However if your application performs a String conversion, the response size is listed.
247247

248248
== See Also
249249

250-
* xref:viewing-api-analytics.adoc[Viewing API Analytics]
250+
* xref:viewing-api-analytics.adoc[Viewing Mule API Analytics]
251251
* https://stedolan.github.io/jq/[jq command-line JSON processor]

modules/ROOT/pages/analytics-event-forward.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
= Reviewing Analytics Event Forwarding
1+
= Reviewing Mule API Analytics Event Forwarding
22
ifndef::env-site,env-github[]
33
include::_attributes.adoc[]
44
endif::[]
55

6-
Sometimes you need to forward the Anypoint API Analytics events to a third-party system. An example of this could be integrating with ELK or other analytics system.
6+
Sometimes you need to forward the Mule API Analytics events to a third-party system. An example of this could be integrating with ELK or other analytics system.
77

88
There are three ways to export events:
99

1010
* Use the API Analytics Report API to pull the data. One consideration with this method is that the API has limit on the number and frequency of events that can be reported. Additionally, events may have delays of up to 10 minutes from the time the event is generated to the moment it is available for query.
1111
12-
* Forward API Analytics events from the Gateway to configured HTTP endpoint. To configure this on CloudHub, configure the `anypoint.platform.analytics_base_uri` gateway property from the Settings tab of Runtime Manager.
12+
* Forward Mule API Analytics events from the Gateway to configured HTTP endpoint. To configure this on CloudHub, configure the `anypoint.platform.analytics_base_uri` gateway property from the Settings tab of Runtime Manager.
1313
+
1414
Setting this property configures the base URL where the events are posted.
1515
1616
image::analytics-event-forwarding.png[Event Forwarding]
1717

1818
In the example shown above, the events are published to `+http://<your-address-here>/v2/analytics/events+` using the POST method and GZIP for compression.
1919

20-
The disadvantage of this approach is that events are not published to Anypoint Platform and neither API Analytics nor API Manager display information about API calls.
20+
The disadvantage of this approach is that events are not published to Anypoint Platform and neither Mule API Analytics nor API Manager display information about API calls.
2121

2222
* Use Runtime Manager to xref:runtime-manager::sending-data-from-arm-to-external-analytics-software.adoc[Export Data to External Analytics Tools]
2323

modules/ROOT/pages/analytics-landing-page.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
= Analytics
1+
= Mule API Analytics
22
ifndef::env-site,env-github[]
33
include::_attributes.adoc[]
44
endif::[]
55
:keywords: analytics
66

7-
API Analytics can provide insight into how your APIs are being used and how they are performing. From API Manager, you can access the Analytics dashboard, create a custom dashboard, create and manage charts, and create reports. From API Manager, you can get following types of analytics:
7+
NOTE: *Mule API Analytics* does not support Flex Gateway APIs. For Flex Gateway Analytics, see xref:gateway::flex-view-api-metrics.adoc[].
8+
9+
Mule API Analytics can provide insight into how your Mule APIs are being used and how they are performing. From API Manager, you can access the Mule API Analytics dashboard, create a custom dashboard, create and manage charts, and create reports. From API Manager, you can get following types of analytics:
810

911
* API viewing analytics
1012
* API events analytics
1113
* Charted metrics in API Manager
1214
13-
You can view data from a policy perspective in the Analytics dashboard, Analytics chart, or API Manager by including policy violations. This action tracks traffic rejected, or not rejected, by a policy.
15+
You can view data from a policy perspective in the Mule API Analytics dashboard, Mule API Analytics chart, or API Manager by including policy violations. This action tracks traffic rejected, or not rejected, by a policy.
1416

15-
NOTE: The Analytics link is visible only to users who have `Read API` permission. Charts are visible for users who have `View Analytics` permission.
17+
The *Mule API Analytics* tab is visible only to users who have `Read API` permission. Charts are visible for users who have `View Analytics` permission.
1618

1719
== See Also
1820

modules/ROOT/pages/api-proxy-landing-page.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ You can deploy a proxy directly to a xref:runtime-fabric::index.adoc[Runtime Fab
4949
* Enables customization
5050
+
5151
In most cases, the proxy generated in API Manager is suitable for deployment. However, in the Mule environment, you can use xref:studio::import-export-packages.adoc[Anypoint Studio] to edit the proxy to meet custom requirements.
52-
* Secures and governs your APIs using policies and xref:viewing-api-analytics.adoc[API analytics]
52+
* Secures and governs your APIs using policies and xref:viewing-api-analytics.adoc[Mule API Analytics]
5353
+
54-
The proxy enables you to protect your API with the full capabilities of the API gateway, including access to API Analytics.
54+
The proxy enables you to protect your API with the full capabilities of the API gateway, including access to Mule API Analytics.
5555
* Implements validations
5656
+
5757
Most proxies, including RAML, REST, and WSDL proxies, enable you to perform validations on all incoming requests, using your API definition. You can choose different levels of validation, depending on your requirements:

modules/ROOT/pages/latest-overview-concept.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ _Custom policies_ are policies that anyone can develop and apply to their APIs,
4545
* *DataGraph Administration*
4646
+
4747
Anypoint DataGraph enables you to unify all the data within your application network in a unified schema. For details, see xref:datagraph::index.adoc[Anypoint DataGraph Overview]. *DataGraph Administration* is only visible after you configure a Datagraph unified schema.
48-
* *Analytics*
48+
* *Mule API Analytics*
4949
+
50-
API analytics provide insight into how your APIs are being used and how they are performing. For details, see xref:viewing-api-analytics.adoc[Reviewing Analytics Usage].
50+
Mule API Analytics provide insight into how your Mule APIs are being used and how they are performing. For details, see xref:viewing-api-analytics.adoc[Reviewing Mule API Analytics Usage].
5151

5252
. The *Add API* button. Enables you to add a new API instance, to promote an API from any environment to the current environment, or to import a configuration ZIP file that was exported from API Manager. For details, see xref:getting-started-proxy.adoc[Getting Started with Managing an API].
5353

modules/ROOT/pages/proxy-advantages.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The tables below describe the main benefits and impacts of implementing the diff
1010
[%header%autowidth.spread]
1111
|===
1212
| Benefit | WSDL | RAML/OAS | HTTP | HTTPS
13-
| Tracks proxy in API Manager and generates API analytics. Requires Autodiscovery.
13+
| Tracks proxy in API Manager and generates Mule API analytics. Requires Autodiscovery.
1414
| yes
1515
| yes
1616
| yes

modules/ROOT/pages/viewing-api-analytics.adoc

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
1-
= Reviewing Analytics Usage
1+
= Reviewing Mule API Analytics Usage
22
ifndef::env-site,env-github[]
33
include::_attributes.adoc[]
44
endif::[]
55
:keywords: analytics, dashboard
66

7-
After logging into Anypoint Platform, navigate to API Manager, and on the Administration page, click Analytics to open the dashboard. From the dashboard, you can navigate to the analytics about your APIs gathered by Anypoint Platform.
7+
You can view your Mule API Analytics data from both API Manager and Anypoint Monitoring. API Manager retains the Mule API Analytics data for up to 30 days. However, Anypoint Monitoring provides more robust API usage data with a retention period of 30 days.
88

9-
You can view your API Analytics data from both API Manager and Anypoint Monitoring. API Manager retains the API Analytics data for up to 30 days. However, Anypoint Monitoring provides more robust API usage data with a retention period of 30 days.
9+
To view Mule API Analytics Data in API Manager:
10+
11+
. Go to *Anypoint Platform* > *API Manager*.
12+
. Click *Mule API Analytics*.
13+
14+
From the dashboard, you can navigate to the analytics about your APIs gathered by Anypoint Platform.
1015

1116
For more information about how you can view your data in Anypoint Monitoring, see xref:monitoring::api-analytics-dashboard.adoc[Anypoint Monitoring API Analytics Dashboard].
1217

13-
When you access the analytics for your APIs, by default you land on your Overview Dashboard that displays these charts:
18+
When you access the analytics for your Mule APIs, by default you land on your Overview Dashboard that displays these charts:
1419

1520
* *Requests by Date*: Line chart that shows the number of requests for all APIs in your organization.
1621
* *Requests by Location*: Map chart that shows the number of requests for each country of origin.
@@ -42,7 +47,7 @@ If you have filtered data on one of the charts to show only selected data, the e
4247

4348
== Including Policy Violations on the Dashboard
4449

45-
*Note:* Users must have the View Policies permission set to view policies or edit a Policy Violation alert.
50+
*Note:* Users must have the `View Policies` permission set to view policies or edit a Policy Violation alert.
4651
For more information, see xref:environment-permission-task.adoc[Setting permissions].
4752

4853
Enable or disable the tracking of policy violations by checking the Include Policy Violations checkbox on the dashboard. The dashboard will show traffic rejected, or not rejected, by a policy.
@@ -66,7 +71,7 @@ Only charts that group by Violated Policy Name include events that triggered a p
6671

6772
To create a custom chart, click Manage Charts:
6873

69-
. In API Manager > Analytics > Manage Charts, click New.
74+
. Navigate to *API Manager* > *Mule API Analytics* > *Manage Charts* and click *New*.
7075
+
7176
Create Chart appears.
7277
+
@@ -140,7 +145,7 @@ The custom chart appears.
140145

141146
=== Example Custom Chart: Policy Violations Per Application
142147

143-
. In API Manager > Analytics > Manage Charts, click New.
148+
. Navigate to *API Manager* > *Mule API Analytics* > *Manage Charts* and click *New*.
144149
. In Title, type *Policy Violations Per Application*.
145150
. In Description, type *Number of violations per subscribed application*
146151
. Select a stack chart.
@@ -165,7 +170,7 @@ After you create custom charts, you can display them side by side on a custom da
165170

166171
To access your custom dashboard, click the Custom Dashboard. The first time you open your custom dashboard, it is blank.
167172

168-
. In API Manager > Analytics > Custom Dashboard, click Edit Dashboard.
173+
. Navigate to *API Manager* > *Mule API Analytics* > *Custom Dashboard* and click *Edit Dashboard*.
169174
. Assuming you created custom charts, drag and drop charts from the drawer on the left of the screen onto your dashboard, rearranging them as needed into the order that you want.
170175
+
171176
. After you add a chart to your dashboard, you have the option to open it for editing or click the X to remove it from your dashboard.

0 commit comments

Comments
 (0)