Prometheus is an open-source monitoring system that is designed to collect and query metrics from various sources. It has become one of the most widely used monitoring systems and is widely adopted by companies and organizations worldwide. In this tutorial, we will show you how to install Prometheus on Fedora CoreOS latest.
Before proceeding with the installation, make sure the following prerequisites are met:
wget
command:wget https://github.com/prometheus/prometheus/releases/download/v2.30.3/prometheus-2.30.3.linux-amd64.tar.gz
tar -xvf prometheus-2.30.3.linux-amd64.tar.gz
/opt/prometheus
directory:sudo mv prometheus-2.30.3.linux-amd64 /opt/prometheus
/opt/prometheus
directory:cd /opt/prometheus
sudo nano prometheus.yml
job_name
for each target:global:
scrape_interval: 15s
scrape_configs:
- job_name: 'node'
static_configs:
- targets: ['localhost:9100']
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
In the above example, we are monitoring node
and prometheus
. Ensure that you edit the file to include the targets you wish to monitor.
/opt/prometheus
directory:cd /opt/prometheus
./prometheus --config.file=prometheus.yml
http://<your-server-ip>:9090/
to access the Prometheus web interface.In this tutorial, we learned how to install and configure Prometheus on Fedora CoreOS latest. We explained how to download and extract the Prometheus archive, how to configure the Prometheus configuration file, and how to run the Prometheus server. With Prometheus running, you can now start monitoring the targets you defined in the configuration file.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!