diff options
Diffstat (limited to 'web/gui/v2/index.html')
-rw-r--r-- | web/gui/v2/index.html | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/web/gui/v2/index.html b/web/gui/v2/index.html index 7118c1ba..843f13ea 100644 --- a/web/gui/v2/index.html +++ b/web/gui/v2/index.html @@ -24,13 +24,15 @@ apiUrl: "https://app.netdata.cloud", cloudUrl: "https://app.netdata.cloud", demoSlug: "netdata-demo", - demoFavourites: {"postgresql":["postgres"],"redis":["redis"],"dns-query":["dns_query"],"http-endpoints":["httpcheck"],"nginx":["web_log","nginx"],"apache":["apache"],"host-reachability":["ping"],"cassandra":["cassandra"],"coredns":["coredns"],"logind":["logind"],"iis":["iis"],"active-directory":["ad"],"windows":["windows","ad","iis","mssql","exchange","netframework"],"docker":["cgroup","docker"]}, + demoFavourites: {"postgresql":["postgres"],"redis":["redis"],"dns-query":["dns_query"],"http-endpoints":["httpcheck"],"nginx":["web_log","nginx"],"apache":["apache"],"host-reachability":["ping"],"cassandra":["cassandra"],"coredns":["coredns"],"logind":["logind"],"iis":["iis"],"active-directory":["ad"],"windows":["windows","ad","iis","mssql","exchange","netframework"],"docker":["cgroup","docker"],"ups":["upsd"]}, webpackPublicPath: "", agentApiUrl: searchParams.get("agent") || getBasename(), - version: "6.29.0", + posthogToken: "phc_hnhlqe6D2Q4IcQNrFItaqdXJAxQ8RcHkPAFAp74pubv", + version: "6.52.2", tracking: false, cookieDomain: ".netdata.cloud", - onprem: false + onprem: false, + nodeEnv: "production" } function loadStyle(url, { media, insertAfter: aref, insertBefore: bref, rel, type } = {}) { @@ -204,5 +206,19 @@ if (event.source !== iframe.contentWindow) return; if (event.data.status === "disabled") console.error("Your netdata registry is disabled! Check your configuration.") + + if (event.data) { + if (!window.localNetdataRegistry) { + window.localNetdataRegistry = {} + } + + window.localNetdataRegistry.pg = event.data.person_guid + + if (!window.envSettings) { + window.envSettings = {} + } + + window.envSettings.visitor = event.data.person_guid + } }); - })</script></body></html>
\ No newline at end of file + }).catch(() => {})</script></body></html>
\ No newline at end of file |