-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(infra): setup for metric and modify repo structure and docker pr…
…ofile options (#20) * 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
- Loading branch information
Showing
9 changed files
with
92 additions
and
16 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,20 @@ | ||
otelcol.receiver.otlp "default" { | ||
http { | ||
endpoint = "0.0.0.0:4318" | ||
metrics_url_path = "/v1/metrics" | ||
} | ||
|
||
output { | ||
metrics = [otelcol.exporter.prometheus.default.input] | ||
} | ||
} | ||
|
||
otelcol.exporter.prometheus "default" { | ||
forward_to = [prometheus.remote_write.local.receiver] | ||
} | ||
|
||
prometheus.remote_write "local" { | ||
endpoint { | ||
url = "http://prometheus:9090/api/v1/write" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,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'] |
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