misc: removed host metrics

This commit is contained in:
Sheen Capadngan
2025-03-05 01:20:06 +08:00
parent 9f7b42ad91
commit e42f860261
3 changed files with 0 additions and 45 deletions
@@ -1,7 +1,6 @@
import opentelemetry, { diag, DiagConsoleLogger, DiagLogLevel } from "@opentelemetry/api";
import { OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-proto";
import { PrometheusExporter } from "@opentelemetry/exporter-prometheus";
import { HostMetrics } from "@opentelemetry/host-metrics";
import { registerInstrumentations } from "@opentelemetry/instrumentation";
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
import { Resource } from "@opentelemetry/resources";
@@ -68,9 +67,6 @@ const initTelemetryInstrumentation = ({
readers: metricReaders
});
const hostMetrics = new HostMetrics({ meterProvider });
hostMetrics.start();
opentelemetry.metrics.setGlobalMeterProvider(meterProvider);
registerInstrumentations({