@ -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) {