public HostExporter( IContentProvider contentProvider, IPrometheusUtils prometheusUtils, IOptions <HostExporterConfiguration> configuration, ILogger logger) : base(contentProvider, prometheusUtils, configuration.Value, typeof(ClusterHostComponent), logger) { _hostConfiguration = configuration.Value; }
public YarnResourceManagerExporter( IContentProvider contentProvider, IPrometheusUtils prometheusUtils, IOptions <YarnResourceManagerExporterConfiguration> exporterConfiguration, ILogger <YarnResourceManagerExporter> logger) : base(contentProvider, prometheusUtils, exporterConfiguration.Value, typeof(ResourceManagerComponent), logger) { _exporterConfiguration = exporterConfiguration.Value; }
public HdfsNameNodeExporter( IContentProvider contentProvider, IPrometheusUtils prometheusUtils, IOptions <HdfsNameNodeExporterConfiguration> exporterConfiguration, ILogger <HdfsNameNodeExporter> logger) : base(contentProvider, prometheusUtils, exporterConfiguration.Value, typeof(HdfsNameNodeComponent), logger) { _exporterConfiguration = exporterConfiguration.Value; }
public ClusterExporter( IContentProvider contentProvider, IPrometheusUtils prometheusUtils, IOptions <ClusterExporterConfiguration> exporterConfiguration, IOptions <HostExporterConfiguration> hostExporterConfiguration, ILogger <ClusterExporter> logger) : base(contentProvider, prometheusUtils, exporterConfiguration.Value, typeof(ClusterComponent), logger) { _clusterConfiguration = exporterConfiguration.Value; _hostExporter = new HostExporter(contentProvider, prometheusUtils, hostExporterConfiguration, logger); }
protected BaseExporter( IContentProvider contentProvider, IPrometheusUtils prometheusUtils, BaseExporterConfiguration baseConfiguration, Type componentType, ILogger logger) { ContentProvider = contentProvider; PrometheusUtils = prometheusUtils; BaseConfiguration = baseConfiguration; ComponentType = componentType; Logger = logger; Collectors = new ConcurrentDictionary <string, Collector>(); _exporterMetricsLabels = new Dictionary <string, string>() { { "Exporter", $"{GetType().Name}" }, }; _exporterMetricsLabels.TryAdd(BaseConfiguration.DefaultLabels); }