Documentation

Monitor Amazon Web Services (AWS)

Use the AWS CloudWatch Monitoring template to monitor data from Amazon Web Services (AWS), Amazon Elastic Compute Cloud (EC2), and Amazon Elastic Load Balancing (ELB) with the AWS CloudWatch Service.

The AWS CloudWatch Monitoring template includes the following:

  • two dashboards:
    • AWS CloudWatch NLB (Network Load Balancers) Monitoring: Displays data from the cloudwatch_aws_network_elb measurement
    • AWS CloudWatch Instance Monitoring: Displays data from the cloudwatch_aws_ec2 measurement
  • two buckets: kubernetes and cloudwatch
  • two labels: inputs.cloudwatch, AWS
  • one variable: v.bucket
  • one Telegraf configuration: AWS CloudWatch input plugin

Apply the template

  1. Use the influx CLI to run the following command:

    influx apply -f https://raw.githubusercontent.com/influxdata/community-templates/master/aws_cloudwatch/aws_cloudwatch.yml
    

    For more information, see influx apply.

  2. Install Telegraf on a server with network access to both the CloudWatch API and InfluxDB v2 API.

  3. In your Telegraf configuration file (telegraf.conf), find the following example influxdb_v2 output plugins, and then replace the urls to specify the servers to monitor:

     ## k8s
     [[outputs.influxdb_v2]]
      urls = ["http://influxdb.monitoring:8086"]
      organization = "InfluxData"
      bucket = "kubernetes"
      token = "secret-token"
    
     ## cloudv2 sample
     [[outputs.influxdb_v2]]
      urls = ["$INFLUX_HOST"]
      token = "$INFLUX_TOKEN"
      organization = "$INFLUX_ORG"
      bucket = “cloudwatch"
    
  4. Start Telegraf.

View the incoming data

  1. In the InfluxDB user interface (UI), select Dashboards in the left navigation.

  2. Open your AWS dashboards, and then set the v.bucket variable to specify the bucket to query data from (kubernetes or cloudwatch).


Was this page helpful?

Thank you for your feedback!


The future of Flux

Flux is going into maintenance mode. You can continue using it as you currently are without any changes to your code.

Read more

InfluxDB v3 enhancements and InfluxDB Clustered is now generally available

New capabilities, including faster query performance and management tooling advance the InfluxDB v3 product line. InfluxDB Clustered is now generally available.

InfluxDB v3 performance and features

The InfluxDB v3 product line has seen significant enhancements in query performance and has made new management tooling available. These enhancements include an operational dashboard to monitor the health of your InfluxDB cluster, single sign-on (SSO) support in InfluxDB Cloud Dedicated, and new management APIs for tokens and databases.

Learn about the new v3 enhancements


InfluxDB Clustered general availability

InfluxDB Clustered is now generally available and gives you the power of InfluxDB v3 in your self-managed stack.

Talk to us about InfluxDB Clustered