Skip to content

Commit

Permalink
Add the civiform version to our prometheus metrics (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkatzz committed Dec 7, 2023
1 parent cae455d commit ef53299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cloud/aws/metrics/otel-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ receivers:
- job_name: 'civiform_scraper'
static_configs:
- targets: [0.0.0.0:9000]
labels:
civiform_version: '${CIVIFORM_VERSION}'
awsecscontainermetrics:
collection_interval: 10s

Expand Down
4 changes: 2 additions & 2 deletions cloud/aws/templates/aws_oidc/app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ module "civiform_metrics_scraper_container_def" {
container_memory = 2048
container_memory_reservation = 1024

map_environment = {
map_environment = merge({
PROMETHEUS_WRITE_ENDPOINT = var.monitoring_stack_enabled ? "${aws_prometheus_workspace.metrics[0].prometheus_endpoint}api/v1/remote_write" : ""
AWS_REGION = var.aws_region
}
}, var.civiform_server_environment_variables)

log_configuration = {
logDriver = "awslogs"
Expand Down

0 comments on commit ef53299

Please sign in to comment.