Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix check node health URL #1769

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions packages/playground/src/utils/get_metrics_url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import GridProxyClient, { type GridNode, type TwinsQuery } from "@threefold/gridproxy_client";
import type GridProxyClient from "@threefold/gridproxy_client";
import type { GridNode, TwinsQuery } from "@threefold/gridproxy_client";

import { gridProxyClient } from "@/clients";

export interface IGrafanaArgs {
farmID: number;
Expand All @@ -18,11 +21,11 @@ export class GrafanaStatistics {
constructor(node: GridNode, orgID = 2) {
this.node = node;
const network = process.env.NETWORK || (window as any).env.NETWORK;
const client = new GridProxyClient(network);
const client = gridProxyClient;
this.client = client;
this.twinID = node.twinId;
this.farmID = node.farmId;
this.network = process.env.NETWORK || (window as any).env.NETWORK;
this.network = network;
this.updateNetwork();
this.orgID = orgID;
this.accountID = "";
Expand Down
Loading