-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INF-266 reroute nginx paths to new prometheus exporters (new exporter…
… images included) (#3959)
- Loading branch information
1 parent
e0b7ce2
commit c677570
Showing
6 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Manually built and pushed to https://hub.docker.com/r/audius/exporter-postgres | ||
FROM quay.io/prometheuscommunity/postgres-exporter:v0.10.1 | ||
|
||
COPY docker-entrypoint.sh /bin/docker-entrypoint.sh | ||
ENTRYPOINT [ "/bin/docker-entrypoint.sh" ] | ||
CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
# default case for discovery provider | ||
export DATA_SOURCE_NAME="${audius_db_url}?sslmode=disable" | ||
|
||
if [ "$*" = "--read-replica" ]; then | ||
export DATA_SOURCE_NAME="${audius_db_url_read_replica}?sslmode=disable" | ||
fi | ||
|
||
if [ "$*" = "--creator-node" ]; then | ||
export DATA_SOURCE_NAME=${dbUrl}?sslmode=disable | ||
fi | ||
|
||
if [ "$*" = "--identity-service" ]; then | ||
export DATA_SOURCE_NAME=${dbUrl}?sslmode=disable | ||
fi | ||
|
||
# don't expose IP addresses, by overwriting the server label | ||
/bin/postgres_exporter --constantLabels server=server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Manually built and pushed to https://hub.docker.com/r/audius/exporter-redis | ||
FROM quay.io/oliver006/redis_exporter:v1.44.0-alpine | ||
|
||
COPY docker-entrypoint.sh /docker-entrypoint.sh | ||
ENTRYPOINT [ "/docker-entrypoint.sh" ] | ||
CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
# default case for discovery provider | ||
export REDIS_ADDR=${audius_redis_url} | ||
|
||
if [ "$*" = "--creator-node" ]; then | ||
export REDIS_ADDR=redis://${redisHost}:${redisPort} | ||
fi | ||
|
||
if [ "$*" = "--identity-service" ]; then | ||
export REDIS_ADDR=redis://${redisHost}:${redisPort} | ||
fi | ||
|
||
/redis_exporter |