Skip to content

Commit ab4fcc0

Browse files
authored
Fix/271 logback의 loki 관련 설정 수정 (#275)
* fix: logback의 loki 관련 설정 수정 - logback-spring.xml 파일의 loki appender 내부 url의 환경변수화 * chore: cicd 환경변수 추가 - loki 연결 url의 환경변수화에 따른 cicd 환경변수 추가 업데이트
1 parent 7fcd5ef commit ab4fcc0

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/CD.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
ELASTIC_URI=localhost: ${{ secrets.ELASTIC_URI }}
3838
ELASTIC_USERNAME: ${{ secrets.ELASTIC_USERNAME }}
3939
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
40+
LOKI_URL: ${{ secrets.LOKI_URL }}
4041

4142
steps:
4243
- name: Github Repository 파일 불러오기

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
ELASTIC_URI=localhost: ${{ secrets.ELASTIC_URI }}
4646
ELASTIC_USERNAME: ${{ secrets.ELASTIC_USERNAME }}
4747
ELASTIC_PASSWORD: ${{ secrets.ELASTIC_PASSWORD }}
48+
LOKI_URL: ${{ secrets.LOKI_URL }}
4849

4950

5051
steps:

src/main/resources/logback-spring.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<appender name="LOKI" class="com.github.loki4j.logback.Loki4jAppender">
3232

3333
<http>
34-
<url>http://loki:3100/loki/api/v1/push</url>
34+
<url>${LOKI_URL}</url>
3535
<connectionTimeoutMs>30000</connectionTimeoutMs>
3636
<requestTimeoutMs>15000</requestTimeoutMs>
3737
<maxRetries>3</maxRetries>

0 commit comments

Comments
 (0)