Skip to content

Nyota254/prometheus-ansible-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PROMETHEUS SETUP SCRIPT

This is a very rudimentary implementation of an an ansible script to install prometheus on your server and add service discovery

USAGE

  1. Create a iam role and give it readonly access
  2. Create a ec2 instance with ubuntu on your aws account (ensure its has a security group with ports 22,9100,9090,9093 open and also attach a keypair to your instance)
  3. Add the ip address of your account to the inventory.txt file
  4. Add the access key and secret key of your iam role to the setup-service-discovery echo command ensure you dont mess with the spacing(VERY IMPORTANT).
  5. depending on your aws region you can also change it from the setup-service-discovery echo command
  6. Assuming your pem file from the keypair and inventory files are present in the current directory Finally run the command
ansible-playbook main.yml -i inventory --private-key prometheus.pem

Credits

This script is based on this tutorial https://codewizardly.com/prometheus-on-aws-ec2-part1/

About

A Rudimentary script to setup prometheus on your ubuntu ec2 instance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published