Skip to content

Commit

Permalink
Remove the Heroku log drain check
Browse files Browse the repository at this point in the history
We're moving this check. We currently have Problem Hub problems based on
the Biz Ops data for Heroku apps, e.g.
https://github.com/Financial-Times/problem-hub/blob/main/problemDefinitions/HerokuApps/herokuAppCustomerProductsMissingLogDrain.yaml

We may also add log drain health checks to cp-healthchecks if we
decide it's an issue. Generally though apps don't change that frequently
and problem hub is probably fine for this.
  • Loading branch information
rowanmanning committed Aug 20, 2024
1 parent 68e0b60 commit f344a33
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 151 deletions.
16 changes: 0 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"start": "dotcom-tool-kit run:local"
},
"dependencies": {
"@dotcom-reliability-kit/errors": "^3.0.1",
"@dotcom-reliability-kit/logger": "^3.0.3",
"@dotcom-reliability-kit/serialize-request": "^3.0.1",
"@financial-times/n-flags-client": "^15.0.0",
Expand Down
14 changes: 0 additions & 14 deletions src/lib/health-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

const logger = require('@dotcom-reliability-kit/logger');

const herokuLogDrainCheck = require('./heroku-log-drain-check');
const metricsHealthCheck = require('./metrics-healthcheck');
const supportedNodeJsVersionCheck = require('./supported-node-js-version-check');

Expand Down Expand Up @@ -37,19 +36,6 @@ module.exports = (app, options, meta) => {
supportedNodeJsVersionCheck(meta.name)
];

if (process.env.HEROKU_APP_ID) {
defaultChecks.push(herokuLogDrainCheck({
herokuAppId: process.env.HEROKU_APP_ID
}));
} else {
logger.warn({
event: 'N_EXPRESS_APP_MISSING_HEROKU_APP_ID',
message: `The ${options.systemCode} app is missing a HEROKU_APP_ID env var`,
systemName: options.healthChecksAppName || defaultAppName,
systemCode: options.systemCode
});
}

/** @type {Healthcheck[]} */
const healthChecks = options.healthChecks.concat(defaultChecks);

Expand Down
55 changes: 0 additions & 55 deletions src/lib/heroku-log-drain-check.js

This file was deleted.

51 changes: 0 additions & 51 deletions test/app/heroku-log-drain-check.test.js

This file was deleted.

14 changes: 0 additions & 14 deletions typings/n-express.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,6 @@ export interface ErrorRateHealthcheckOptions {
samplePeriod?: string;
}

export interface HerokuLogDrainHealthcheckOptions {
herokuAppId?: string;
}

interface NextHealthLogDrainStatus {
ok: boolean;
description: String;
}

export interface NextHealthLogDrainResponse {
herokuAppId: string;
status: NextHealthLogDrainStatus;
}

export interface AppContainer {
app: Express.Application;
meta: guessAppDetails.Options & {
Expand Down

0 comments on commit f344a33

Please sign in to comment.