-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1871 from input-output-hk/jpraynaud/1826-mithril-…
…nodes-footprint Monitor Mithril nodes footprint
- Loading branch information
Showing
8 changed files
with
100 additions
and
1 deletion.
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
29 changes: 29 additions & 0 deletions
29
mithril-infra/assets/docker/prometheus/disk_usage_exporter/Dockerfile
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,29 @@ | ||
ARG DOCKER_IMAGE_FROM=debian:11-slim | ||
FROM $DOCKER_IMAGE_FROM | ||
|
||
# Create appuser | ||
RUN adduser --no-create-home --disabled-password appuser | ||
|
||
# Precreate workdir | ||
RUN mkdir -p /app/bin | ||
|
||
# Upgrade | ||
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
#Workdir | ||
WORKDIR /app/ | ||
|
||
## Download Disk usage exporter | ||
ARG DISK_USAGE_EXPORTER_VERSION=0.6.0 | ||
ARG DISK_USAGE_EXPORTER_URL=https://github.com/dundee/disk_usage_exporter/releases/download/v$DISK_USAGE_EXPORTER_VERSION/disk_usage_exporter_linux_386.tgz | ||
RUN wget $DISK_USAGE_EXPORTER_URL \ | ||
&& tar xzf disk_usage_exporter_linux_386.tgz \ | ||
&& chmod u+x disk_usage_exporter_linux_386 \ | ||
&& mv disk_usage_exporter_linux_386 /app/bin/disk_usage_exporter \ | ||
&& rm -f disk_usage_exporter_linux_386.tgz | ||
|
||
# Use an unprivileged user | ||
USER appuser | ||
|
||
# Run the executable | ||
ENTRYPOINT ["/app/bin/disk_usage_exporter"] |
2 changes: 2 additions & 0 deletions
2
mithril-infra/assets/docker/prometheus/disk_usage_exporter/disk_usage_exporter-base.yml
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,2 @@ | ||
multi-paths: | ||
/data/mithril-aggregator/mithril: 1 |
8 changes: 8 additions & 0 deletions
8
mithril-infra/assets/docker/prometheus/process_exporter/process.yml
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,8 @@ | ||
process_names: | ||
- comm: | ||
- cardano-node | ||
- mithril-aggregator | ||
- mithril-aggrega | ||
- mithril-client | ||
- mithril-signer | ||
- mithril-relay |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2.27 | ||
0.2.28 |
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