⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
features
/
live
/
Edit File: index.ts
import { GrafanaLiveSrv, config, getBackendSrv, getGrafanaLiveSrv, setGrafanaLiveSrv } from '@grafana/runtime'; import { liveTimer } from 'app/features/dashboard/dashgrid/liveTimer'; import { contextSrv } from '../../core/services/context_srv'; import { loadUrlToken } from '../../core/utils/urlToken'; import { CentrifugeService } from './centrifuge/service'; import { CentrifugeServiceWorkerProxy } from './centrifuge/serviceWorkerProxy'; import { GrafanaLiveService } from './live'; export function initGrafanaLive() { const centrifugeServiceDeps = { appUrl: `${window.location.origin}${config.appSubUrl}`, orgId: contextSrv.user.orgId, orgRole: contextSrv.user.orgRole, liveEnabled: config.liveEnabled, dataStreamSubscriberReadiness: liveTimer.ok.asObservable(), grafanaAuthToken: loadUrlToken(), }; const centrifugeSrv = config.featureToggles['live-service-web-worker'] ? new CentrifugeServiceWorkerProxy(centrifugeServiceDeps) : new CentrifugeService(centrifugeServiceDeps); setGrafanaLiveSrv( new GrafanaLiveService({ centrifugeSrv, backendSrv: getBackendSrv(), }) ); } export function getGrafanaLiveCentrifugeSrv(): GrafanaLiveSrv { return getGrafanaLiveSrv(); }
Simpan