![]() I currently have aws_applicationelb_request_count_average and aws_ec2_network_packets_in_sum working but nothing else. I'm working through building out a config but I can't seem to get all of my metrics to show up in Prometheus. This project is licensed under the Apache 2.0 license.I have Prometheus CloudWatch Exporter setup and pointed to our prometheus instance. This exporter is largely inspired by the official CloudWatch Exporter and we'd like to thank all the contributors who participated to the original project. _ dimensions_select_regex has been added here End Note This exporter is still in its early stages! It still lacks the dimensions_select_regex parameter and the DynamoDB special use-cases. ![]() Regarding our requirements, installing Java runtime was also a bit of an issue, so we decided to make it "compliant" with the rest of the Prometheus project by using Golang. We wanted to be able to use the service EC2 discovery functionnality provided by Prometheus to dynamically monitor our fleet. We felt left out when we wanted to monitor hundreds of machines on AWS thanks to CloudWatch when using the original exporter. Gathers metrics from the CloudWatch API depending on the task and (optionally) the target passed as parameters.ĭoes a live reload of the configuration without restarting the process Gathers metrics from the CloudWatch exporter itself such as the total number of requests made to the AWS CloudWatch API. Note: It would also work if no default_region was specified but a params block with the region parameter was set in the Prometheus configuration. ![]() ![]() The Billing example is there to demonstrate the multi-region capability of this exporter, the default_region parameter is specified in the exporter's configuration. The region is specified in the params section. Thanks to Prometheus relabelling feature, in the second job configuration, we tell it to use the job_name as the task parameter and to use the _meta_ec2_instance_id as the target parameter. job_name: 'vpn_mon ' metrics_path: '/scrape ' params: target_label: _address_ replacement: 'localhost:9042 ' source_labels: target_label: _param_target source_labels: target_label: _param_task source_labels: regex: webapp action: keep job_name: 'ec2_cloudwatch ' metrics_path: '/scrape ' ec2_sd_configs: job_name: 'aws_billing ' metrics_path: '/scrape ' params: It's possible! Just call the /reload endpoint. Let's say you can't afford to kill the process and restart it for any reason and you need to modify the configuration on the fly. With the example configuration above, this means that the CloudWatch exporter will scrape the CPUUtilization and the NetworkOut metrics when the dimension InstanceId will be equal to i-0123456789 in the eu-west-1 region according to the configuration of the task: ec2_cloudwatch. The $_target token in the dimensions select is used to pass a parameter given by Prometheus (for example a _meta tag with service discovery).įor example a scrape URL looks like this: Tasks are used to describe a CloudWatch scrape that can be reused on a whole set of instances and even cross-region. VpnId: aws_metric_name: TunnelState aws_statistics: range_seconds: 3600 What are "Tasks" and "$_target"? ![]() Assets 10 2 people reacted 2 matthiasr v0.12.1 7c93e9a Compare 0.12. Note that this is a housekeeping release the CloudWatch exporter does not use log4j for logging and is not affected by log4shell. aws_namespace: "AWS/VPN " aws_dimensions: aws_dimensions_select: This release updates several dependencies, including the Prometheus Java client 0.13.0. InstanceId: aws_metric_name: NetworkOut aws_statistics: InstanceId: aws_metric_name: CPUUtilization aws_statistics: aws_namespace: "AWS/EC2 " aws_dimensions: aws_dimensions_select: aws_namespace: "AWS/Billing " aws_dimensions: aws_dimensions_select:Ĭurrency: aws_metric_name: EstimatedCharges aws_statistics: range_seconds: 86400 name: billing default_region: us-east-1 metrics: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |