Skip to content

Commit

Permalink
Merge pull request #7876 from HeshanSudarshana/master-remove-cc-docs
Browse files Browse the repository at this point in the history
Remove choreo-connect and k8s-operator related docs
  • Loading branch information
HeshanSudarshana authored Apr 11, 2024
2 parents b62ee49 + a0e1263 commit fb5053c
Show file tree
Hide file tree
Showing 560 changed files with 214 additions and 91,917 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ You need to implement two interfaces from the above dependency, (i.e., `CounterM

## Step 2 - Deploy the Event Publisher

After the project is implemented and built, you need to deploy and configure the resulting library within WSO2 API Manager. This section will guide you through the steps required to deploy and configure the above-created library in WSO2 API Manager Gateway and/or Choreo Connect.
After the project is implemented and built, you need to deploy and configure the resulting library within WSO2 API Manager. This section will guide you through the steps required to deploy and configure the above-created library in WSO2 API Manager Gateway.

Follow the instructions below to configure WSO2 API Gateway and Choreo Connect for the sample created above:
Follow the instructions below to configure WSO2 API Gateway for the sample created above:

??? info "API Manager Gateway"

Expand Down Expand Up @@ -112,67 +112,6 @@ Follow the instructions below to configure WSO2 API Gateway and Choreo Connect f
logger.reporter.level = INFO
```

??? info "Choreo Connect"
Follow the instructions below to configure Choreo Connect for the sample created above:

1. Copy the JAR file to the `choreo-connect-1.0.0/docker-compose/resources/enforcer/dropins` directory.
2. Open the `choreo-connect-1.0.0/docker-compose/choreo-connect-with-apim/conf/config.toml` file in a text editor and modify the `analytics` section as follows:

```
[analytics]
enabled = true
[analytics.enforcer]
[analytics.enforcer.configProperties]
authURL = "$env{analytics_authURL}"
authToken = "$env{analytics_authToken}"
"publisher.reporter.class" = "org.wso2.am.analytics.publisher.sample.reporter.CustomReporter"
```

3. Open the `choreo-connect-1.0.0/docker-compose/choreo-connect-with-apim/conf/log4j2.properties` file in a text editor and do the following modifications.

1. Add an appender to the appenders list.

```
appenders = ENFORCER_ANALYTICS, ...(list of other available appenders)
```

2. Add the following configurations after the appenders.

```
appender.ENFORCER_ANALYTICS.type = RollingFile
appender.ENFORCER_ANALYTICS.name = ENFORCER_ANALYTICS
appender.ENFORCER_ANALYTICS.fileName = logs/enforcer_analytics.log
appender.ENFORCER_ANALYTICS.filePattern = /logs/enforcer_analytics-%d{MM-dd-yyyy}.log
appender.ENFORCER_ANALYTICS.layout.type = PatternLayout
appender.ENFORCER_ANALYTICS.layout.pattern = [%d] - %m%ex%n
appender.ENFORCER_ANALYTICS.policies.type = Policies
appender.ENFORCER_ANALYTICS.policies.time.type = TimeBasedTriggeringPolicy
appender.ENFORCER_ANALYTICS.policies.time.interval = 1
appender.ENFORCER_ANALYTICS.policies.time.modulate = true
appender.ENFORCER_ANALYTICS.policies.size.type = SizeBasedTriggeringPolicy
appender.ENFORCER_ANALYTICS.policies.size.size=10MB
appender.ENFORCER_ANALYTICS.strategy.type = DefaultRolloverStrategy
appender.ENFORCER_ANALYTICS.strategy.max = 20
appender.ENFORCER_ANALYTICS.filter.threshold.type = ThresholdFilter
appender.ENFORCER_ANALYTICS.filter.threshold.level = DEBUG
```

3. Add `reporter` to the loggers list.

```
loggers = reporter, ...(list of other available loggers)
```

4. Add the following configurations after the loggers.

```
logger.reporter.name = org.wso2.am.analytics.publisher.sample.reporter
logger.reporter.level = INFO
logger.reporter.additivity = false
logger.reporter.appenderRef.rolling.ref = ENFORCER_ANALYTICS
```


## Step 3 - Visualize analytics data

After publishing the analytics data, the next step is to visualize them in a manner in which the end-user can get more information out of it. WSO2 API Manager logs are structured in a way that allows us to easily plug them into a visualization tool to visualize them.
Expand Down Expand Up @@ -217,19 +156,6 @@ This section will guide you through the steps required to visualize the publishe
- /<API-M_HOME>/repository/logs/wso2carbon.log
```

??? info "Choreo Connect"
Modify the Filebeat configuration file as follows:

The log data is available in `enforcer_analytics.log`.

```
filebeat.inputs:
- type: log
enabled: true
paths:
- /home/wso2/logs/enforcer_analytics.log
```

2. [Set up assets]((https://www.elastic.co/guide/en/beats/filebeat/7.13/filebeat-installation-configuration.html#setup-assets)).

!!! tip
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/docker-logo.png
Binary file not shown.
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/git-integration.png
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/helm.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/invoke-api.png
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/invoke-soap-api.png
Binary file not shown.
Binary file removed en/docs/assets/img/deploy/mgw/kubernetes.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/soap-to-rest.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/subscribe-to-api.png
Diff not rendered.
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/trace-azure-filter.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/trace-azure.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/trace-jaeger.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/trace-otlp.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/trace-zipkin.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/try-api.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/try-it-success.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/xff-scenario-1.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/xff-scenario-2.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/xff-scenario-3.png
Diff not rendered.
Binary file removed en/docs/assets/img/deploy/mgw/xff-scenario-4.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,3 @@ apim.jwt.binding_federated_user_claims</code></pre></td>
1. Go to the `<APIM_GATEWAY>/repository/conf` directory and open the `log4j2.properties` file with a text editor.
2. Add these two loggers to the list of loggers:<br/>
<code>loggers = AUDIT_LOG, trace-messages,... <strong>, synapse-headers, synapse-wire</strong></code>

## See Also

If you want to learn how you can pass end user attributes to the backend when working with Choreo Connect, see [Passing Enduser Attributes to the Backend]({{base_path}}/deploy-and-publish/deploy-on-gateway/choreo-connect/passing-enduser-attributes-to-the-backend-via-choreo-connect), which is under the Choreo Connect documentation section.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fb5053c

Please sign in to comment.