Recommend

Monitor Server ด้วย Prometheus | Grafana | Node Exporter

Monitor Server ด้วย Prometheus | Grafana | Node Exporter

Teerakorn BounoyFeb 9, 2024

การ Monitor Server ต้องใช้ Node Exporter เป็นตัวส่งข้อมูลมายัง Prometheus จากนั้นให้ Grafana ไป Connect Datasource จาก Prometheus เพื่อนำข้อมูลมาแสดงผลเป็น Dashboard * Source Folder…

Most Views

คลังความรู้

Monitor Server ด้วย Prometheus | Grafana | Node Exporter

Monitor Server ด้วย Prometheus | Grafana | Node Exporter

Teerakorn BounoyFeb 9, 20242 min read

การ Monitor Server ต้องใช้ Node Exporter เป็นตัวส่งข้อมูลมายัง Prometheus จากนั้นให้ Grafana ไป Connect Datasource จาก Prometheus เพื่อนำข้อมูลมาแสดงผลเป็น Dashboard * Source Folder [prometheus_grafana_node-exporter] 1. ติดตั้ง Prometheus Copy source ไฟล์ทั้งหมดไปวางใน /opt/prometheus_grafana แก้ไขไฟล์ prometheus.yml global: external_labels: monitor: test-monitor scrape_interval: 60s scrape_configs: – job_name: prometheus…

การติดตั้งและ Deploy VueJS บน Apache

การติดตั้งและ Deploy VueJS บน Apache

Teerakorn BounoyFeb 8, 20241 min read

1. Build ไฟล์เพื่อให้ไฟล์ที่ใช้งานใน folder /dist 2. ติดตั้ง Apache2 จากนั้นเปิด mod rewrite ด้วยคำสั่ง sudo a2enmod rewrite 3. แก้ไขไฟล์ /etc/apache2/apache2.conf โดยค้นหาข้อความ ‘/var/www’โดยเปลี่ยน “AllowOverride None” เป็น “AllowOverride All” 4. Restart apache2 โดยพิมพ์คำสั่ง systemctl restart apache2 5. เพิ่มไฟล์ .htaccess ใน folder ของโปรเจค RewriteEngine On…