From 0b8f5b4f36841d106d456335843d4bf772b752dd Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Tue, 2 Jul 2024 17:29:02 -0400 Subject: [PATCH] fix: really disable js-ceramic node metrics (#196) --- operator/src/network/ceramic.rs | 6 +++--- .../network/testdata/default_stubs/ceramic_init_configmap | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/operator/src/network/ceramic.rs b/operator/src/network/ceramic.rs index 4ef8f34..e337fe6 100644 --- a/operator/src/network/ceramic.rs +++ b/operator/src/network/ceramic.rs @@ -82,15 +82,15 @@ r#"{ "metrics": { "metrics-exporter-enabled": false, "prometheus-exporter-enabled": true, - "prometheus-exporter-port": 9464 + "prometheus-exporter-port": 9464, + "metrics-publisher-enabled": false }, "network": { "name": "${CERAMIC_NETWORK}", "pubsub-topic": "${CERAMIC_NETWORK_TOPIC}" }, "node": { - "privateSeedUrl": "inplace:ed25519#${CERAMIC_ADMIN_PRIVATE_KEY}", - "metrics-publisher-enabled": false + "privateSeedUrl": "inplace:ed25519#${CERAMIC_ADMIN_PRIVATE_KEY}" }, "state-store": { "mode": "fs", diff --git a/operator/src/network/testdata/default_stubs/ceramic_init_configmap b/operator/src/network/testdata/default_stubs/ceramic_init_configmap index edec30a..1d96349 100644 --- a/operator/src/network/testdata/default_stubs/ceramic_init_configmap +++ b/operator/src/network/testdata/default_stubs/ceramic_init_configmap @@ -9,7 +9,7 @@ Request { "apiVersion": "v1", "data": { "ceramic-init.sh": "#!/bin/bash\n\nset -eo pipefail\n\nexport CERAMIC_ADMIN_DID=$(composedb did:from-private-key ${CERAMIC_ADMIN_PRIVATE_KEY})\n\nCERAMIC_ADMIN_DID=$CERAMIC_ADMIN_DID envsubst < /ceramic-init/daemon-config.json > /config/daemon-config.json\n", - "daemon-config.json": "{\n \"anchor\": {\n \"auth-method\": \"did\",\n \"anchor-service-url\": \"${CAS_API_URL}\",\n \"ethereum-rpc-url\": \"${ETH_RPC_URL}\"\n },\n \"http-api\": {\n \"cors-allowed-origins\": [\n \"${CERAMIC_CORS_ALLOWED_ORIGINS}\"\n ],\n \"admin-dids\": [\n \"${CERAMIC_ADMIN_DID}\"\n ]\n },\n \"ipfs\": {\n \"mode\": \"remote\",\n \"host\": \"${CERAMIC_IPFS_HOST}\"\n },\n \"logger\": {\n \"log-level\": ${CERAMIC_LOG_LEVEL},\n \"log-to-files\": false\n },\n \"metrics\": {\n \"metrics-exporter-enabled\": false,\n \"prometheus-exporter-enabled\": true,\n \"prometheus-exporter-port\": 9464\n },\n \"network\": {\n \"name\": \"${CERAMIC_NETWORK}\",\n \"pubsub-topic\": \"${CERAMIC_NETWORK_TOPIC}\"\n },\n \"node\": {\n \"privateSeedUrl\": \"inplace:ed25519#${CERAMIC_ADMIN_PRIVATE_KEY}\",\n \"metrics-publisher-enabled\": false\n },\n \"state-store\": {\n \"mode\": \"fs\",\n \"local-directory\": \"${CERAMIC_STATE_STORE_PATH}\"\n },\n \"indexing\": {\n \"db\": \"postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost/${POSTGRES_DB}\",\n \"allow-queries-before-historical-sync\": true,\n \"disable-composedb\": false,\n \"enable-historical-sync\": false\n }\n}" + "daemon-config.json": "{\n \"anchor\": {\n \"auth-method\": \"did\",\n \"anchor-service-url\": \"${CAS_API_URL}\",\n \"ethereum-rpc-url\": \"${ETH_RPC_URL}\"\n },\n \"http-api\": {\n \"cors-allowed-origins\": [\n \"${CERAMIC_CORS_ALLOWED_ORIGINS}\"\n ],\n \"admin-dids\": [\n \"${CERAMIC_ADMIN_DID}\"\n ]\n },\n \"ipfs\": {\n \"mode\": \"remote\",\n \"host\": \"${CERAMIC_IPFS_HOST}\"\n },\n \"logger\": {\n \"log-level\": ${CERAMIC_LOG_LEVEL},\n \"log-to-files\": false\n },\n \"metrics\": {\n \"metrics-exporter-enabled\": false,\n \"prometheus-exporter-enabled\": true,\n \"prometheus-exporter-port\": 9464,\n \"metrics-publisher-enabled\": false\n },\n \"network\": {\n \"name\": \"${CERAMIC_NETWORK}\",\n \"pubsub-topic\": \"${CERAMIC_NETWORK_TOPIC}\"\n },\n \"node\": {\n \"privateSeedUrl\": \"inplace:ed25519#${CERAMIC_ADMIN_PRIVATE_KEY}\"\n },\n \"state-store\": {\n \"mode\": \"fs\",\n \"local-directory\": \"${CERAMIC_STATE_STORE_PATH}\"\n },\n \"indexing\": {\n \"db\": \"postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@localhost/${POSTGRES_DB}\",\n \"allow-queries-before-historical-sync\": true,\n \"disable-composedb\": false,\n \"enable-historical-sync\": false\n }\n}" }, "kind": "ConfigMap", "metadata": {