Package io.prometheus.cloudwatch
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
ConstructorsModifierConstructorDescriptionCloudWatchCollector(String yamlConfig) protectedCloudWatchCollector(String jsonConfig, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient) -
Method Summary
Modifier and TypeMethodDescriptionList<io.prometheus.client.Collector.MetricFamilySamples>collect()List<io.prometheus.client.Collector.MetricFamilySamples>describe()protected voidloadConfig(Reader in, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient) static voidConvenience function to run standalone.protected voidMethods inherited from class io.prometheus.client.Collector
checkMetricLabelName, checkMetricName, collect, doubleToGoString, register, register, sanitizeMetricName
-
Constructor Details
-
CloudWatchCollector
-
CloudWatchCollector
-
CloudWatchCollector
protected CloudWatchCollector(String jsonConfig, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient)
-
-
Method Details
-
describe
- Specified by:
describein interfaceio.prometheus.client.Collector.Describable
-
reloadConfig
- Throws:
IOException
-
loadConfig
protected void loadConfig(Reader in, software.amazon.awssdk.services.cloudwatch.CloudWatchClient cloudWatchClient, software.amazon.awssdk.services.resourcegroupstaggingapi.ResourceGroupsTaggingApiClient taggingClient) -
collect
- Specified by:
collectin classio.prometheus.client.Collector
-
main
Convenience function to run standalone.
-