Skip to content

Instantly share code, notes, and snippets.

@npearce
Last active February 8, 2019 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save npearce/d38dc53c244196d73d93735f2645f47a to your computer and use it in GitHub Desktop.
Save npearce/d38dc53c244196d73d93735f2645f47a to your computer and use it in GitHub Desktop.
BigStats Setup for: F5 BIG-IP -> StatsD -> GraphiteDB -> Graphana Dashboards

Create the Grafana Dashboard Container for BigStats on AWS

Updated: August 21, 2018

NOTE: This setup is used as an exporter destination for BigStats: https://npearce.github.io

Create the Instance

On the AWS Console:

  1. In 'Instances', click 'Luanch Instance'.
  2. Select 'Amazon Linux 2 AMI (HVM), SSD Volume Type'
  3. Select 't2.micro' (perfectly fine for lab testing), and click 'Next: Configure Instance Details'
  4. Select the appropriate 'Network' and 'subnet' for your environment that can reach your BIG-IP mangement interface. Click 'Review and Launch'.
  5. Apply the correct Securty Group to access:
    • StatsD 8125/tcp, 8125/tcp
    • Graphite UI: 80/tcp
    • Grafana UI: 3000/tcp
    • SSH to the docker host: 22/tcp
  6. Click 'Launch'
  7. Select the appropriate key pair you have access to, click 'Launch Instances'.
  8. Click 'View Instances' to be taken to the newly reated instance and watch it boot!

Install Docker

Once the 'Status Checks' transition from Initializing to '2/2 checks passed':

  1. https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9

Start the containers

  1. Clone the docker-compose file: git clone https://github.com/f5devcentral/BigStats_Grafana_Compose
  2. Enter the repo directory: cd BigStats_Grafana_Compose/
  3. Start the Graphite/StatsD and Grafana containers: docker-compose up -d

You should be able to access the GraphiteDB time series database Web UI on: http://{docker_host_ipaddress}

You should be able to access the Grafana Web UI on: http://{docker_host_ipaddress}:3000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment