Skip to content

Commit

Permalink
Export watcher repo URL in metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Jun 6, 2024
1 parent 1b48c91 commit 189df4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/codegen/src/templates/package-template.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/cerc-io/watcher-ts.git"
"url": "https://github.com/cerc-io/watcher-ts.git"
},
"author": "",
"license": "AGPL-3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/util/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ const registerWatcherInfoMetrics = async (): Promise<void> => {
const watcherInfoMetric = new client.Gauge({
name: 'watcher_info',
help: 'Watcher info (static)',
labelNames: ['version', 'commitHash']
labelNames: ['repo', 'version', 'commitHash']
});

watcherInfoMetric.set({ version: pkgJson.version, commitHash: pkgJson.commitHash }, 1);
watcherInfoMetric.set({ repo: pkgJson.repository?.url, version: pkgJson.version, commitHash: pkgJson.commitHash }, 1);
};

0 comments on commit 189df4a

Please sign in to comment.