mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
* metrics.{sh,cfg}: Implement ncp-app for prometheus (system) metrics
letsencrypts.sh, nc-nextcloud.sh, nextcloud.conf.sh: Introduce templating/generator concept to allow multiple ncp apps to edit the same file without conflicts
library.sh: Add convenience function find_app_param
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* letsencrypt.sh: Remove commented code
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.cfg: Deactivate by default
- Add title, description and remove TODO entries
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.sh: Restart apache after enabling proxy_http
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* update.sh: Update ncp-templates directory during updates
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* update.sh: Copy ncp-templates directory, not just its content
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.sh,update.sh: Disable metrics in docker for now
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.sh: Disable prometheus-node-exporter via systemctl
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.sh: Move apache mod configuration to updates
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.cfg: Remove invalid parameter type
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.sh: Create /etc/default/prometheus-node-exporter via heredoc
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* nextcloud.conf.sh: Prevent template parsing error if metrics.sh is disabled (i.e. on docker)
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* metrics.cfg: Add info directing users to my preconfigured ncp dashboard
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* Various fixes
- metrics.sh: Fix is_active function always returning 1
- metrics.sh: Fix apache2 reload potentially interrupting web ui
- nc-nextcloud.sh: exit if nextcloud.conf templating fails
- various readability and code style improvements
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* letsencrypt.sh: Use consistent return codes in tmpl_letsencrypt_domain
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* nextcloud.conf.sh: Remove obsolete return code escape
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* nextcloud.conf.sh: Ensure that the snakeoil self-signed cert exists before enabling it
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
* updates/1.36.4.sh: Reload apache in the background instead of restarting it blockingly
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
29 lines
849 B
INI
29 lines
849 B
INI
{
|
|
"id": "metrics",
|
|
"name": "System Metrics, that can be collected by an external server",
|
|
"title": "System Metrics",
|
|
"description": "Prometheus (https://prometheus.io) compatible metrics for things like, CPU/memory/disk usage etc.",
|
|
"info": "In order to use these metrics, you will need to setup at least an external Prometheus instance. You can find a quick and easy way to start at https://github.com/theCalcaholic/ncp-monitoring-dashboard",
|
|
"infotitle": "External service required",
|
|
"params": [
|
|
{
|
|
"id": "ACTIVE",
|
|
"name": "Active",
|
|
"value": "no",
|
|
"type": "bool"
|
|
},
|
|
{
|
|
"id": "USER",
|
|
"name": "Metrics User",
|
|
"value": "metrics",
|
|
"suggest": "metrics"
|
|
},
|
|
{
|
|
"id": "PASSWORD",
|
|
"name": "Metrics Password",
|
|
"value": "",
|
|
"type": "password"
|
|
}
|
|
]
|
|
}
|