Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
order-group
Commits
4e17b70e
Commit
4e17b70e
authored
Feb 25, 2020
by
shuhu.hou
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
573bd297
1a9e83e8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
81 additions
and
10 deletions
+81
-10
call-back-service/pom.xml
+6
-1
call-back-service/src/main/java/cn/freemud/ApiApplication.java
+4
-0
call-back-service/src/main/resources/application.properties
+13
-2
order-application-service/pom.xml
+7
-0
order-application-service/src/main/java/cn/freemud/OrderApplication.java
+4
-0
order-application-service/src/main/resources/application.properties
+13
-2
shopping-cart-application-service/pom.xml
+18
-0
shopping-cart-application-service/src/main/java/cn/freemud/ShoppingCartApplication.java
+4
-0
shopping-cart-application-service/src/main/resources/application.properties
+12
-5
No files found.
call-back-service/pom.xml
View file @
4e17b70e
...
...
@@ -98,7 +98,12 @@
<artifactId>
apollo-client
</artifactId>
<version>
1.4.0
</version>
</dependency>
<!-- promtheus -->
<dependency>
<groupId>
io.prometheus
</groupId>
<artifactId>
simpleclient_spring_boot
</artifactId>
<version>
0.6.0
</version>
</dependency>
</dependencies>
<build>
<plugins>
...
...
call-back-service/src/main/java/cn/freemud/ApiApplication.java
View file @
4e17b70e
...
...
@@ -14,6 +14,8 @@ package cn.freemud;
import
cn.freemud.utils.LogTreadLocal
;
import
feign.RequestInterceptor
;
import
io.prometheus.client.spring.boot.EnablePrometheusEndpoint
;
import
io.prometheus.client.spring.boot.EnableSpringBootMetricsCollector
;
import
org.jasypt.encryption.StringEncryptor
;
import
org.jasypt.encryption.pbe.PooledPBEStringEncryptor
;
import
org.jasypt.encryption.pbe.config.SimpleStringPBEConfig
;
...
...
@@ -43,6 +45,8 @@ import org.springframework.context.annotation.EnableAspectJAutoProxy;
@EnableAspectJAutoProxy
@ComponentScan
({
"cn.freemud"
,
"com.freemud"
})
@EnableFeignClients
@EnablePrometheusEndpoint
@EnableSpringBootMetricsCollector
@EnableAutoConfiguration
public
class
ApiApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
call-back-service/src/main/resources/application.properties
View file @
4e17b70e
...
...
@@ -8,4 +8,15 @@ app.id=SHOP_OPEN_STORE
apollo.meta
=
http://212.129.229.203
env
=
dev
apollo.bootstrap.enabled
=
true
apollo.bootstrap.namespaces
=
micro_progeram_commons,i_callback_service
\ No newline at end of file
apollo.bootstrap.namespaces
=
micro_progeram_commons,i_callback_service
endpoints.metrics.enabled
=
true
endpoints.health.sensitive
=
false
endpoints.health.enabled
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.base-path
=
/
management.endpoints.web.exposure.include
=
prometheus,info,health,shutdown
management.metrics.tags.application
=
${spring.application.name}
management.endpoint.shutdown.enabled
=
true
management.security.enabled
=
false
management.health.rabbit.enabled
=
false
\ No newline at end of file
order-application-service/pom.xml
View file @
4e17b70e
...
...
@@ -337,6 +337,13 @@
<artifactId>
apm-toolkit-logback-1.x
</artifactId>
</dependency>
<!-- promtheus -->
<dependency>
<groupId>
io.prometheus
</groupId>
<artifactId>
simpleclient_spring_boot
</artifactId>
<version>
0.6.0
</version>
</dependency>
</dependencies>
<build>
<plugins>
...
...
order-application-service/src/main/java/cn/freemud/OrderApplication.java
View file @
4e17b70e
...
...
@@ -15,6 +15,8 @@ package cn.freemud;
import
cn.freemud.core.db.DataSourcesConfig
;
import
com.freemud.application.sdk.api.log.LogThreadLocal
;
import
feign.RequestInterceptor
;
import
io.prometheus.client.spring.boot.EnablePrometheusEndpoint
;
import
io.prometheus.client.spring.boot.EnableSpringBootMetricsCollector
;
import
org.jasypt.encryption.StringEncryptor
;
import
org.jasypt.encryption.pbe.PooledPBEStringEncryptor
;
import
org.jasypt.encryption.pbe.config.SimpleStringPBEConfig
;
...
...
@@ -43,6 +45,8 @@ import tk.mybatis.spring.annotation.MapperScan;
@MapperScan
({
"cn.freemud.*.dao"
,
"com.freemud.sdk.api.assortment.orderdistributor.mapper"
,
"com.freemud.api.assortment.datamanager.manager"
,
"com.freemud.api.assortment.datamanager.queue.dao"
,
"com.freemud.api.assortment.datamanager.rbac.dao"
,
"com.freemud.api.assortment.datamanager.queue.entity"
})
@EnableFeignClients
({
"cn.freemud.service.thirdparty"
,
"com.freemud.sdk.api.assortment.message"
})
@EnablePrometheusEndpoint
@EnableSpringBootMetricsCollector
@EnableAutoConfiguration
public
class
OrderApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
order-application-service/src/main/resources/application.properties
View file @
4e17b70e
...
...
@@ -12,4 +12,15 @@ apollo.bootstrap.enabled=true
apollo.bootstrap.namespaces
=
micro_progeram_commons,order_service
eureka.client.enabled
=
false
#
-Dapollo.configService
=
http://172.81.231.147
\ No newline at end of file
#-Dapollo.configService=http://172.81.231.147
endpoints.metrics.enabled
=
true
endpoints.health.sensitive
=
false
endpoints.health.enabled
=
true
management.endpoint.health.show-details
=
always
management.endpoints.web.base-path
=
/
management.endpoints.web.exposure.include
=
prometheus,info,health,shutdown
management.metrics.tags.application
=
${spring.application.name}
management.endpoint.shutdown.enabled
=
true
management.security.enabled
=
false
management.health.rabbit.enabled
=
false
\ No newline at end of file
shopping-cart-application-service/pom.xml
View file @
4e17b70e
...
...
@@ -290,6 +290,24 @@
<groupId>
org.apache.skywalking
</groupId>
<artifactId>
apm-toolkit-logback-1.x
</artifactId>
</dependency>
<!-- promtheus -->
<dependency>
<groupId>
io.micrometer
</groupId>
<artifactId>
micrometer-registry-prometheus
</artifactId>
</dependency>
<dependency>
<groupId>
io.micrometer
</groupId>
<artifactId>
micrometer-spring-legacy
</artifactId>
</dependency>
<!-- promtheus -->
<dependency>
<groupId>
io.prometheus
</groupId>
<artifactId>
simpleclient_spring_boot
</artifactId>
<version>
0.6.0
</version>
</dependency>
</dependencies>
<build>
<plugins>
...
...
shopping-cart-application-service/src/main/java/cn/freemud/ShoppingCartApplication.java
View file @
4e17b70e
...
...
@@ -15,6 +15,8 @@ package cn.freemud;
import
cn.freemud.core.db.DataSourcesConfig
;
import
com.freemud.application.sdk.api.log.LogThreadLocal
;
import
feign.RequestInterceptor
;
import
io.prometheus.client.spring.boot.EnablePrometheusEndpoint
;
import
io.prometheus.client.spring.boot.EnableSpringBootMetricsCollector
;
import
org.jasypt.encryption.StringEncryptor
;
import
org.jasypt.encryption.pbe.PooledPBEStringEncryptor
;
import
org.jasypt.encryption.pbe.config.SimpleStringPBEConfig
;
...
...
@@ -46,6 +48,8 @@ import tk.mybatis.spring.annotation.MapperScan;
"com.freemud.api.assortment.datamanager.manager"
})
@EnableFeignClients
@EnableAsync
@EnablePrometheusEndpoint
@EnableSpringBootMetricsCollector
public
class
ShoppingCartApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
ShoppingCartApplication
.
class
,
args
);
...
...
shopping-cart-application-service/src/main/resources/application.properties
View file @
4e17b70e
...
...
@@ -11,8 +11,16 @@ apollo.cluster=local
apollo.bootstrap.enabled
=
true
apollo.bootstrap.namespaces
=
micro_progeram_commons,shopping_cart
management.endpoints.web.exposure.include
=
health,info,env,metrics,prometheus
management.health.rabbit.enabled
=
false
management.endpoints.web.base-path
=
/
endpoints.metrics.enabled
=
true
endpoints.health.sensitive
=
false
endpoints.health.enabled
=
true
management.endpoint.health.show-details
=
always
management.metrics.tags.application
=
${spring.application.name}
\ No newline at end of file
management.endpoints.web.base-path
=
/
management.endpoints.web.exposure.include
=
prometheus,info,health,shutdown
management.metrics.tags.application
=
${spring.application.name}
management.endpoint.shutdown.enabled
=
true
management.security.enabled
=
false
management.health.rabbit.enabled
=
false
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment