Skip to content

Commit

Permalink
hotfix(infra): modify prometheus config file name (#21)
Browse files Browse the repository at this point in the history
* feat(infra): add prometheus container setup with docker compose

- modify docker-compose.yml to include prometheus service
- add prometheus.yml for prometheus configuration
- setup prometheus container for metric monitoring service

* feat(infra): add grafana agent container setup with docker compose

- modify docker-compose.yml to include grafana agent service
- add config.river for grafana agent configuration
- setup grafana agent container for monitoring service

* feat(infra): add caddyfile path for grafana agent and prometheus

* fix(infra): modify grafana agent url of Caddyfile for collecting metric data

* feat(infra): add step for running containers related to monitoring metric

* feat(infra): modify config folder structure

* feat(infra): modify docker compose profile to log, trace, metric

* hotfix(infra): modify config file name to make different with folder name
  • Loading branch information
ssupecial authored Feb 22, 2024
1 parent 767c114 commit dbfba0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 additions & 0 deletions config/prometheus/prometheus-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).

# scrape_configs:
# - job_name: 'grafana-agent'
# scrape_interval: 10s
# static_configs:
# # - targets: ['localhost:9464']
# # - targets: ['agent:12345']
# - targets: ['localhost:12345']
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ services:
ports:
- "9090:9090"
volumes:
- "$PWD/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml"
- "$PWD/config/prometheus/prometheus-config.yml:/etc/prometheus/prometheus.yml"

command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
Expand Down

0 comments on commit dbfba0a

Please sign in to comment.