Skip to content

Commit

Permalink
update default port to 10030
Browse files Browse the repository at this point in the history
  • Loading branch information
wagpa committed Jan 8, 2025
1 parent 6d0f52c commit 729aa21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN set -eux \
FROM scratch

# declare our metrics port
EXPOSE 8080
EXPOSE 10030

# copy the raw binary into the new image
COPY --from=builder "/usr/src/dcexport/target/release/dcexport" "/dcexport"
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ is configured using the cli or environment variables.
|---------------|---------------|--------------------------------------------------------------------------------------------------------|
| DISCORD_TOKEN | (required) | The token of the Discord bot that is on the guilds that should be exported. |
| LOG_LEVEL | dcexport=info | The log filter configuration of the application. See [here][tracing-log-example] for more information. |
| ADDRESS | 0.0.0.0:8080 | The metrics server address. |
| ADDRESS | 0.0.0.0:10030 | The metrics server address. |

#### From Binaries

Expand All @@ -63,7 +63,7 @@ Those images are hardened and provide the optimal environment to execute dcexpor
```shell
docker run --rm \
-e DISCORD_TOKEN=<your-token> \
-p 8080/tcp \
-p 10030/tcp \
--name dcexport \
ghcr.io/scrayosnet/dcexport:latest
```
Expand All @@ -79,7 +79,7 @@ To verify whether everything works as expected, we can invoke the following comm
reported result:

```shell
curl --request GET -sL --url 'http://localhost:8080/'
curl --request GET -sL --url 'http://localhost:10030/'
```

If the result shows any metrics, dcexport is now setup successfully and can be used to track Discord guilds.
Expand All @@ -103,7 +103,7 @@ scrape_configs:
scheme: http
static_configs:
- targets:
- dcexport:8080
- dcexport:10030
```
#### CRD-based Configuration
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tracing_subscriber::prelude::*;
use tracing_subscriber::EnvFilter;

/// The default address (port) of the application metrics server.
pub const DEFAULT_ADDRESS: &str = "0.0.0.0:8080";
pub const DEFAULT_ADDRESS: &str = "0.0.0.0:10030";

/// The default log level of the application.
pub const DEFAULT_LOG_LEVEL: &str = "dcexport=info";
Expand Down

0 comments on commit 729aa21

Please sign in to comment.