diff --git a/templates/glances/assets/logo.png b/templates/glances/assets/logo.png new file mode 100644 index 00000000..f8556419 Binary files /dev/null and b/templates/glances/assets/logo.png differ diff --git a/templates/glances/assets/screenshot1.png b/templates/glances/assets/screenshot1.png new file mode 100644 index 00000000..418ce5b2 Binary files /dev/null and b/templates/glances/assets/screenshot1.png differ diff --git a/templates/glances/assets/screenshot2.png b/templates/glances/assets/screenshot2.png new file mode 100644 index 00000000..60684cd5 Binary files /dev/null and b/templates/glances/assets/screenshot2.png differ diff --git a/templates/glances/index.ts b/templates/glances/index.ts new file mode 100644 index 00000000..06fe7e83 --- /dev/null +++ b/templates/glances/index.ts @@ -0,0 +1,33 @@ +import { Output, Services } from "~templates-utils"; +import { Input } from "./meta"; + +export function generate(input: Input): Output { + const services: Services = []; + + services.push({ + type: "app", + data: { + serviceName: input.appServiceName, + source: { + type: "image", + image: input.appServiceImage, + }, + env: [`GLANCES_OPT=-w`].join("\n"), + domains: [ + { + host: "$(EASYPANEL_DOMAIN)", + port: 61208, + }, + ], + mounts: [ + { + type: "bind", + hostPath: "/var/run/docker.sock", + mountPath: "/var/run/docker.sock", + }, + ], + }, + }); + + return { services }; +} diff --git a/templates/glances/meta.yaml b/templates/glances/meta.yaml new file mode 100644 index 00000000..d3893919 --- /dev/null +++ b/templates/glances/meta.yaml @@ -0,0 +1,87 @@ +name: Glances +description: + Glances is a cross-platform, real-time system monitoring tool designed to + offer a unified view of your system's performance and health. It provides an + intuitive interface that displays critical information, including CPU usage, + memory, disk I/O, network activity, and more. Built to work seamlessly on + Linux, macOS, Windows, and ARM-based systems, Glances is highly extensible + with plugins and supports remote monitoring via a web-based UI or API. With + its open-source foundation, Glances ensures transparency and flexibility, + making it a perfect choice for individuals and teams looking for a lightweight + yet powerful monitoring solution. +instructions: + To use Glances with Podman, you can mount a bind volume + "/run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock". +changeLog: + - date: 2024-12-22 + description: First Release +links: + - label: Website + url: https://nicolargo.github.io/glances/ + - label: Documentation + url: https://glances.readthedocs.io/en/stable/ + - label: GitHub + url: https://github.com/nicolargo/glances +contributors: + - name: Ahson Shaikh + url: https://github.com/Ahson-Shaikh +schema: + type: object + required: + - appServiceName + - appServiceImage + properties: + appServiceName: + type: string + title: App Service Name + default: glances + appServiceImage: + type: string + title: App Service Image + default: nicolargo/glances:latest-full +benefits: + - title: Real-Time System Monitoring + description: + Glances provides a detailed and real-time overview of system performance + metrics, ensuring you stay informed about your system's health. + - title: Cross-Platform Support + description: + Glances works seamlessly on Linux, macOS, Windows, and ARM-based systems, + offering flexibility for diverse environments. + - title: Extensible and Customizable + description: + With plugins and configuration options, Glances can be tailored to suit + your specific monitoring needs. + - title: Remote Monitoring + description: + Monitor systems remotely using the web interface, API, or third-party + integrations. + - title: Open Source and Transparent + description: + Glances is open source, ensuring users can audit, modify, and extend the + tool as needed. +features: + - title: Unified Monitoring Dashboard + description: + Displays key performance metrics, including CPU, memory, disk usage, + network traffic, and more, in a single view. + - title: Remote Access + description: Access Glances remotely using its web-based UI or RESTful API. + - title: Threshold-Based Alerts + description: + Configure alerts based on thresholds to get notified about critical system + issues in real-time. + - title: Plugin Support + description: + Extend functionality with plugins for additional metrics or integrations + with other tools. + - title: Multi-Platform Integration + description: + Integrates with tools like Docker, Podman, and Kubernetes for container + monitoring. +tags: + - System Monitoring + - Real-Time Metrics + - Open Source + - Cross-Platform + - Extensible