From 6748f0fd382c21aa8fee0b4b64dd9c4d6427002e Mon Sep 17 00:00:00 2001 From: "yufu.deng" Date: Tue, 29 Nov 2022 17:46:14 +0800 Subject: [PATCH 1/2] doc: add megacloud-config.md --- doc/how-to-use/megacloud-config.md | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 doc/how-to-use/megacloud-config.md diff --git a/doc/how-to-use/megacloud-config.md b/doc/how-to-use/megacloud-config.md new file mode 100644 index 00000000..e5b169d9 --- /dev/null +++ b/doc/how-to-use/megacloud-config.md @@ -0,0 +1,55 @@ +### First: Download and install the agent +[see our doc](https://github.com/megaease/easeagent#get-and-set-environment-variable) + +### Second: Configuration +Modify the agent.properties file to configure your information. + +##### 1. name + +You'll name to find your data later. It's important to use a unique and meaningful name. + +The service name of megacloud consists of three parts: zone, domain, name. They are joined by `.` into `ServiceName` + +```properties +name=zone.domain.service +``` + +##### 2. MTLS + +MTLS is a secure authentication protocol for EaseAgent to connect to MegaCloud. + +Config: Get TLS +```properties +reporter.outputServer.tls.enable=true +reporter.outputServer.tls.key=YOUR_TLS_KEY +reporter.outputServer.tls.cert=YOUR_TLS_CERT +``` + +##### 3. reporter + +MegaCloud uses http to receive data, so you need to change the configuration to http and MegaCloud's address. +```properties +reporter.outputServer.bootstrapServer={MEGA_CLOUD_URL} +reporter.outputServer.appendType=http +reporter.tracing.sender.appendType=http +reporter.metric.sender.appendType=http +plugin.observability.global.metric.url=/platform-metrics +plugin.observability.global.log.url=/application-log +plugin.observability.access.log.url=/application-access-log +reporter.tracing.sender.url=/application-tracing-log +reporter.tracing.encoder=SpanJsonEncoder +``` + +##### 4. other +Other configurations are EaseAgent related configurations such as Tracing, Metric, etc. For details, please refer to [github doc](https://github.com/megaease/easeagent/blob/master/doc/user-manual.md#configuration) + +### Third: About `MEGA_CLOUD_URL` And `TLS` + +When you download the `easeagent.jar` file through our megacloud, `MEGA_CLOUD_URL` and `TLS` will be filled in for you automatically. + +If you need it separately, please download the `easeagent.jar` and get it by yourself. + +You can use the command to get config: +```bash +jar xf easeagent.jar agent.properties +``` From e0aae690d5c8b144f8c40eee24ee4bee637ba65e Mon Sep 17 00:00:00 2001 From: "yufu.deng" Date: Tue, 29 Nov 2022 17:52:07 +0800 Subject: [PATCH 2/2] feat: release 2.2.4 --- build/pom.xml | 2 +- config/pom.xml | 2 +- context/pom.xml | 2 +- core/pom.xml | 2 +- httpserver/pom.xml | 2 +- loader/pom.xml | 2 +- log4j2/log4j2-api/pom.xml | 2 +- log4j2/log4j2-impl/pom.xml | 2 +- log4j2/pom.xml | 2 +- metrics/pom.xml | 2 +- mock/config-mock/pom.xml | 2 +- mock/context-mock/pom.xml | 2 +- mock/log4j2-mock/pom.xml | 2 +- mock/metrics-mock/pom.xml | 2 +- mock/plugin-api-mock/pom.xml | 2 +- mock/pom.xml | 2 +- mock/report-mock/pom.xml | 2 +- mock/utils-mock/pom.xml | 2 +- mock/zipkin-mock/pom.xml | 2 +- plugin-api/pom.xml | 2 +- plugins/async/pom.xml | 2 +- plugins/dubbo/pom.xml | 2 +- plugins/elasticsearch/pom.xml | 2 +- plugins/healthy/pom.xml | 2 +- plugins/httpclient/pom.xml | 2 +- plugins/httpservlet/pom.xml | 2 +- plugins/jdbc/pom.xml | 2 +- plugins/kafka/pom.xml | 2 +- plugins/log4j2-log-plugin/pom.xml | 2 +- plugins/logback/pom.xml | 2 +- plugins/mongodb/pom.xml | 2 +- plugins/motan/pom.xml | 2 +- plugins/okhttp/pom.xml | 2 +- plugins/pom.xml | 10 +++------- plugins/rabbitmq/pom.xml | 2 +- plugins/redis/pom.xml | 2 +- plugins/servicename/pom.xml | 2 +- plugins/spring-gateway/pom.xml | 2 +- plugins/springweb/pom.xml | 2 +- pom.xml | 2 +- report/pom.xml | 2 +- zipkin/pom.xml | 2 +- 42 files changed, 44 insertions(+), 48 deletions(-) diff --git a/build/pom.xml b/build/pom.xml index 8f2909b0..8a1148af 100644 --- a/build/pom.xml +++ b/build/pom.xml @@ -21,7 +21,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/config/pom.xml b/config/pom.xml index 9221f283..71f3db5c 100644 --- a/config/pom.xml +++ b/config/pom.xml @@ -22,7 +22,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/context/pom.xml b/context/pom.xml index 040fdf60..4d56c99d 100644 --- a/context/pom.xml +++ b/context/pom.xml @@ -22,7 +22,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/core/pom.xml b/core/pom.xml index 60d7d164..8ccec38f 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -21,7 +21,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/httpserver/pom.xml b/httpserver/pom.xml index a0fc89fb..45f3389d 100644 --- a/httpserver/pom.xml +++ b/httpserver/pom.xml @@ -22,7 +22,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/loader/pom.xml b/loader/pom.xml index 0b963228..a78357d6 100644 --- a/loader/pom.xml +++ b/loader/pom.xml @@ -21,7 +21,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/log4j2/log4j2-api/pom.xml b/log4j2/log4j2-api/pom.xml index 3887d80c..7ae4c127 100644 --- a/log4j2/log4j2-api/pom.xml +++ b/log4j2/log4j2-api/pom.xml @@ -22,7 +22,7 @@ log4j2 com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/log4j2/log4j2-impl/pom.xml b/log4j2/log4j2-impl/pom.xml index 4cd81174..3a1438ec 100644 --- a/log4j2/log4j2-impl/pom.xml +++ b/log4j2/log4j2-impl/pom.xml @@ -22,7 +22,7 @@ log4j2 com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/log4j2/pom.xml b/log4j2/pom.xml index 7b94dd52..58655fa9 100644 --- a/log4j2/pom.xml +++ b/log4j2/pom.xml @@ -21,7 +21,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/metrics/pom.xml b/metrics/pom.xml index eeff44ec..bb02ebc5 100644 --- a/metrics/pom.xml +++ b/metrics/pom.xml @@ -21,7 +21,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/config-mock/pom.xml b/mock/config-mock/pom.xml index bf137470..f9ba0a2f 100644 --- a/mock/config-mock/pom.xml +++ b/mock/config-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/context-mock/pom.xml b/mock/context-mock/pom.xml index a7db02e1..420501ba 100644 --- a/mock/context-mock/pom.xml +++ b/mock/context-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/log4j2-mock/pom.xml b/mock/log4j2-mock/pom.xml index dbfef3d8..9fd9efb6 100644 --- a/mock/log4j2-mock/pom.xml +++ b/mock/log4j2-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/metrics-mock/pom.xml b/mock/metrics-mock/pom.xml index 9505a89a..02ed6006 100644 --- a/mock/metrics-mock/pom.xml +++ b/mock/metrics-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/plugin-api-mock/pom.xml b/mock/plugin-api-mock/pom.xml index 0c2520e0..4340d835 100644 --- a/mock/plugin-api-mock/pom.xml +++ b/mock/plugin-api-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/pom.xml b/mock/pom.xml index 0333ce21..12b3d62c 100644 --- a/mock/pom.xml +++ b/mock/pom.xml @@ -22,7 +22,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/report-mock/pom.xml b/mock/report-mock/pom.xml index 1e3075b6..4490fee6 100644 --- a/mock/report-mock/pom.xml +++ b/mock/report-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/utils-mock/pom.xml b/mock/utils-mock/pom.xml index 0e0d9660..913e68df 100644 --- a/mock/utils-mock/pom.xml +++ b/mock/utils-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/mock/zipkin-mock/pom.xml b/mock/zipkin-mock/pom.xml index 1f2c6944..58a27908 100644 --- a/mock/zipkin-mock/pom.xml +++ b/mock/zipkin-mock/pom.xml @@ -22,7 +22,7 @@ mock com.megaease.easeagent - 2.2.3 + 2.2.4 4.0.0 diff --git a/plugin-api/pom.xml b/plugin-api/pom.xml index 7054214c..ef248fcf 100644 --- a/plugin-api/pom.xml +++ b/plugin-api/pom.xml @@ -24,7 +24,7 @@ easeagent com.megaease.easeagent - 2.2.3 + 2.2.4 plugin-api diff --git a/plugins/async/pom.xml b/plugins/async/pom.xml index 9019826f..8d8af292 100644 --- a/plugins/async/pom.xml +++ b/plugins/async/pom.xml @@ -23,7 +23,7 @@ com.megaease.easeagent plugins - 2.2.3 + 2.2.4