diff --git a/monitee/config/configuration.yml b/monitee/config/configuration.yml new file mode 100644 index 0000000..dd26ac7 --- /dev/null +++ b/monitee/config/configuration.yml @@ -0,0 +1,59 @@ +######################################### +### sys-API user configuration ### +######################################### +metricsConfig: + monitor: + interval: 45 + unit: SECONDS + history: + interval: 30 + unit: MINUTES + purging: + olderThan: 14 + unit: DAYS + purgeEvery: 1 + purgeEveryUnit: DAYS + cache: + enabled: false + duration: 5 + unit: SECONDS +user: + username: user + password: super-secret-password +windows: + enableOhmJniWrapper: true + eventLog: + enabled: true + serviceManagement: + enabled: true +linux: + journalLogs: + enabled: true + systemDaemonServiceManagement: + enabled: true +# web interface for running queries +graphQLPlayGround: + enabled: false +# docker management and metrics support +docker: + enabled: true +connectivityCheck: + enabled: true + address: https://ifconfig.me +updateCheck: + enabled: true + address: https://api.github.com + user: krillsson + repo: sys-api +# advertise service in local network for easier client setup +mDNS: + enabled: true +upnp: + enabled: true +forwardHttpToHttps: false +selfSignedCertificates: + enabled: true + ## automatically put external IP in CN + populateCN: true + ## automatically put internal IPs in SAN + populateSAN: true \ No newline at end of file diff --git a/monitee/docker-compose.yml b/monitee/docker-compose.yml new file mode 100644 index 0000000..6311189 --- /dev/null +++ b/monitee/docker-compose.yml @@ -0,0 +1,31 @@ +# https://monitee.app/get-started/ + +services: + sys-api: + container_name: sys-api + image: krillsson/sys-api:latest + mem_limit: 1g + cpus: 0.3 # al max 40% cpu + ports: + - 127.0.0.1:9999:8080 + pid: "host" + volumes: + # change "/path/to/*" point to a directory on your machine + - ./data:/data + - ./config:/config + # socket for docker management API. + - /var/run/docker.sock:/var/run/docker.sock + # to read device names from disks + - /run/udev:/run/udev:ro + # to control systemd + - /run/systemd:/run/systemd + # to read journal logs + - /etc/machine-id:/etc/machine-id:ro + - /run/systemd/journal/socket:/run/systemd/journal/socket:ro + - /run/log/journal:/run/log/journal:ro + # to allow sys-API access to read hdd's + # alternatively mount in each device you'd like to monitor + - /dev:/dev:ro + # same as above + - /srv:/srv:ro + restart: unless-stopped \ No newline at end of file