Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Metrics host url env config
Browse files Browse the repository at this point in the history
  • Loading branch information
leordev committed Jun 1, 2024
1 parent 911492a commit dd74281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions metrics-collector/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ GITHUB_TOKEN=<github-token>
SONATYPE_USERNAME=<sonatype-username>
SONATYPE_PASSWORD=<sonatype-username>

METRICS_SERVICE_APP_HOST_URL=http://localhost:3001/api/v1

DB_HOST=localhost
DB_PORT=5432
DB_USER=admin
Expand Down
2 changes: 1 addition & 1 deletion metrics-collector/src/post-metric.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const metricsServiceAppUrl = 'http://localhost:3001/api/v1' // TODO: change to env
const metricsServiceAppUrl = process.env.METRICS_SERVICE_APP_HOST_URL;

interface Labels {
[key: string]: string;
Expand Down

0 comments on commit dd74281

Please sign in to comment.