Class CloudWatchCollector

java.lang.Object
io.prometheus.client.Collector
io.prometheus.cloudwatch.CloudWatchCollector
All Implemented Interfaces:
io.prometheus.client.Collector.Describable

public class CloudWatchCollector extends io.prometheus.client.Collector implements io.prometheus.client.Collector.Describable
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.prometheus.client.Collector

    io.prometheus.client.Collector.Describable, io.prometheus.client.Collector.MetricFamilySamples, io.prometheus.client.Collector.Type
  • Field Summary

    Fields inherited from class io.prometheus.client.Collector

    MILLISECONDS_PER_SECOND, NANOSECONDS_PER_SECOND
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
     
     
    protected
    CloudWatchCollector(String jsonConfig, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<io.prometheus.client.Collector.MetricFamilySamples>
     
    List<io.prometheus.client.Collector.MetricFamilySamples>
     
    protected void
    loadConfig(Reader in, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient)
     
    static void
    main(String[] args)
    Convenience function to run standalone.
    protected void
     

    Methods inherited from class io.prometheus.client.Collector

    checkMetricLabelName, checkMetricName, collect, doubleToGoString, register, register, sanitizeMetricName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CloudWatchCollector

    • CloudWatchCollector

      public CloudWatchCollector(String yamlConfig)
    • CloudWatchCollector

      protected CloudWatchCollector(String jsonConfig, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient)
  • Method Details

    • describe

      public List<io.prometheus.client.Collector.MetricFamilySamples> describe()
      Specified by:
      describe in interface io.prometheus.client.Collector.Describable
    • reloadConfig

      protected void reloadConfig() throws IOException
      Throws:
      IOException
    • loadConfig

      protected void loadConfig(Reader in, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient)
    • collect

      public List<io.prometheus.client.Collector.MetricFamilySamples> collect()
      Specified by:
      collect in class io.prometheus.client.Collector
    • main

      public static void main(String[] args)
      Convenience function to run standalone.