fix(cli): 优化服务注册元信息

This commit is contained in:
2024-02-01 18:17:26 +08:00
parent 2fa18fa4f8
commit d7b7d1b4be
3 changed files with 9 additions and 6 deletions

View File

@@ -6,8 +6,6 @@
<springProperty scope="context" name="LOKI_PUSH_URL" source="loki.url"/>
<springProperty scope="context" name="LOGGING_PARENT" source="logging.parent"/>
<springProperty scope="context" name="APP_NAME" source="spring.application.name"/>
<springProperty scope="context" name="DEPLOY_HOSTNAME" source="deploy.hostname"/>
<springProperty scope="context" name="DEPLOY_IP" source="deploy.ip"/>
<appender name="Loki" class="com.github.loki4j.logback.Loki4jAppender">
<metricsEnabled>true</metricsEnabled>
@@ -16,7 +14,7 @@
</http>
<format>
<label>
<pattern>app=${APP_NAME:-none},host=${DEPLOY_HOSTNAME:-none},ip=${DEPLOY_IP:-none},level=%level</pattern>
<pattern>app=${APP_NAME:-none},host=${HOSTNAME:-none},level=%level</pattern>
<readMarkers>true</readMarkers>
</label>
<message>