Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
gianbelinche committed Sep 16, 2024
1 parent b538526 commit c4f45c9
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions infrastructure/zk/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,22 @@ const setupObservability = async (): Promise<void> => {
`
);

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');
};
Expand Down

0 comments on commit c4f45c9

Please sign in to comment.