collectd is gone

This commit is contained in:
Girish Ramakrishnan
2025-11-24 13:22:56 +01:00
parent 9c9e2c6a62
commit de75ae5b9e
5 changed files with 2 additions and 15 deletions
-10
View File
@@ -1781,7 +1781,6 @@ async function startGraphite(existingInfra) {
const readOnly = !serviceConfig.recoveryMode ? '--read-only' : '';
const cmd = serviceConfig.recoveryMode ? '/bin/bash -c \'echo "Debug mode. Sleeping" && sleep infinity\'' : '';
// port 2003 is used by collectd
const runCmd = `docker run --restart=unless-stopped -d --name=graphite \
--hostname graphite \
--net cloudron \
@@ -1793,7 +1792,6 @@ async function startGraphite(existingInfra) {
-m ${memoryLimit} \
--memory-swap -1 \
--ip ${constants.GRAPHITE_SERVICE_IPv4} \
-p 127.0.0.1:2003:2003 \
-v ${paths.PLATFORM_DATA_DIR}/graphite:/var/lib/graphite \
--label isCloudronManaged=true \
${readOnly} -v /tmp -v /run ${image} ${cmd}`;
@@ -1808,9 +1806,6 @@ async function startGraphite(existingInfra) {
await shell.bash(runCmd, { encoding: 'utf8' });
if (existingInfra.version !== 'none' && existingInfra.images.graphite !== image) await docker.deleteImage(existingInfra.images.graphite);
// restart collectd to get the disk stats after graphite starts. currently, there is no way to do graphite health check
setTimeout(async () => await safe(shell.sudo([ RESTART_SERVICE_CMD, 'collectd' ], {})), 60000);
}
async function setupProxyAuth(app, options) {
@@ -2123,11 +2118,6 @@ async function statusGraphite() {
async function restartGraphite() {
await docker.restartContainer('graphite');
setTimeout(async () => {
const [error] = await safe(shell.sudo([ RESTART_SERVICE_CMD, 'collectd' ], {}));
if (error) debug(`restartGraphite: error restarting collected. ${error.message}`);
}, 60000);
}
async function teardownOauth(app, options) {