Skip to content

Commit

Permalink
[ISSUE #10206] Optimize nacos default application.properties configur…
Browse files Browse the repository at this point in the history
…ation (#10207)

* Optimize nacos default application.properties configuration:
1. expose prometheus endpoint for metrics.
2. expose health endpoint for SLB healthcheck.
3. switch on mbean for tomcat, so we can collect tomcat metrics.
4. use one file per hour for tomcat access log

* comment prometheus and health endpoint

* enable rotate
  • Loading branch information
yuyijq authored Apr 3, 2023
1 parent c1e5446 commit dcb1017
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions distribution/conf/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ db.pool.config.minimumIdle=2
### If turn on data loading task:
# nacos.cmdb.loadDataAtStart=false

#***********Metrics for tomcat **************************#
server.tomcat.mbeanregistry.enabled=true

#*************** Metrics Related Configurations ***************#
### Metrics for prometheus
#management.endpoints.web.exposure.include=*
#***********Expose prometheus and health **************************#
#management.endpoints.web.exposure.include=prometheus,health

### Metrics for elastic search
management.metrics.export.elastic.enabled=false
Expand All @@ -118,6 +119,9 @@ management.metrics.export.influx.enabled=false
### If turn on the access log:
server.tomcat.accesslog.enabled=true

### file name pattern, one file per hour
server.tomcat.accesslog.rotate=true
server.tomcat.accesslog.file-date-format=.yyyy-MM-dd-HH
### The access log pattern:
server.tomcat.accesslog.pattern=%h %l %u %t "%r" %s %b %D %{User-Agent}i %{Request-Source}i

Expand Down

0 comments on commit dcb1017

Please sign in to comment.