Panduan Menyiapkan Node Exporter Kunjungi website prometheus untuk melihat versi node exporter yang tersedia https://prometheus.io/download/#node_exporter
Buat user
sudo useradd --no-create-home --shell /bin/false node_exporter Unduh, ekstrak, dan pasang node exporter wget https://github.com/prometheus/node_exporter/releases/download/v1.2.2/node_exporter-1.2.2.linux-amd64.tar.gz tar xf node_exporter-1.2.2.linux-amd64.tar.gz sudo cp node_exporter-1.2.2.linux-amd64/node_exporter /usr/local/bin/node_exporter Buat file servis node_exporter sudo bash -c 'cat<<EOF > /etc/systemd/system/node_exporter.service [Unit] Description=Node Exporter Wants=network-online.target After=network-online.target [Service] User=node_exporter Group=node_exporter Type=simple ExecStart=/usr/local/bin/node_exporter [Install] WantedBy=multi-user.target EOF' Jalankan servis node_exporter sudo systemctl enable --now node_exporter sudo systemctl status node_exporter Tambahkan konfigurasi pada prometheus....
Prasyarat OpenStack terinstall Panduan Buat user openstack-exporter useradd --no-create-home --shell /bin/false openstack-exporter Buat file konfigurasi mkdir /etc/openstack/ cat<<EOF > /etc/openstack/clouds.yaml clouds: default: region_name: <region_name> identity_api_version: 3 identity_interface: <endpoint_interface> # admin/internal/public auth: username: <username> password: <password> project_name: <project_name> project_domain_name: <project_domain_name> project_domain_id: <project_domain_id> user_domain_name: <user_domain_name> auth_url: https://<keystone_endpoint>:<keystone_port>/v3 verify: false EOF Buat file systemd cat<<EOF > /etc/systemd/system/openstack-exporter.service [Unit] Description=OpenStack Exporter OPEX Wants=network-online.target After=network-online.target [Service] User=openstack-exporter Group=openstack-exporter Type=simple ExecStart=openstack-exporter Surabaya [Install] WantedBy=multi-user....
Prasyarat Docker Git Panduan Clone repository ceph_exporter git clone https://github.com/digitalocean/ceph_exporter.git Buat container image cd ceph_exporter/ docker build -t digitalocean/ceph_exporter . Buat keyring untuk ceph_exporter Lakukan dari host yang memiliki ceph.conf dan ceph.client.admin.keyring untuk melakukan administrasi user ceph auth add client.ceph_exporter mon 'allow r' mgr 'allow r' osd 'allow r' mds 'allow r' ceph auth get client.ceph_exporter -o /etc/ceph/ceph.client.ceph_exporter.keyring # Salin keyring ke monitoring node scp /etc/ceph/{ceph....
Panduan RHEL/CentOS/Rocky Menyiapkan repository grafana sudo bash -c 'cat<<EOF > /etc/yum.repos.d/grafana.repo [grafana] name=grafana baseurl=https://packages.grafana.com/oss/rpm repo_gpgcheck=1 enabled=1 gpgcheck=1 gpgkey=https://packages.grafana.com/gpg.key sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt EOF Pasang grafana
yum sudo yum install -y grafana dnf sudo dnf install -y grafana Jalankan dan aktifkan servis grafana
sudo systemctl daemon-reload sudo systemctl enable --now grafana-server Debian/Ubuntu Menyiapkan repository grafana # Menambahkan gpg key wget -q -O - https://packages....
Panduan Buat user prometheus sudo useradd --no-create-home --shell /bin/false prometheus Unduh dan pasang prometheus wget https://github.com/prometheus/prometheus/releases/download/v2.30.0/prometheus-2.30.0.linux-amd64.tar.gz tar xf prometheus-2.30.0.linux-amd64.tar.gz sudo cp prometheus-2.30.0.linux-amd64/prometheus /usr/local/bin/prometheus Buat konfigurasi prometheus sudo mkdir /etc/prometheus sudo bash -c 'cat <<EOF > /etc/prometheus/prometheus.yml global: scrape_interval: 15s evaluation_interval: 15s scrape_configs: - job_name: 'prometheus' static_configs: - targets: - localhost:9090 EOF' Buat file systemd untuk prometheus sudo mkdir /var/lib/prometheus sudo chown prometheus:prometheus /var/lib/prometheus sudo bash -c 'cat<<EOF > /etc/systemd/system/prometheus....