From c4f45c922fe261b6a01ed75464fb26ed765d582e Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Mon, 16 Sep 2024 17:06:37 -0300 Subject: [PATCH] Format code --- infrastructure/zk/src/init.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/infrastructure/zk/src/init.ts b/infrastructure/zk/src/init.ts index 8e5586798647..484966399a1d 100644 --- a/infrastructure/zk/src/init.ts +++ b/infrastructure/zk/src/init.ts @@ -54,12 +54,22 @@ const setupObservability = async (): Promise => { ` ); - const fileContents = fs.readFileSync("./target/dockprom/prometheus/prometheus.yml", 'utf8'); + const fileContents = fs.readFileSync('./target/dockprom/prometheus/prometheus.yml', 'utf8'); let config = yaml.parse(fileContents); - config.scrape_configs.push({ job_name: "proxy-blob-retriever", scrape_interval: "5s", honor_labels: true, static_configs: [ { targets: ["host.docker.internal:7070"] } ] }); - config.scrape_configs.push({job_name: "zksync", scrape_interval: "5s", honor_labels: true, static_configs: [{targets: ["host.docker.internal:3312"]}]}) + config.scrape_configs.push({ + job_name: 'proxy-blob-retriever', + scrape_interval: '5s', + honor_labels: true, + static_configs: [{ targets: ['host.docker.internal:7070'] }] + }); + config.scrape_configs.push({ + job_name: 'zksync', + scrape_interval: '5s', + honor_labels: true, + static_configs: [{ targets: ['host.docker.internal:3312'] }] + }); const newYaml = yaml.stringify(config); - fs.writeFileSync("./target/dockprom/prometheus/prometheus.yml", newYaml, 'utf8'); + fs.writeFileSync('./target/dockprom/prometheus/prometheus.yml', newYaml, 'utf8'); await utils.spawn('cp EigenDA.json ./target/dockprom/grafana/provisioning/dashboards/EigenDA.json'); };