- Permasalahan plus Curhat

Bukannya ga mau bikin ELK stack buat monitoring log tapi males, masih bisa pake docker logs, kerjaan numpuk, gaji UMR resources nya ga ada.


- Solusi

Tapi jangan berkecil hati, bisa coba ELK stack tanpa harus setup si ELK, yaitu dengan menggunakan Sematext

  1. Pertama daftar dulu, pake email kerja ya

  2. Masuk ke menu Discovery->Agent Installation. Silahkan ikuti caranya, hanya saja ada beberapa hal yang perlu di ubah di settingan docker-compose.yml nya (saya pakai di docker swarm)

version: '3.3'

services:
  st-agent:
    image: sematext/agent:latest
    environment:
      INFRA_TOKEN: TOKENANDA
      REGION: US
    deploy:
      mode: global
      restart_policy:
        condition: any
      resources:
        limits:
          memory: 512M
    volumes:
      - type: bind
        source: /
        target: /hostfs
        read_only: true
      - type: bind
        source: /etc/passwd
        target: /etc/passwd
        read_only: true
      - type: bind
        source: /etc/group
        target: /etc/group
        read_only: true
      - type: bind
        source: /var/run
        target: /var/run/
      - type: bind
        source: /sys/kernel/debug
        target: /sys/kernel/debug
      - type: bind
        source: /sys
        target: /host/sys
        read_only: true
      - type: bind
        source: /dev
        target: /hostfs/dev
        read_only: true
networks:
  st-agent-net:
    driver: overlay
    attachable: true
  1. Jalanin docker stack deploy -c compose.yml st-agent

Bagus dan Mudah Digunakan

Bagus dan Mudah Digunakan

List Docker di Server

List Docker di Server

Bisa Bikin Alert Juga Loh!

Bisa Bikin Alert Juga Loh!