Class CustomMappingSampleBuilder

    • Method Detail

      • createSample

        public io.prometheus.client.Collector.MetricFamilySamples.Sample createSample​(String dropwizardName,
                                                                                      String nameSuffix,
                                                                                      List<String> additionalLabelNames,
                                                                                      List<String> additionalLabelValues,
                                                                                      double value)
        Description copied from interface: SampleBuilder
        Creates a new Collector.MetricFamilySamples.Sample for the given parameters.
        Specified by:
        createSample in interface SampleBuilder
        Parameters:
        dropwizardName - Metric name coming from Dropwizard.
        nameSuffix - Optional suffix to add.
        additionalLabelNames - Optional additional label names. Needs to have same size as additionalLabelValues.
        additionalLabelValues - Optional additional label values. Needs to have same size as additionalLabelNames.
        value - Metric value
        Returns:
        A new Collector.MetricFamilySamples.Sample.