Skip to content

Commit 431e1e4

Browse files
committed
Fix timestamp in OpenMetrics
1 parent 1332b50 commit 431e1e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export namespace MetricsExporter {
1111
const { enableTimestamps = true, includeHelp = true, portfolioLabels = {} } = options;
1212

1313
const lines: string[] = [];
14-
const timestamp = Date.now();
14+
const timestamp = Date.now() / 1000;
1515

1616
// Group metrics by owner first
1717
const metricsByOwner = new Map<string, AssetMetrics[]>();

0 commit comments

Comments
 (0)