mirror of
https://github.com/chylex/Apache-Prometheus-Exporter.git
synced 2025-04-20 22:15:46 +02:00
Expose metrics web server port in Docker Compose example
This commit is contained in:
parent
8e7259b906
commit
ce6f345b6a
@ -12,9 +12,9 @@ This configuration will create a Docker volume for the logs, and the following c
|
||||
- **User** : `admin`
|
||||
- **Password** : `admin`
|
||||
3. **Prometheus** configured with the exporter's endpoint.
|
||||
4. **Exporter** built using the source code from this repository.
|
||||
4. **Exporter** built using the source code from this repository, with its metrics endpoint exposed as: http://localhost:2004/metrics
|
||||
|
||||
This example is not suitable for production. You can use it as inspiration, but you will have to modify it in order to persist container data and follow the latest security practices:
|
||||
This example is unsuitable for production. You can use it as inspiration, but you will have to modify it in order to persist container data and follow the latest security practices:
|
||||
|
||||
- Create Docker volumes for persistent storage of container data and configuration files
|
||||
- Create a dedicated user for each container instead of running as `root`
|
||||
|
@ -38,8 +38,8 @@ services:
|
||||
exporter:
|
||||
container_name: ape_dev_exporter
|
||||
build: "../"
|
||||
expose:
|
||||
- "9240"
|
||||
ports:
|
||||
- "127.0.0.1:2004:9240"
|
||||
volumes:
|
||||
- logs:/logs
|
||||
environment:
|
||||
|
Loading…
Reference in New Issue
Block a user