Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Glances Added #679

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added templates/glances/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/glances/assets/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added templates/glances/assets/screenshot2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions templates/glances/index.ts
Original file line number Diff line number Diff line change
@@ -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 };
}
87 changes: 87 additions & 0 deletions templates/glances/meta.yaml
Original file line number Diff line number Diff line change
@@ -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