Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Tuesday, September 1, 2020

How to Install Prometheus using Docker on Ubuntu 18.04

September 01, 2020
How to Install Prometheus using Docker on Ubuntu 18.04

1. Create a new file 

sudo nano ~/prometheus.yml
 Add below lines or copy paste into prometheus file
 
# A scrape configuration scraping a Node Exporter and the Prometheus server
# itself.
scrape_configs:
  # Scrape Prometheus itself every 5 seconds.
  - job_name: 'prometheus'
    scrape_interval: 5s
    static_configs:
      - targets: ['localhost:9090']

  # Scrape the Node Exporter every 5 seconds.
  - job_name: 'node'
    scrape_interval: 5s
    static_configs:
      - targets: ['your_server_ip:9100']
 
2. docker run -d -p 9090:9090 -v ~/prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus
3. docker ps
4. http://your_server_ip:9090/status
 
ERROR :- state : UNKNOWN
SOLUTION :- remove  -storage.local.memory-chunks=10000
  
 

Tuesday, June 16, 2020

How to Install and Configure pgAdmin 4 v4.19 on Ubuntu 18.04/20.04, Debi...

June 16, 2020
How to Install and Configure pgAdmin 4 v4.19 on Ubuntu 18.04/20.04, Debi...

Wednesday, June 10, 2020

How to solve command could not be located because '/bin' is not included in the path environment variable

June 10, 2020
How to solve command could not be located because '/bin' is not included in the path environment variable
ERROR
command could not be located because '/bin' is not included in the path environment variable


SOLUTION 1
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

ls -l /etc/environment
-rw-r--r-- 1 root root 79 2010-03-16 14:44 /etc/environment

JUST TYPE
export PATH=/usr/bin:/bin

=========================================
SOLUTION 2
sudo nano ~/.bashrc
CP & PST AT LAST LINE OR BOTTOM
export PATH=/usr/bin:$PATH

source ~/.bashrc
==========================================




Saturday, May 9, 2020

How to Install Virtual Box v(6.1.6) on Ubuntu 20.04 LTS | Install Latest...

May 09, 2020
How to Install Virtual Box v(6.1.6) on Ubuntu 20.04 LTS | Install Latest...

Sunday, April 26, 2020

How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw

April 26, 2020
How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw

How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw

April 26, 2020
How to Install New Ubuntu 20.04 LTS (Focal Fossa) in Dell Laptop | Install Ubuntu 20.04 LTS Desktop https://youtu.be/5VWsjJhQkJw

How to Enable Hidden Notification LED Light in Poco X2 | Notification LED in POCO X2 https://youtu.be/MlH-8UOodr0

April 26, 2020
How to Enable Hidden Notification LED Light in Poco X2 | Notification LED in POCO X2 https://youtu.be/MlH-8UOodr0