Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch master into develop #828

Merged
merged 93 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
0b105de
update project version to 1.3.0-RELEASE
xwm1992 Dec 20, 2021
8f0670f
Delete gradle/wrapper directory
xwm1992 Dec 20, 2021
3f38b82
update docs
xwm1992 Dec 20, 2021
52205e3
Merge branch '1.3.0-RELEASE' of https://github.com/apache/incubator-e…
xwm1992 Dec 20, 2021
d6037d4
update Dockerfile and build.gradle
xwm1992 Dec 20, 2021
be0fb29
update build.gradle
xwm1992 Dec 20, 2021
2790b78
update Dockerfile path
xwm1992 Dec 20, 2021
1e99c79
Update .asf.yaml
xwm1992 Dec 28, 2021
2175a4b
Update .asf.yaml
xwm1992 Dec 29, 2021
91ff4bc
[Infra] trigger branch protection change
Humbedooh Dec 29, 2021
4d220ba
[Infra] retrigger .asf.yaml protections
Humbedooh Dec 29, 2021
8454128
update some docs
qqeasonchen Dec 20, 2021
84efbda
update Dockerfile path
xwm1992 Dec 20, 2021
53a4b94
Update java sdk docs (#663)
ruanwenjun Dec 21, 2021
5592df5
Add files via upload
xwm1992 Dec 23, 2021
7aaa349
[Infra] retrigger .asf.yaml protections
Humbedooh Dec 29, 2021
1ddb0bf
Merge pull request #675 from xwm1992/master
xwm1992 Dec 30, 2021
9b76a9e
Update .asf.yaml
xwm1992 Dec 30, 2021
8519fb0
[ISSUE #670] fix checkstyle check fail (#680)
jonyangx Dec 31, 2021
5adc007
[MINOR] Fixed redundant boxing operations (#684)
li-xiao-shuang Dec 31, 2021
1654c47
[MINOR] new Runnable() can be replaced with lambda (#685)
li-xiao-shuang Dec 31, 2021
fd60ab9
[MINOR] ConfigurationWrapper class adds thread pool shutdown (#683)
li-xiao-shuang Dec 31, 2021
852c22b
[ISSUE #677] Translate readme files from English to Chinese (#678)
li-xiao-shuang Jan 4, 2022
2b3e861
[ISSUE #405]update cloudevents examples (#688)
li-xiao-shuang Jan 4, 2022
52d423f
Bump gradle version to 7.3.3 Support Java17 build
shoothzj Jan 5, 2022
a1140ab
Merge pull request #689 from Shoothzj/gradle-7-3
qqeasonchen Jan 5, 2022
032bb0d
[ISSUE #690]Remove extra code style check job in CI (#691)
ruanwenjun Jan 5, 2022
0cadf29
Update intro.md (#693)
qqeasonchen Jan 5, 2022
9fca946
Add files via upload (#694)
qqeasonchen Jan 5, 2022
5c0f8a9
[ISSUE #692]Change the default merge strategy to squash (#695)
ruanwenjun Jan 6, 2022
8ac37a0
[ISSUE #673] update eventmesh-runtime-quickstart-with-docker.md en & …
jzhou59 Jan 6, 2022
a9d102c
[MINOR] Change Tar and Zip name (#699)
ruanwenjun Jan 6, 2022
70080e7
[Issue #702] Fix Slack Join link (#705)
shoothzj Jan 10, 2022
80aa61a
Updated Notice file to 2022 (#704)
shoothzj Jan 10, 2022
5dc964b
add instruction docs of trace and metrics in eventmesh (#706)
Roc-00 Jan 10, 2022
db6b34f
[ISSUE #405]Fix args typo in examples (#707)
shoothzj Jan 10, 2022
1cb0023
[ISSUE #696] Add metrics plugin (#709)
ruanwenjun Jan 13, 2022
52ec3d7
[ISSUE #713] Fix trace bug (#712)
Roc-00 Jan 14, 2022
2ff9966
[Issue #533] Adding design doc for EventMesh Workflow
jinrongluo Jan 14, 2022
d7b0fe3
[Issue #553] Adding design doc for EventMesh Workflow (#714)
jinrongluo Jan 15, 2022
d6a4ed1
Merge remote-tracking branch 'origin/master' into workflow
jinrongluo Jan 15, 2022
32c6f9a
[Issue #553] update the design doc.
jinrongluo Jan 15, 2022
2accf26
Merge pull request #715 from jinrongluo/workflow
qqeasonchen Jan 15, 2022
ba5b0ce
small updates to doc
tsurdilo Jan 15, 2022
0c25347
small update
tsurdilo Jan 15, 2022
6494a17
adding asyncapi type to event defs
tsurdilo Jan 15, 2022
964bb6c
Merge pull request #717 from tsurdilo/workflowup
qqeasonchen Jan 16, 2022
7625d3c
Remove unnecessary call toString (#719)
shoothzj Jan 17, 2022
f0758d2
[Issue #553] add workflow diagram to the design doc
jinrongluo Jan 17, 2022
628abc8
Merge pull request #720 from jinrongluo/workflow
qqeasonchen Jan 18, 2022
2564bc8
Update intro.md (#722)
qqeasonchen Jan 18, 2022
cb9e572
Update roadmap.md (#721)
qqeasonchen Jan 18, 2022
73ae07e
Missed exception cause (#724)
shoothzj Jan 19, 2022
33e7021
[ISSUE #726] Remove the misleading annotation (#725)
shoothzj Jan 19, 2022
8703a14
[ISSUE #729] Bump netty version (#730)
shoothzj Jan 20, 2022
dc475b5
[ISSUE #732] Binary package failed to execute (#733)
ruanwenjun Jan 21, 2022
93b2442
[Issue #735] log4j 2.17.1 (#736)
pjfanning Jan 22, 2022
8fcddf0
[MINOR] Remove the unnecessary boxing (#731)
shoothzj Jan 22, 2022
127972e
Use archiveBaseName and archiveVersion to optimize gradle zip task (#…
ruanwenjun Jan 24, 2022
85f100a
Add environment and version selector in bug_report.yml (#734)
ruanwenjun Jan 24, 2022
53941c6
Fix bug report template (#741)
ruanwenjun Jan 24, 2022
42e1c90
add eventmesh-admin-rocketmq into rootProject
Jan 24, 2022
b1a6540
Merge pull request #743 from wqliang/enhance/fixMissingJar
qqeasonchen Jan 25, 2022
c99dd2d
[ISSUE #737] Add Netty license (#738)
ruanwenjun Jan 26, 2022
7c7d81f
[Issue #750] junit should only be used in tests (#751)
pjfanning Feb 8, 2022
58c0d5d
[Issue #752] upgrade httpclient (#753)
pjfanning Feb 8, 2022
4616366
[Issue-754] upgrade guava (#757)
pjfanning Feb 8, 2022
b8891ee
[Issue #758] validate subscriber Url (#759)
jinrongluo Feb 9, 2022
85de5c7
[Issue #655] Adding send message constraints for message size and bat…
jinrongluo Feb 13, 2022
ed07425
[MINOR] Fix plugin cannot load properties from classpath (#763)
ruanwenjun Feb 14, 2022
62eeb0e
[MINOR] Remove unused field in example (#766)
shoothzj Feb 14, 2022
97ed081
[MINOR] Allow run script in other directory (#765)
shoothzj Feb 14, 2022
8355069
[MINOR] Fix the hardcode ip address (#767)
shoothzj Feb 15, 2022
e051d58
[Issue #768] fix issue in update HTTP subscriber (#769)
jinrongluo Feb 16, 2022
ba01590
update checkstyle.xml (#773)
xwm1992 Feb 17, 2022
25b7a16
Rebase the grpc branch to master branch (#771)
xwm1992 Feb 21, 2022
12a223c
[Issue #774] Optimize the object property description of eventmesh cl…
lrhkobe Feb 22, 2022
c93c7c5
Update roadmap.md (#779)
qqeasonchen Feb 22, 2022
6f40eb9
[Issue #780] Modify the define level of EventListener from Topic to …
lrhkobe Feb 23, 2022
874d5fa
[ISSUE #786] remove eventmesh-sdk-java model redundant code (#789)
ray-lsr Feb 24, 2022
95d87ba
Update roadmap.md (#791)
qqeasonchen Feb 24, 2022
16df47d
[ISSUE #783] clean useless code in runtime module (#787)
sarihuangshanrong Feb 24, 2022
cde95c0
[ISSUE #696] Add trace plugin (#749)
Roc-00 Feb 24, 2022
bab7e11
[ISSUE #784] Fix words misspell, optimize admin http method code (#792)
gzchen008 Feb 25, 2022
a52bf29
[Issue #658] Eventmesh Http Support CloudEvents Webhook spec (#772)
jinrongluo Feb 25, 2022
5ebe073
[ISSUE #782] delete invalid code in eventmesh-connector-plugin module…
AhahaGe Feb 28, 2022
b67726e
[ISSUE #795] Fix doc eventmesh-runtime-quickstart-with-docker.md (#798)
ZhangQuankang Mar 1, 2022
5708ec2
[Enhancement] Some suggestions for eventmesh-examples (#794)
likegeek Mar 2, 2022
00c4d24
[Enhancement] compile project with junit error (#802)
hsld9527 Mar 4, 2022
caaa7a4
[Enhancement] Run CI on all branch (#805)
ruanwenjun Mar 8, 2022
e5bf731
[MINOR] sort dependencise before check (#808)
ruanwenjun Mar 10, 2022
8fe412c
[ISSUE #806] code optimization and delete invalid code in eventmesh-e…
fengyongshe Mar 10, 2022
3e5d1e9
Merge remote-tracking branch 'origin/master' into develop
jefftlin Apr 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ github:
- microservice
- state-management
enabled_merge_buttons:
merge: true
squash: true
merge: true
rebase: false
protected_branches:
master:
required_status_checks:
strict: true
required_pull_request_reviews:
dismiss_stale_reviews: true
required_approving_review_count: 2
required_approving_review_count: 1
23 changes: 18 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,27 @@ body:
no similar issues.
required: true

- type: textarea
- type: dropdown
attributes:
label: Environment
description: Describe the environment.
placeholder: >
- OS: [e.g. Ubuntu 21.04 LTS]
- EventMesh version(s): [e.g. 1.2.0]
- RocketMQ version(s): [e.g. 4.7.1]
options:
- Mac
- Window
- Linux
- Other
validations:
required: true

- type: dropdown
attributes:
label: EventMesh version
description: Describe the EventMesh version.
options:
- master
- 1.3.0
- 1.2.0
- Other
validations:
required: true

Expand Down
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
-->

<!--
(If this PR fixes a GitHub issue, please add `Fixes ISSUE#<XXX>`.)
(If this PR fixes a GitHub issue, please add `Fixes ISSUE #<XXX>`.)
-->

Fixes ISSUE#<XXXX>.
Fixes ISSUE #<XXXX>.

### Motivation

Expand Down
34 changes: 3 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,9 @@ name: "Continuous Integration"

on:
push:
branches:
- develop
- '[0-9]+.[0-9]+.[0-9]+**'
branches: ['*']
pull_request:
branches:
- develop
- '[0-9]+.[0-9]+.[0-9]+**'
workflow_dispatch:
branches: [ '*' ]

jobs:
build:
Expand All @@ -50,34 +45,11 @@ jobs:
java-version: ${{ matrix.java }}

- name: Build
# We use -x check to skip check code style here, since this task will check all files.
# We use Checkstyle task to check the added file
run: ./gradlew clean build jar dist jacocoTestReport -x check
run: ./gradlew clean build jar dist jacocoTestReport

- name: Install plugin
run: ./gradlew installPlugin

checkstyle:
name: Checkstyle
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Download checkstyle exectable
run: wget -O - -q https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.44/checkstyle-8.44-all.jar > ./checkstyle.jar

- name: Download reviewdog exectable
run: wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b . v0.12.0

- name: Check code style
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
java -jar ./checkstyle.jar -c ./style/checkStyle.xml -f xml ./eventmesh-* \
| ./reviewdog -f=checkstyle -reporter=github-pr-check -filter-mode=added -fail-on-error

license-check:
name: License Check
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Apache EventMesh (incubating)
Copyright 2021 The Apache Software Foundation
Copyright 2021-2022 The Apache Software Foundation

This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Apache EventMesh (incubating)
# Apache EventMesh (incubating)
[![CI status](https://github.com/apache/incubator-eventmesh/actions/workflows/ci.yml/badge.svg)](https://github.com/apache/incubator-eventmesh/actions/workflows/ci.yml)
[![CodeCov](https://codecov.io/gh/apache/incubator-eventmesh/branch/develop/graph/badge.svg)](https://codecov.io/gh/apache/incubator-eventmesh)
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/context:java)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/apache/incubator-eventmesh.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/apache/incubator-eventmesh/alerts/)
[![GitHub release](https://img.shields.io/badge/release-download-orange.svg)](https://github.com/apache/incubator-eventmesh/releases)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-yx3n2ak7-HcVG98CDqb~7PwgoDzgfMA)
[![Slack Status](https://img.shields.io/badge/slack-join_chat-white.svg?logo=slack&style=social)](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-11974dndy-cn3Aq638eleKwKPWP9tkLg)

[点我查看中文版](README.zh-CN.md)

Expand All @@ -16,12 +16,14 @@ EventMesh(incubating) is a dynamic event-driven application runtime used to deco
**Multi-runtime:**
![architecture1](docs/images/eventmesh-arch3.png)


**Orchestration:**
![architecture1](docs/images/eventmesh-orchestration.png)

**Federation:**
![architecture1](docs/images/eventmesh-federation.png)


**Components:**

* **eventmesh-runtime** : an middleware to transmit events between event producers and consumers, support cloud native apps and microservices.
Expand Down Expand Up @@ -63,12 +65,12 @@ EventMesh enriches the <a href="https://landscape.cncf.io/serverless?license=apa
## Community
| WeChat Assistant | WeChat public account | Slack |
| :----------------------------------------------------: | :----------------------------------------------------: | :----------------------------------------------------: |
| ![wechat_qr](docs/images/mesh-helper.jpg) | ![wechat_official_qr](docs/images/wechat-official.png) |[Join slack chat](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-yx3n2ak7-HcVG98CDqb~7PwgoDzgfMA) |
| ![wechat_qr](docs/images/mesh-helper.jpg) | ![wechat_official_qr](docs/images/wechat-official.png) |[Join slack chat](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-11974dndy-cn3Aq638eleKwKPWP9tkLg) |

Mailing Lists:

| Name | Description |Subscribe |Unsubscribe|Archive
| ---- | ---- |---- | ---- | ---- |
|Users |User support and questions mailing list| [Subscribe](mailto:[email protected]) |[Unsubscribe](mailto:[email protected]) |[Mail Archives](https://lists.apache.org/[email protected])|
|Development |Development related discussions| [Subscribe](mailto:[email protected]) |[Unsubscribe](mailto:[email protected]) |[Mail Archives](https://lists.apache.org/[email protected])|
|Commits |All commits to repositories| [Subscribe](mailto:[email protected]) |[Unsubscribe](mailto:[email protected]) |[Mail Archives](https://lists.apache.org/[email protected])|
|Commits |All commits to repositories| [Subscribe](mailto:[email protected]) |[Unsubscribe](mailto:[email protected]) |[Mail Archives](https://lists.apache.org/[email protected])|
16 changes: 8 additions & 8 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ EventMesh是一个动态的云原生事件驱动架构基础设施,用于分
![architecture1](docs/images/eventmesh-federation.png)

**组件:**
* **eventmesh-runtime** : an middleware to transmit events between event producers and consumers, support cloud native apps and microservices.
* **eventmesh-sdk-java** : currently supports HTTP and TCP protocols.
* **eventmesh-connector-plugin** : plugins for connect a middleware such as RocketMQ/Kafka/Redis/Pulsar etc.
* **eventmesh-registry-plugin** : plugins for registry adapter, such as Nacos/Etcd.
* **eventmesh-security-plugin** : plugins for security adpater, such as ACL/Authentication/Authorization.
* **eventmesh-protocol-plugin** : plugins for protocol adapter, such as CloudEvents/MQTT.
* **eventmesh-admin** : clients,topics,subscriptions and other management.
* **eventmesh-runtime** : 一种中间件,用于在事件产生者和使用者之间传输事件,支持云原生应用程序和微服务。
* **eventmesh-sdk-java** : 当前支持HTTP和TCP协议,未来会支持gRPC等。
* **eventmesh-connector-plugin** : 连接中间件的插件,如RocketMQ/Kafka/Redis/Pulsar等。
* **eventmesh-registry-plugin** : 注册表适配器插件,如Nacos/Etcd
* **eventmesh-security-plugin** : 安全适配器插件,如ACL/认证/授权。
* **eventmesh-protocol-plugin** : 协议适配器的插件,如CloudEvents/MQTT
* **eventmesh-admin** : 客户端管理、主题管理、订阅管理和其他管理。

## 快速开始
1. [Store quickstart](docs/en/instructions/eventmesh-store-quickstart.md)
Expand Down Expand Up @@ -59,7 +59,7 @@ EventMesh enriches the <a href="https://landscape.cncf.io/serverless?license=apa
## 开发社区
| 微信助手 | 微信公众号 | Slack |
| :----------------------------------------------------: | :----------------------------------------------------: | :----------------------------------------------------: |
| ![wechat_qr](docs/images/mesh-helper.jpg) | ![wechat_official_qr](docs/images/wechat-official.png) |[加入slack](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-yx3n2ak7-HcVG98CDqb~7PwgoDzgfMA) |
| ![wechat_qr](docs/images/mesh-helper.jpg) | ![wechat_official_qr](docs/images/wechat-official.png) |[加入slack](https://join.slack.com/t/apacheeventmesh/shared_invite/zt-11974dndy-cn3Aq638eleKwKPWP9tkLg) |

Mailing Lists:

Expand Down
57 changes: 39 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ buildscript {
}

dependencies {
classpath "gradle.plugin.com.github.spotbugs.snom:spotbugs-gradle-plugin:4.7.1"
classpath "com.github.spotbugs.snom:spotbugs-gradle-plugin:5.0.3"
classpath "io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE"
classpath "com.github.jk1:gradle-license-report:1.17"
}
Expand Down Expand Up @@ -68,32 +68,41 @@ allprojects {
delete 'out'
}

if ((project.findProperty("snapshot") instanceof String) && (Boolean.valueOf(project.property("snapshot") as boolean))) {
version = version + "-SNAPSHOT"
}

checkstyle {
toolVersion = '9.0'
ignoreFailures = false
showViolations = true
maxWarnings = 0
configFile = new File("${rootDir}/style/checkStyle.xml")
}

checkstyleMain.exclude '**/org/apache/eventmesh/client/grpc/protos**'

dependencies {
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
}
testImplementation "junit:junit:4.13.2"
}
}

task tar(type: Tar) {
extension = 'tar.gz'
archiveBaseName.set(project.name)
archiveVersion.set(project.version.toString())
archiveExtension.set('tar.gz')
compression = Compression.GZIP
archiveFileName = project.name + '_' + project.version + '.' + extension
destinationDirectory = new File(projectDir, 'build')
into('/') {
from 'dist'
}
}

task zip(type: Zip) {
extension = 'zip'
archiveFileName = project.name + '.' + project.version + '.' + extension
archiveBaseName.set(project.name)
archiveVersion.set(project.version.toString())
archiveExtension.set('zip')
destinationDirectory = new File(projectDir, 'build')
into('/') {
from 'dist'
Expand Down Expand Up @@ -249,11 +258,14 @@ subprojects {
new File("${projectDir}/dist/licenses").mkdirs()
}
Set<String> rootProject = ["eventmesh-admin",
"eventmesh-admin-rocketmq",
"eventmesh-common",
"eventmesh-connector-api",
"eventmesh-metrics-api",
"eventmesh-registry-api",
"eventmesh-runtime",
"eventmesh-security-api",
"eventmesh-protocol-api",
"eventmesh-starter",
"eventmesh-spi"]
doLast {
Expand Down Expand Up @@ -386,7 +398,7 @@ subprojects {
}
repositories {
maven {
def releasesRepoUrl = 'https://repository.apache.org/content/repositories/releases/'
def releasesRepoUrl = 'https://repository.apache.org/service/local/staging/deploy/maven2'
def snapshotsRepoUrl = 'https://repository.apache.org/content/repositories/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
Expand All @@ -409,22 +421,22 @@ subprojects {
dependency "org.apache.commons:commons-text:1.9"


dependency "com.google.guava:guava:29.0-jre"
dependency "com.google.guava:guava:31.0.1-jre"

dependency "org.slf4j:slf4j-api:1.7.30"
dependency "org.apache.logging.log4j:log4j-api:2.17.0"
dependency "org.apache.logging.log4j:log4j-core:2.17.0"
dependency "org.apache.logging.log4j:log4j-slf4j-impl:2.17.0"
dependency "org.apache.logging.log4j:log4j-api:2.17.1"
dependency "org.apache.logging.log4j:log4j-core:2.17.1"
dependency "org.apache.logging.log4j:log4j-slf4j-impl:2.17.1"

dependency "com.lmax:disruptor:3.4.2"

dependency "com.fasterxml.jackson.core:jackson-databind:2.11.0"
dependency "com.fasterxml.jackson.core:jackson-core:2.11.0"
dependency "com.fasterxml.jackson.core:jackson-annotations:2.11.0"

dependency "org.apache.httpcomponents:httpclient:4.5.2"
dependency "org.apache.httpcomponents:httpclient:4.5.13"

dependency "io.netty:netty-all:4.1.49.Final"
dependency "io.netty:netty-all:4.1.73.Final"

dependency 'io.dropwizard.metrics:metrics-core:4.1.0'
dependency "io.dropwizard.metrics:metrics-healthchecks:4.1.0"
Expand All @@ -448,7 +460,7 @@ subprojects {
dependency "org.springframework.boot:spring-boot-starter-web:2.1.6.RELEASE"
dependency "io.openmessaging:registry-server:0.0.1"

dependency "junit:junit:4.12"
dependency "junit:junit:4.13.2"
dependency "com.github.stefanbirkner:system-rules:1.16.1"
dependency "org.assertj:assertj-core:2.6.0"

Expand All @@ -458,6 +470,15 @@ subprojects {

dependency "io.cloudevents:cloudevents-core:2.2.0"
dependency "io.cloudevents:cloudevents-json-jackson:2.2.0"

dependency "io.grpc:grpc-protobuf:1.15.0"
dependency "io.grpc:grpc-stub:1.15.0"
dependency "io.grpc:grpc-netty:1.15.0"
dependency "io.grpc:grpc-netty-shaded:1.15.0"

dependency "javax.annotation:javax.annotation-api:1.3.2"

dependency "com.github.seancfoley:ipaddress:5.3.3"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ MAINTAINER mikexue [email protected]

WORKDIR /data
RUN mkdir /data/app
ADD EventMesh_1.3.0-SNAPSHOT.tar.gz /data/app/eventmesh
ADD EventMesh_1.3.0-release.tar.gz /data/app/eventmesh
WORKDIR /data/app/eventmesh/bin

EXPOSE 10000
Expand Down
49 changes: 49 additions & 0 deletions docs/cn/instructions/eventmesh-metrics-Prometheus-instruction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
## 通过Prometheus观察metrics

### 1、下载Prometheus
官网:https://prometheus.io/

本地下载Prometheus:https://prometheus.io/download/

选择自己电脑对应的版本下载并解压缩

![Prometheus-download](../../images/Prometheus-download.png)

### 2、在prometheus.yml中添加配置

如果你是Prometheus的新手,可以直接复制eventmesh-runtime/conf/prometheus.yml替换

例如:这是win-64的下载后的样子:

![prometheus-yml](../../images/prometheus-yml.png)

替换红框中的文件

如果你十分了解Prometheus,可以自行配置,eventmesh默认的导出的端口为19090。



ps:如果需要更换端口的话,请修改eventmesh-runtime/conf/eventmesh.properties中的

```properties
#prometheusPort
eventMesh.metrics.prometheus.port=19090
```

### 3、运行Prometheus.exe和eventmesh

双击Prometheus.exe运行

运行eventmesh-starter(参考[eventmesh-runtime-quickstart](eventmesh-runtime-quickstart.md))

运行eventmesh-example(参考[eventmesh-sdk-java-quickstart](eventmesh-sdk-java-quickstart.md))

打开浏览器访问:http://localhost:9090/



### 4、输入你想观察的metrics

输入’**eventmesh_**‘ 就会出现相关的指标的提示

![promethus-search](../../images/promethus-search.png)
Loading