hook up grafana with prometheus

[root@prom1 ~]# useradd prometheus [root@prom1 ~]# su - prometheus [prometheus@prom1 ~]$ wget https://github.com/prometheus/node_exporter/releases/download/v0.14.0/node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ ls -l total 3928 -rw-rw-r--. 1 prometheus prometheus 4019675 Nov 26 02:42 node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 ~]$ mkdir -p Prometheus/node_exporter [prometheus@prom1 ~]$ cd $_ [prometheus@prom1 node_exporter]$ [prometheus@prom1 node_exporter]$ tar xzf ../../node_exporter-0.14.0.linux-amd64.tar.gz [prometheus@prom1 node_exporter]$ logout [root@prom1 ~]# vim /etc/systemd/system/node_exporter.service # echo "[Unit] Description=Node Exporter … Continue reading hook up grafana with prometheus

Advertisements

installing consul

[root@instance-1 ~]# wget https://releases.hashicorp.com/consul/1.0.0/consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# ls -l -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# yum install unzip -y [root@instance-1 ~]# unzip consul_1.0.0_linux_amd64.zip Archive: consul_1.0.0_linux_amd64.zip inflating: consul [root@instance-1 ~]# ls -l -rwxr-xr-x. 1 root root 42845786 Oct 16 16:30 consul -rw-r--r--. 1 root root 10407455 Oct 16 16:36 consul_1.0.0_linux_amd64.zip [root@instance-1 ~]# … Continue reading installing consul

kubernetes help pages

mohammedrafi@NOC-RAFI:~$ sudo kubectl kubectl controls the Kubernetes cluster manager. Find more information at https://github.com/kubernetes/kubernetes. Basic Commands (Beginner): create Create a resource by filename or stdin expose Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service run Run a particular image on the cluster run-container Run a particular image … Continue reading kubernetes help pages

kops in aws

Pre-requisites : kubectl , awscli, kops, domain in route53, Create a  record set in aws in route53 service  ns-444.awsdns-55.com. ns-1644.awsdns-13.co.uk. ns-569.awsdns-07.net. ns-1218.awsdns-24.org. mohammedrafi@NOC-RAFI:~$ dig +short NS k8s.devopsact.com ns-1218.awsdns-24.org. ns-1644.awsdns-13.co.uk. ns-444.awsdns-55.com. ns-569.awsdns-07.net. mohammedrafi@NOC-RAFI:~$ dig +short NS devopsact.com ns46.domaincontrol.com. ns45.domaincontrol.com. Only my sub domain will be pointing to aws dns servers . Add the dns NS server … Continue reading kops in aws

Kubernetes cluster with vagrant & virtual-box

####################### Kubernetes has several components: etcd - A highly available key-value store for shared configuration and service discovery. flannel - An etcd backed network fabric for containers. kube-apiserver - Provides the API for Kubernetes orchestration. kube-controller-manager - Enforces Kubernetes services. kube-scheduler - Schedules containers on hosts. kubelet - Processes a container manifest so the containers … Continue reading Kubernetes cluster with vagrant & virtual-box

Installing Kafka in docker container

[root@kafka ~]# docker --version Docker version 1.12.6, build c4618fb/1.12.6 [root@kafka ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE [root@kafka ~]# docker run --rm -p 2181:2181 -p 3030:3030 -p 8081-8083:8081-8083 -p 9581-9585:9581-9585 -p 9092:9092 -e ADV_HOST=127.0.0.1 landoop/fast-data-dev:cp3.2 & Unable to find image 'landoop/fast-data-dev:latest' locally Trying to pull repository docker.io/landoop/fast-data-dev ... latest: Pulling from docker.io/landoop/fast-data-dev 88286f41530e: … Continue reading Installing Kafka in docker container

Yum – Yellowdog Updater Modified Cheat Sheet

yum list <package> yum list kernel* yum list "​ker​nel​*" yum search <> yum provides */ping yum list yum resolv​edep /etc/ ​ redhat-release yum install <package> yum remove <package> yum locali​nst​all <package> yum deplist <package> yum localu​pdate <package> yum update yum --excl​ude​=​<package> update yum --excl​ude​=ker​nel* update yum --disa​ble​rep​o=​<reponame> update yum --enab​ler​epo​ =​<reponame> update yum check-​upd​ate yum … Continue reading Yum – Yellowdog Updater Modified Cheat Sheet

openshift with vagrant

https://app.vagrantup.com/openshift/boxes/origin-all-in-one mohammedrafi@NOC-RAFI:~$ mkdir openshift mohammedrafi@NOC-RAFI:~$ cd openshift/ mohammedrafi@NOC-RAFI:~/openshift$ vagrant init openshift/origin-all-in-one A `Vagrantfile` has been placed in this directory. You are now ready to `vagrant up` your first virtual environment! Please read the comments in the Vagrantfile as well as documentation on `vagrantup.com` for more information on using Vagrant. mohammedrafi@NOC-RAFI:~/openshift$ cat Vagrantfile # -*- mode: … Continue reading openshift with vagrant

Installing Kafka on CentOS 7

[vagrant@localhost ~]$ sudo yum install java-1.8.0-openjdk.x86_64 -y [vagrant@localhost ~]$ java -version openjdk version "1.8.0_144" OpenJDK Runtime Environment (build 1.8.0_144-b01) OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode) [vagrant@localhost ~]$ sudo vi /etc/profile export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk export JRE_HOME=/usr/lib/jvm/jre [vagrant@localhost ~]$ source /etc/profile [vagrant@localhost ~]$  wget http://www-us.apache.org/dist/kafka/0.9.0.1/kafka_2.11-0.9.0.1.tgz [vagrant@localhost ~]$ tar -xvf kafka_2.11-0.9.0.1.tgz [vagrant@localhost ~]$ ls -l total 34816 … Continue reading Installing Kafka on CentOS 7

virtual machines with vagrant

################ Method-1 ############## Make sure you have any hypervisor platform on your pc ex: virtualbox follow steps tin url install virtualbox and vagrant https://rafishaikblog.wordpress.com/2017/01/13/vagrant/ mohammedrafi@NOC-RAFI:~$ mkdir vagrant mohammedrafi@NOC-RAFI:~$ cd vagrant/ mohammedrafi@NOC-RAFI:~/vagrant$ vim Vagrantfile Vagrant.configure("2") do |config| config.vm.box = "centos/7" end mohammedrafi@NOC-RAFI:~/vagrant$ vim Vagrantfile mohammedrafi@NOC-RAFI:~/vagrant$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing … Continue reading virtual machines with vagrant