{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/export/types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { MetricProducer } from '@opentelemetry/sdk-metrics';\n\n/**\n * Configuration interface for prometheus exporter\n */\nexport interface ExporterConfig {\n  /**\n   * App prefix for metrics, if needed\n   *\n   * @default ''\n   * */\n  prefix?: string;\n\n  /**\n   * Append timestamp to metrics\n   * @default false\n   */\n  appendTimestamp?: boolean;\n\n  /**\n   * Endpoint the metrics should be exposed at with preceding slash\n   * @default '/metrics'\n   */\n  endpoint?: string;\n\n  /**\n   * @default undefined (all interfaces)\n   */\n  host?: string;\n\n  /**\n   * Port number for Prometheus exporter server\n   *\n   * Default registered port is 9464:\n   * https://github.com/prometheus/prometheus/wiki/Default-port-allocations\n   * @default 9464\n   */\n  port?: number;\n\n  /**\n   * Prevent the Prometheus exporter server from starting\n   * @default false\n   */\n  preventServerStart?: boolean;\n\n  /**\n   * **Note, this option is experimental**. Additional MetricProducers to use as a source of\n   * aggregated metric data in addition to the SDK's metric data. The resource returned by\n   * these MetricProducers is ignored; the SDK's resource will be used instead.\n   * @experimental\n   */\n  metricProducers?: MetricProducer[];\n\n  /**\n   * Regex pattern for defining which resource attributes will be applied\n   * as constant labels to the metrics.\n   * e.g. 'telemetry_.+' for all attributes starting with 'telemetry'.\n   * @default undefined (no resource attributes are applied)\n   */\n  withResourceConstantLabels?: RegExp;\n\n  /**\n   * If true, scope labels are not included in scraped metrics.\n   * @default false (scope labels are included)\n   */\n  withoutScopeInfo?: boolean;\n\n  /**\n   * If true, the target_info metric is not included in scraped metrics.\n   * @default false (target_info metric is included)\n   */\n  withoutTargetInfo?: boolean;\n}\n"]}