Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- `script/server-with-metrics` 스크립트로 실행하면 prometheus, grafana 연결 - localhost:3000 접속하면 grafana 확인할 수 있음 - grafana beam 대시보드 - https://github.com/deadtrickster/beam-dashboards
- Loading branch information
1 parent
f0ae55c
commit 4af23e0
Showing
13 changed files
with
1,426 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM grafana/grafana:6.6.0 | ||
|
||
ENV GF_AUTH_DISABLE_LOGIN_FORM "true" | ||
ENV GF_AUTH_ANONYMOUS_ENABLED "true" | ||
ENV GF_AUTH_ANONYMOUS_ORG_ROLE "Admin" | ||
|
||
ADD provisioning /etc/grafana/provisioning |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
FROM prom/prometheus:v2.15.2 | ||
ADD prometheus.yml /etc/prometheus/ |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
version: '3' | ||
services: | ||
slab: | ||
build: | ||
context: .. | ||
dockerfile: script/Dockerfile-slab | ||
environment: | ||
- TZ=Asia/Seoul | ||
ports: | ||
- "8081:8081" | ||
prometheus: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile-prometheus | ||
ports: | ||
- "9090:9090" | ||
depends_on: | ||
- slab | ||
volumes: | ||
- prometheus-data:/prometheus | ||
grafana: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile-grafana | ||
ports: | ||
- "3000:3000" | ||
depends_on: | ||
- prometheus | ||
volumes: | ||
prometheus-data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
global: | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
evaluation_interval: 15s | ||
alerting: | ||
alertmanagers: | ||
- static_configs: | ||
- targets: [] | ||
scheme: http | ||
timeout: 10s | ||
api_version: v1 | ||
scrape_configs: | ||
- job_name: prometheus | ||
honor_timestamps: true | ||
scrape_interval: 15s | ||
scrape_timeout: 10s | ||
metrics_path: /metrics | ||
scheme: http | ||
static_configs: | ||
- targets: | ||
- slab:8081 |
Oops, something went wrong.