I am trying to run pydio cells following this documentation page
Running a Cells container behind a Traefik reverse proxy | Pydio. I took the first example and added prometheus as in the “live environment” section. It seems to run fine but when I check
/prometheus/targets they all fail with something like
Get "http://127.0.0.1:41645/metrics/77cb655a-7a50-4f2a-a5d4-58af7f5c6f5c": dial tcp 127.0.0.1:41645: connect: connection refused
Which makes sense because in
➜ cat ./metrics/prom_clients.json | jq
the target address is always
127.0.0.1, which is not accessible from the prometheus container. I guess replacing it with the name of the docker-compose service could do the trick, is there a config that I missed for this?
Thanks in advance for your help!
@batonycle and welcome
You are indeed right, the conf described in the doc is not correct.
For this kind of setup we cannot use “file_scraping” but rather “http scrapping”.
We have introduced this recently in cells. It is still experimental but we use it massively in our tests / validations setups.
I have updated the doc, but it is not yet pushed to the web server, you can yet find it here:
This file has been truncated.
In this tutorial, we explain how to configure a [Traefik v2](https://doc.traefik.io/traefik/v2.0) reverse proxy for your Cells Docker container and what settings are the most important to change.
Traefik v2 is a very efficient Go reverse proxy designed to perfectly integrate with Docker and Kubernetes.
For the purpose of this deployment, we use `docker-compose`: it offers a simple way to visualize the full stack deployment under a single file.
## Quick start on localhost
Let us now if some things are still unclear or not yet correct.
thank you for the response and for updating the docs!
I will test this and let you know if I manage to make it work.
All good I finally get my metrics!
I just had to modify the port in
prom.yml to 8080 because I use the cells image from
linuxserver.io (need the arm64 image for my raspberry pi)