collectd is gone
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user