diff --git a/src/target.ts b/src/target.ts index 2c3fc53..5eb8852 100644 --- a/src/target.ts +++ b/src/target.ts @@ -103,7 +103,9 @@ export class Target { } private getFilename(extension) { - return `${this.from}-${this.to}.${extension}`; + // TODO: use something unique instead of measurement in filename + // as measurement field exists only in influxDB metric + return `${this.metric.targets[0].measurement}.${this.from}-${this.to}.${extension}`; } private getFilePath(extension) {