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

🔀 :: 258 add exporter dependency #259

Merged
merged 3 commits into from
Feb 2, 2024
Merged

Conversation

KimTaeO
Copy link
Contributor

@KimTaeO KimTaeO commented Feb 2, 2024

💡 개요

prometheus로 정보를 수집하기 위한 exporter를 spirng actuator를 통해 설정해주었습니다

📃 작업내용

  • spring actuator dependency 추가
  • prometheus 엔드포인트를 사용하기 위한 micrometer-registry-prometheus dependency 추가
  • application.yml에 health, info, prometheus 엔드포인트를 사용하기 위해서 enabled 처리 및 HTTP를 통해 내보내기 위한 설정 추가
  • security config에 해당 엔드포인트들 핸들링 처리

🙋‍♂️ 질문사항

security config에 일단 antMatchers 메서드를 통해 접근을 핸들링했는데 actuator는 처음이라 이렇게 처리하는게 맞을까 싶네요 다른 더 좋은 방법이 있다면 알려주세요!!

@KimTaeO KimTaeO self-assigned this Feb 2, 2024
@KimTaeO KimTaeO linked an issue Feb 2, 2024 that may be closed by this pull request
@KimTaeO KimTaeO merged commit aa6d772 into main Feb 2, 2024
1 check passed
@KimTaeO KimTaeO deleted the 258-feat/add-exporter-dependency branch February 2, 2024 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

서버의 상태를 모니터링 하기 위한 exporter 추가
2 participants