You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/analytics-chart.adoc
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,15 @@
1
-
= Reviewing API Manager Analytics Charts Usage
1
+
= Reviewing API Manager Mule API Analytics Charts Usage
2
2
ifndef::env-site,env-github[]
3
3
include::_attributes.adoc[]
4
4
endif::[]
5
5
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.
7
7
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].
9
9
10
10
== Reviewing Requests Summary Chart
11
11
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:
13
13
14
14
image::request-analytics.png["Summary chart of the total number of requests for June 1, 2017, shown by one hour duration."]
15
15
@@ -21,7 +21,7 @@ Graph lines are provided for:
21
21
22
22
== Reviewing Top Apps Summary Chart
23
23
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.
25
25
26
26
The graph lists the number of requests over the duration you select, for example:
27
27
@@ -37,9 +37,9 @@ image::performance-analytics.png["A latency summary chart showing the average la
37
37
38
38
== Including Policy Violations in Charts
39
39
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.
41
41
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.
43
43
44
44
image::policy-violations-dashboard.png["An analytics chart screen with the Include Policy Violations checkbox indicated with a callout."]
Copy file name to clipboardExpand all lines: modules/ROOT/pages/analytics-event-api.adoc
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
= Reviewing Analytics Event API
1
+
= Reviewing Mule API Analytics Event API
2
2
ifndef::env-site,env-github[]
3
3
include::_attributes.adoc[]
4
4
endif::[]
5
5
:keywords: analytics, api, reports
6
6
7
7
//Rename topic to Generating Analytics Reports for APIs
8
8
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.
10
10
11
11
== Requirements and Restrictions
12
12
@@ -22,7 +22,7 @@ Before you start using the API to create reports, consider the following require
22
22
* Although the Analytics Events API enforces a limit of 10 requests per minute, the best practice is 1 request per minute.
23
23
* Do not use the Analytics Events API for data synchronization.
24
24
+
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].
26
26
27
27
28
28
== Create a Report
@@ -31,7 +31,7 @@ You can create a report to find API events, such as policy violations due to rat
31
31
32
32
To create a report:
33
33
34
-
. Navigate to *API Manager > Analytics > Manage Reports* and click *New*.
34
+
. Navigate to *API Manager* > *Mule Analytics* > *Manage Reports* and click *New*.
35
35
. In *Create Report*, select a data source, range, and format.
36
36
. In *Fields*, select *Violated Policy Name*.
37
37
. Save the report.
@@ -80,7 +80,7 @@ This command sends a request to the authentication servers of the Anypoint Platf
80
80
----
81
81
+
82
82
. 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.
84
84
.. 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:
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
+
102
102
The following example combines two `curl` commands and displays values in the command prompt window:
103
103
104
104
[source,text,linenums]
@@ -183,7 +183,7 @@ Timestamp, API Name, API ID, API Version, API Version ID are always included. +
183
183
*Type:* string +
184
184
*Required:* yes +
185
185
*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`.+
187
187
188
188
*Type:* integer +
189
189
*Required:* no +
@@ -240,12 +240,12 @@ Your report can query data for one or more of the available data fields:
240
240
In your query, if the `Content-Length` header is:
241
241
242
242
* 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.
245
245
+
246
246
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.
247
247
248
248
== See Also
249
249
250
-
* xref:viewing-api-analytics.adoc[Viewing API Analytics]
250
+
* xref:viewing-api-analytics.adoc[Viewing Mule API Analytics]
Copy file name to clipboardExpand all lines: modules/ROOT/pages/analytics-event-forward.adoc
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,23 @@
1
-
= Reviewing Analytics Event Forwarding
1
+
= Reviewing Mule API Analytics Event Forwarding
2
2
ifndef::env-site,env-github[]
3
3
include::_attributes.adoc[]
4
4
endif::[]
5
5
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.
7
7
8
8
There are three ways to export events:
9
9
10
10
* 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.
11
11
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.
13
13
+
14
14
Setting this property configures the base URL where the events are posted.
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.
19
19
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.
21
21
22
22
* Use Runtime Manager to xref:runtime-manager::sending-data-from-arm-to-external-analytics-software.adoc[Export Data to External Analytics Tools]
Copy file name to clipboardExpand all lines: modules/ROOT/pages/analytics-landing-page.adoc
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,20 @@
1
-
= Analytics
1
+
= Mule API Analytics
2
2
ifndef::env-site,env-github[]
3
3
include::_attributes.adoc[]
4
4
endif::[]
5
5
:keywords: analytics
6
6
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:
8
10
9
11
* API viewing analytics
10
12
* API events analytics
11
13
* Charted metrics in API Manager
12
14
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.
14
16
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.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/api-instance-landing-page.adoc
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,24 +4,25 @@ include::_attributes.adoc[]
4
4
endif::[]
5
5
:keywords: api, instance, manager
6
6
7
-
An API instance is the instantiation of an API definition. It is an object that is used to share data between gateways and the control plane. An API Instance can either be a proxy of an API that serves the upstream or a Mule application endpoint.
7
+
An API instance is the instantiation of an API definition. It is an object that is used to share data between gateways and the control plane. An API instance can either be a proxy of an API that serves the upstream or a Mule application endpoint.
8
8
9
9
You can create, import, and deprecate API instances using API Manager. You can use instances of an API in multiple environments. You can also have multiple instances of an API in the same environment.
10
10
11
11
You can create one instance of an API version that serves as a proxy and create another to directly manage it as an endpoint. You can apply policies to the API based on how the API is configured--proxy or endpoint. For example, you can apply caching policies to the proxy, and throttling policies and security policies to the endpoint. Additionally, you can promote an API to another environment.
12
12
13
-
To manage API Instances in API Manager:
13
+
To manage API instances in API Manager:
14
14
15
15
. xref:create-instance-task.adoc[Add an API Instance] - API instances are managed by API Manager after you add them and remain under management until you delete them.
16
-
. xref:configure-api-task.adoc[Configure an API Instance] - You can customize your API Instance to fit your specific situation with many optional settings. Not all options are available depending on the runtime as well as the API.
17
-
. View an API Instance's settings for information about the instance or to export it.
16
+
. xref:configure-api-task.adoc[Configure an API Instance] - You can customize your API instance to fit your specific situation with many optional settings. Not all options are available depending on the runtime as well as the API.
17
+
. View an API instance's API Summary for information about the instance or to export it:
18
18
** xref:find-api-id-task.adoc[Obtain API Instance ID] - API Manager generates the apiId of new APIs managed by API Manager for use with Mule 4.
19
19
** xref:export-api-latest-task.adoc[Export an API Instance] - After creating an API instance, you can export it. This exports the API instance endpoint configuration and Exchange asset relationship. You can then import it into another environment in the same business group to create a new API instance.
20
20
** xref:access-developer-portal-task.adoc[Access the Developer Portal] - As an administrator, you can view the resources and methods of an API, and access other details, such as publish date and mocking service, from Anypoint Exchange (Exchange). You can view the API in an asset portal (private) or a public portal.
21
-
. Modify an API Instance when you no longer need the instance or when you need to update it to the latest version.
21
+
. Modify an API instance when you no longer need the instance or when you need to update it:
22
+
** xref:edit-api-endpoint-task.adoc[Edit an API Instance Endpoint] - Edit the API instance's endpoint to update its base path, port, TLS context, and more.
22
23
** xref:deprecate-api-latest-task.adoc[Deprecate an API Instance] - While transitioning consumers of your API to an updated instance, you can prevent developers from signing up for access to your old API instance.
23
24
** xref:delete-api-task.adoc[Delete an API Instance] - You can delete an API instance and its version if you no longer need to manage it from API Manager.
24
25
** xref:manage-versions-instances-concept.adoc[Manage API Versions] - After you create an API in Anypoint Platform, you configure the version details for the API and then publish it to Anypoint Exchange (Exchange). The API version resides in Exchange, and not in API Manager. However, you then manage this API version from API Manager.
25
-
. Explore advanced use cases for API Instances.
26
+
. Explore advanced use cases for API instances:
26
27
+
27
28
xref:configure-multiple-credential-providers.adoc[Configure Multiple Client Providers] - You can use multiple client providers, such as OpenAM and PingFederate, to help you enforce security and regulations in your business organization. These client providers enable you to secure your operational data, including client credentials and access tokens.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/api-proxy-landing-page.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,9 @@ You can deploy a proxy directly to a xref:runtime-fabric::index.adoc[Runtime Fab
49
49
* Enables customization
50
50
+
51
51
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]
53
53
+
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.
55
55
* Implements validations
56
56
+
57
57
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:
The `281324` suffix in this case is API Instance ID of your API Proxy.
94
+
The `281324` suffix in this case is API instance ID of your API Proxy.
95
95
96
96
If you inspect your API Proxy's XML, you can see these properties being used in your trustore/keystore configurations:
97
97
@@ -106,12 +106,9 @@ To deploy your API Proxy to a standalone server, provide secured properties for
106
106
107
107
. Download the API Proxy.
108
108
.. In API Manager, select the version of the API proxy you want to download.
109
-
.. Click *Actions* and select *Download Proxy*.
110
-
. Take note of your API Instance ID under *API Instance*.
111
-
+
112
-
image::building-https-proxy-541ec.png["The Download Proxy form with the API Instance ID highlighted by a rectangle."]
113
-
+
114
-
. When running your standalone Mule instance, you need to provide the keystore and key passphrases as -D arguments, along with your API Proxy's API Instance ID. +
109
+
.. Click the *Actions* button in the top-right corner of your screen and select *Download Proxy*.
110
+
. Take note of your API instance ID under *API Instance ID*.
111
+
. When running your standalone Mule instance, you need to provide the keystore and key passphrases as -D arguments, along with your API Proxy's API instance ID. +
115
112
For example, if your API instance ID is 15464957, you need to pass the arguments:
0 commit comments