Skip to content

Commit 305eb28

Browse files
committed
example changes
example dhi: exporter changes and readme update
1 parent 4281fd3 commit 305eb28

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

examples/fpm-nginx-dhi/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ If you don't want to use it, make adjustments in the NGINX configuration file in
1616
* **Important: To pull Images from DHI you must login with your docker account.**
1717
* (Sourcecode from DH-Images can found here [https://github.com/docker-hardened-images](https://github.com/docker-hardened-images/catalog/tree/main/image).)
1818
* DHI images (mostly) have no shell and no entrypoint.
19+
* Images build for AMD64 (x86_64) and ARM64.
1920

2021
## Steps
2122
1. Important: Login to dhi.io (`docker login dhi.io`) and optional to docker.io (`docker login`) on your server, if not already done.

examples/fpm-nginx-dhi/docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ services:
9999
# - --web.telemetry-path=/metrics
100100
# - --mysqld.address=wsc-db:3306
101101
# - --mysqld.username=${MYSQL_EXPORTER_USER}
102+
# - --log.level=info
102103
# environment:
103104
# MYSQLD_EXPORTER_PASSWORD: ${MYSQL_EXPORTER_PASSWORD}
104105
# ports:
@@ -115,6 +116,27 @@ services:
115116
# # docker exec -it wsc-db bash -c "mysql -uroot -e \"CREATE USER '${MYSQL_EXPORTER_USER}'@'%' IDENTIFIED BY '${MYSQL_EXPORTER_PASSWORD}'; GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO '${MYSQL_EXPORTER_USER}'@'%';\""
116117
# # Test: curl http://localhost:9104/metrics
117118

119+
# # https://dhi.io/catalog/nginx-exporter
120+
# # (Docs: https://github.com/nginx/nginx-prometheus-exporter)
121+
# wsc-nginx-exporter:
122+
# image: dhi.io/nginx-exporter:1.5-debian13
123+
# container_name: wsc-nginx-exporter
124+
# restart: unless-stopped
125+
# command:
126+
# - --web.listen-address=:9113
127+
# - --web.telemetry-path=/metrics
128+
# - --nginx.scrape-uri=http://wsc-nginx:8080/nginx_status
129+
# - --log.level=info
130+
# ports:
131+
# - 127.0.0.1:9113:9113/tcp
132+
# networks:
133+
# - wsc-net
134+
# #- monitoring-net
135+
# depends_on:
136+
# wsc-nginx:
137+
# condition: service_started
138+
# # Test: curl http://127.0.0.1:9113/metrics
139+
118140
networks:
119141
wsc-net:
120142
name: wsc-net

0 commit comments

Comments
 (0)