Menu
Grafana Cloud

Configure Kubernetes Monitoring on an AWS EKS Cluster

You can use the Kubernetes Monitoring add-on to configure Kubernetes Monitoring on your EKS Cluster, either using the EKS console or the AWS CLI.

Before you begin

Before you begin, complete the following steps:

  1. Subscribe to Grafana Cloud Kubernetes Monitoring on the AWS Marketplace, and follow the on-screen instructions.
  2. Create a new access policy token or use an existing token. Refer to Grafana Cloud Access Policies for more information.

Install using AWS EKS console

  1. On the AWS Console, navigate to your EKS Cluster list.

  2. Click the Cluster you want to use.

  3. Select the Add-ons tab.

  4. Click the Get more Add-ons button.

  5. Find the Grafana Cloud Kubernetes Monitoring add-on, and select the box. The Configure selected add-ons settings page appears.

  6. Select the version of the add-on.

  7. Expand the Optional configuration settings and scroll to Configuration values section.

  8. Copy and paste the following into the Configuration values box.

    yaml
    k8s-monitoring:
      externalServices:
        prometheus:
          host: '<Prometheus host>'
          basicAuth:
            username: '<Prometheus user>'
            password: “<access policy token>”
        loki:
          host: '<Loki host>'
          basicAuth:
            username: '<Loki user>'
            password: “<access policy token>”
  9. Click Next. The Review and add page appears

  10. Click Create.

Install using AWS CLI

  1. Save the following configuration to a config.yaml file:

    yaml
    k8s-monitoring:
      externalServices:
        prometheus:
          host: '<Prometheus host>'
          basicAuth:
            username: '<Prometheus user>'
            password: “<access policy token>”
        loki:
          host: '<Loki host>'
          basicAuth:
            username: '<Loki user>'
            password: “<access policy token>”
  2. At the AWS CLI, run the following command:

    bash
    aws eks create-addon --cluster-name ${CLUSTER_NAME} --region ${CLUSTER_REGION} --addon-name grafana-labs_kubernetes-monitoring --configuration-values “$(cat config.yaml)”

Validate data is flowing

  1. Navigate to Kubernetes Monitoring on your Grafana Cloud account.
  2. Click Configuration on the main menu, then click the Metrics status tab. Your data becomes populated as the system components begin scraping and sending data to Grafana Cloud. This view shows the health of the different sources of metrics, logs, and events, as well as any applicable version numbers.
    Metrics status tab
    Metrics status tab