Skip to content

Commit

Permalink
feat: deploy metrics endpoints for aggregator node in infra
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Oct 18, 2024
1 parent 9ddf178 commit 55e7fdd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ services:
- CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE=${CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP}
- ENABLE_METRICS_SERVER=${ENABLE_METRICS_SERVER}
- METRICS_SERVER_IP=${METRICS_SERVER_IP}
- METRICS_SERVER_PORT=${METRICS_SERVER_PORT}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ services:
- CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE=${CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP}
- ENABLE_METRICS_SERVER=${ENABLE_METRICS_SERVER}
- METRICS_SERVER_IP=${METRICS_SERVER_IP}
- METRICS_SERVER_PORT=${METRICS_SERVER_PORT}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ services:
- CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE=${CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP}
- ENABLE_METRICS_SERVER=${ENABLE_METRICS_SERVER}
- METRICS_SERVER_IP=${METRICS_SERVER_IP}
- METRICS_SERVER_PORT=${METRICS_SERVER_PORT}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ services:
- CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE=${CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER}
- CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP=${CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP}
- ENABLE_METRICS_SERVER=${ENABLE_METRICS_SERVER}
- METRICS_SERVER_IP=${METRICS_SERVER_IP}
- METRICS_SERVER_PORT=${METRICS_SERVER_PORT}
volumes:
- ../data/${NETWORK}/mithril-aggregator/mithril:/mithril-aggregator/mithril
- ../data/${NETWORK}/mithril-aggregator/cardano/db:/db
Expand Down
3 changes: 3 additions & 0 deletions mithril-infra/mithril.aggregator.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ EOT
"export CARDANO_TRANSACTIONS_DATABASE_CONNECTION_POOL_SIZE=${var.mithril_aggregator_cardano_transactions_database_connection_pool_size}",
"export CARDANO_TRANSACTIONS_SIGNING_CONFIG__SECURITY_PARAMETER=${var.mithril_aggregator_cardano_transactions_signing_config_security_parameter}",
"export CARDANO_TRANSACTIONS_SIGNING_CONFIG__STEP=${var.mithril_aggregator_cardano_transactions_signing_config_step}",
"export ENABLE_METRICS_SERVER=true",
"export METRICS_SERVER_IP=0.0.0.0",
"export METRICS_SERVER_PORT=9090",
"export LOGGING_DRIVER='${var.mithril_container_logging_driver}'",
"export AUTH_USER_PASSWORD=$(htpasswd -nb ${var.mithril_aggregator_auth_username} ${var.mithril_aggregator_auth_password})",
"export AGGREGATOR_RELAY_LISTEN_PORT='${local.mithril_aggregator_relay_mithril_listen_port}'",
Expand Down

0 comments on commit 55e7fdd

Please sign in to comment.