This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Get Host IP to be used in alertmanager and prometheus | |
ip=$(ifconfig | grep "inet " | grep 10 | awk '{print $2}') | |
## Create Folder for prometheus database | |
mkdir /prom-data | |
chmod 777 /prom-data/ | |
## install grafana | |
yum install https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.3-1.x86_64.rpm | |
systemctl enable grafana-server |