Skip to content

Tutorial prerequisites

This tutorial builds on the Aerospike Cloud quickstart. Complete the quickstart first to set up your cluster and VPC peering.

Required

AWS CLI

You need the AWS CLI to run commands in this tutorial.

  1. Install the AWS CLI if not already installed.

  2. Configure your credentials. If you use AWS SSO, log in with your profile:

    Terminal window
    aws sso login --profile YOUR_PROFILE_NAME

    Then set the profile for your session:

    Terminal window
    export AWS_PROFILE=YOUR_PROFILE_NAME

    Replace YOUR_PROFILE_NAME with your SSO profile name.

  3. Verify your credentials are configured:

    Terminal window
    aws sts get-caller-identity

    You should see your account ID and user ARN.

Aerospike Cloud quickstart completed

The quickstart sets up your Aerospike Cloud cluster and VPC peering. You need the following information from your quickstart setup:

  1. Get your database hostname from the Cloud Console. Navigate to your cluster and copy the hostname (for example, abc123.aerospike.internal).

  2. Get your subnet ID. This is the subnet in your VPC that has peering to Aerospike Cloud. Run:

    Terminal window
    aws ec2 describe-subnets --query 'Subnets[*].[SubnetId,VpcId,CidrBlock]' --output table

    Find the subnet in your peered VPC and note the SubnetId.

  3. Get your security group ID. This security group must allow outbound traffic. Run:

    Terminal window
    aws ec2 describe-security-groups --query 'SecurityGroups[*].[GroupId,GroupName,VpcId]' --output table

    Find a security group in your peered VPC and note the GroupId.

Grafana Cloud account

Grafana Cloud provides managed dashboards and alerting. The free tier is sufficient for this tutorial.

  1. Go to grafana.com and click Create free account.

  2. Complete the signup process. Grafana Cloud automatically creates an environment for you that includes a Grafana instance, observability services, and endpoints. This is called a stack.

  3. In the Grafana Cloud portal, find the Prometheus tile and click it.

  4. On the Prometheus onboarding page:

    1. Select Collect and send metrics to a fully-managed Prometheus Stack.
    2. Select Custom Setup Options.
    3. Select Alloy.
  5. On the Hosted Prometheus metrics page:

    1. Select Via Grafana Alloy.
    2. Ensure Standard is selected (not Kubernetes).
    3. Click Run Grafana Alloy.
  6. In the Alloy configuration modal:

    1. Select platform: Other Distribution (this tutorial uses ECS).
    2. Leave architecture as amd64.
    3. Enter a token name (for example, alloy-aerospike).
    4. Leave No expiry selected.
    5. Click Create token.
  7. After the token is created, the modal shows install commands. Click Proceed to install integration to continue.

  8. On the next page, find Step 3: Set the configuration. This shows the Alloy configuration block with your credentials. Copy these values from the configuration:

    Field in configWhat to saveExample
    urlRemote Write URLhttps://prometheus-prod-67-prod-us-west-0.grafana.net/api/prom/push
    usernameInstance ID2944621
    passwordAPI Tokenglc_eyJvIjoi...

    Save these values to a text file. You will need them when deploying Alloy.

  9. Skip steps 4 and 5 on this page. The CloudFormation template handles the deployment.

Gather your values

Before proceeding, collect these values. You will need them in the next step:

ValueDescriptionExample
Database hostnameFrom Cloud Consoleabc123.aerospike.internal
Subnet IDFrom your peered VPCsubnet-0abc123def456
Security group IDFrom your peered VPCsg-0abc123def456
Grafana remote write URLurl from Grafana Cloud confighttps://prometheus-prod-67-...grafana.net/api/prom/push
Grafana instance IDusername from Grafana Cloud config2944621
Grafana API tokenpassword from Grafana Cloud configglc_eyJvIjoi...
Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?