Skip to content

Commit

Permalink
Revert changes to prometheus_scraper.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Oct 17, 2024
1 parent 98a4ce3 commit 40df2a0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/shadowbox/infrastructure/prometheus_scraper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,10 @@ import * as path from 'path';

import * as logging from '../infrastructure/logging';

export interface QueryResultMetric {
[labelValue: string]: string;
}

export interface QueryResultData {
resultType: 'matrix' | 'vector' | 'scalar' | 'string';
result: Array<{
metric: QueryResultMetric;
metric: {[labelValue: string]: string};
value: [number, string];
}>;
}
Expand Down Expand Up @@ -105,7 +101,7 @@ async function spawnPrometheusSubprocess(
prometheusEndpoint: string
): Promise<child_process.ChildProcess> {
logging.info('======== Starting Prometheus ========');
logging.info(`${binaryFilename} ${processArgs.map((a) => `"${a}"`).join(' ')}`);
logging.info(`${binaryFilename} ${processArgs.map(a => `"${a}"`).join(' ')}`);
const runProcess = child_process.spawn(binaryFilename, processArgs);
runProcess.on('error', (error) => {
logging.error(`Error spawning Prometheus: ${error}`);
Expand Down

0 comments on commit 40df2a0

Please sign in to comment.