Skip to content

Commit

Permalink
fix: added missing instance key in pushgateway URL (#9)
Browse files Browse the repository at this point in the history
Co-authored-by: alexander <[email protected]>
  • Loading branch information
alexanderGalushka and alexander-eng authored Nov 23, 2020
1 parent fba332a commit c2454bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pushgateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class PushGateway {
this.protocol = protocol;
this.url = `${this.protocol}://${this.hostname}/metrics/job/${this.job}`
if (instance != undefined && instance != "") {
this.url = `${this.url}/${instance}`
this.url = `${this.url}/instance/${instance}`
}
}

Expand Down

0 comments on commit c2454bf

Please sign in to comment.