Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- docker compose로 grafana, prometheus, bitcoin_price_scraper 실행 - grafana 대시보드를 구성해 provisioning 디렉터리에 추가 - docker compose로 실행하면 미리 구성한 대시보드를 사용
- Loading branch information
1 parent
7f7e145
commit 98d3926
Showing
10 changed files
with
523 additions
and
0 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,2 @@ | ||
deps | ||
_build |
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:7.4.1 | ||
|
||
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.24.1 | ||
ADD prometheus.yml /etc/prometheus/ |
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,6 @@ | ||
FROM elixir:1.11.3-alpine | ||
|
||
COPY . /app | ||
WORKDIR /app | ||
|
||
CMD ["script/server"] |
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: | ||
scraper: | ||
build: | ||
context: .. | ||
dockerfile: script/Dockerfile-scraper | ||
environment: | ||
- TZ=Asia/Seoul | ||
ports: | ||
- "8081:8081" | ||
prometheus: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile-prometheus | ||
ports: | ||
- "9090:9090" | ||
depends_on: | ||
- scraper | ||
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: | ||
- scraper:8081 |
Oops, something went wrong.