From 3e59e1aa42e25b4d97e3db4efa0725db8e3ad235 Mon Sep 17 00:00:00 2001 From: Michele Meloni Date: Thu, 21 Mar 2024 15:49:44 +0100 Subject: [PATCH] feat: add new health api for web3gw --- docker/.env.mainnet.example | 3 +++ docker/.env.testnet.example | 3 +++ docker/addons/docker-compose.dex.yaml | 1 + 3 files changed, 7 insertions(+) diff --git a/docker/.env.mainnet.example b/docker/.env.mainnet.example index 88c4200..c377e1c 100644 --- a/docker/.env.mainnet.example +++ b/docker/.env.mainnet.example @@ -93,6 +93,9 @@ INDEXER_EXCHANGE_REBUILD_ORDERBOOKS="false" INDEXER_FEATURE_FLAG_TRADING_STRATEGIES_INDEXING="true" INDEXER_SPOT_GRID_TRADING_CONTRACT_WHITELIST=inj1c5jsz3dk2g6wywygchwrlwxl5gyz2yu7rnxxdr,inj1x4kr29dlf9u4r7ya6mr2jvs0pc9sfhnlhlr9np,inj1ljzjh8tzuvrj7mkhv9mxvv4cedn7kzauargrey +# Indexer Web3GW env # +INDEXER_WEB3GW_HTTP_HEALTH_CHECK_ENDPOINT="http://sentry-sidecar:8888/health/readiness" + # Indexer Chronos env # INDEXER_CHRONOS_RELAYER_ADDRESS=inj1jv65s3grqf6v6jl3dp4t6c9t9rk99cd8dkncm8 INDEXER_CHRONOS_LEADERBOARD_CROSS_MARKET_IDS=0x01e920e081b6f3b2e5183399d5b6733bb6f80319e6be3805b95cb7236910ff0e,0xe0dc13205fb8b23111d8555a6402681965223135d368eeeb964681f9ff12eb2a,0x8b1a4d3e8f6b559e30e40922ee3662dd78edf7042330d4d620d188699d1a9715,0xfe93c19c0a072c8dd208b96694e024305a7dff01bbf12cac2bfa81b246c69040,0xcdfbfaf1f24055e89b3c7cc763b8cb46ffff08cdc38c999d01f58d64af75dca9,0x5abfffe9079d53e0bf8ee9b3064b427acc3d71d6ba58a44235abe38f60115678,0xe8bf0467208c24209c1cf0fd64833fa43eb6e8035869f9d043dbff815ab76d01,0x2dacf325f1f92a563683f1b4b161d3d6757692e876089c95ef65235283e85e20,0x9a629b947b6f946af4f6076cfda67f3535d73ee3cef6176cf6d9c8d6b0a03f37,0xa43d2be9861efb0d188b136cef0ae2150f80e08ec318392df654520dd359fcd7,0xa508cb32923323679f29a032c70342c147c17d0145625922b0ef22e955c844c0,0x28f3c9897e23750bf653889224f93390c467b83c86d736af79431958fff833d1,0x09cc2c28fbedbdd677e07924653f8f583d0ee5886e74046e7f114210d990784b,0x26413a70c9b78a495023e5ab8003c9cf963ef963f6755f8b57255feb5744bf31,0xd1956e20d74eeb1febe31cd37060781ff1cb266f49e0512b446a5fafa9a16034,0x01edfab47f124748dc89998eb33144af734484ba07099014594321729a0ca16b,0x29255e99290ff967bc8b351ce5b1cb08bc76a9a9d012133fb242bdf92cd28d89,0x0c9f98c99b23e89dbf6a60bec05372790b39e03da0f86dd0208fc8e28751bd8c,0x51092ddec80dfd0d41fee1a7d93c8465de47cd33966c8af8ee66c14fe341a545,0xbe9d4a0a768c7e8efb6740be76af955928f93c247e0b3a1a106184c6cf3216a7,0x4ca0f92fc28be0c9761326016b5a1a2177dd6375558365116b5bdda9abc229ce,0x54d4505adef6a5cef26bc403a33d595620ded4e15b9e2bc3dd489b714813366a,0x1c79dac019f73e4060494ab1b4fcba734350656d6fc4d474f6a238c13c6f9ced,0x9b9980167ecc3645ff1a5517886652d94a0825e54a77d2057cbbe3ebee015963,0xc559df216747fc11540e638646c384ad977617d6d8f0ea5ffdfc18d52e58ab01,0xc60c2ba4c11976e4c10ed7c1f5ca789b63282d0b3782ec3d7fc29dec9f43415e,0xcf18525b53e54ad7d27477426ade06d69d8d56d2f3bf35fe5ce2ad9eb97c2fbc,0x06c5a306492ddc2b8dc56969766959163287ed68a6b59baa2f42330dda0aebe0,0x5e7be7948c78f0c7fb1170655b5faa0a519ee0801250dde0b50308791474e61c,0x3b7fb1d9351f7fa2e6e0e5a11b3639ee5e0486c33a6a74f629c3fc3c3043efd5 diff --git a/docker/.env.testnet.example b/docker/.env.testnet.example index 9b5c14e..5dd170a 100644 --- a/docker/.env.testnet.example +++ b/docker/.env.testnet.example @@ -92,6 +92,9 @@ INDEXER_EXCHANGE_REBUILD_ORDERBOOKS="false" INDEXER_FEATURE_FLAG_TRADING_STRATEGIES_INDEXING="true" INDEXER_SPOT_GRID_TRADING_CONTRACT_WHITELIST=inj14yr8nj6tndmr4xyw9c66feqepv59revxsm7450,inj1djlhetddzrztjn4v0s4vt0dca3y8hwshkh37zg,inj1aehu642q3td95jlpprgcypmstmn3pknaq4rsjn,inj18sl3ysva0czdgc2eqmqlrhfeu2v4l8vx4245ql +# Indexer Web3GW env # +INDEXER_WEB3GW_HTTP_HEALTH_CHECK_ENDPOINT="http://sentry-sidecar:8888/health/readiness" + # Indexer Chronos env # INDEXER_CHRONOS_RELAYER_ADDRESS=inj1cd0d4l9w9rpvugj8upwx0pt054v2fwtr563eh0 INDEXER_CHRONOS_LEADERBOARD_CROSS_MARKET_IDS=0x0611780ba69656949525013d947713300f56c37b6175e02f26bffa495c3208fe,0x7a57e705bb4e09c88aecfc295569481dbf2fe1d5efe364651fbe72385938e9b0,0xe112199d9ee44ceb2697ea0edd1cd422223c105f3ed2bdf85223d3ca59f5909a,0xd5e4b12b19ecf176e4e14b42944731c27677819d2ed93be4104ad7025529c7ff,0x90e662193fa29a3a7e6c07be4407c94833e762d9ee82136a2cc712d6b87d7de3,0x3bb58218cd90efcce9ea9e317d137dcd4ce8485c6be346250dbf8cd60d9c9e2d diff --git a/docker/addons/docker-compose.dex.yaml b/docker/addons/docker-compose.dex.yaml index 7f93e1c..4b252f4 100644 --- a/docker/addons/docker-compose.dex.yaml +++ b/docker/addons/docker-compose.dex.yaml @@ -417,6 +417,7 @@ services: INDEXER_HTTP_LISTEN_ADDR: 0.0.0.0:4444 INDEXER_HTTP_TLS_CERT: /apps/data/public.crt INDEXER_HTTP_TLS_KEY: /apps/data/private.key + INDEXER_WEB3GW_HTTP_HEALTH_CHECK_ENDPOINT: ${INDEXER_WEB3GW_HTTP_HEALTH_CHECK_ENDPOINT} ports: - 4448:4444 - 9914:9910