Prometheus env question - docker (compose)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.5k
- Forks
- 178
- Avg merge
- 15d 9h
- Merged PRs (30d)
- 2
Description
Hello, I have a quick question, which may not even be a bug but I want to make sure.
When I set the OPTIONS prometheus environment, restic indicates that it is not recognized.
Do I have to build the restic server myself for this? but how do I get Prometheus support in it?
So in other words, there isn't prometheus in the docker image by default when I deploy it like this?
services:
restic:
container_name: restic
image: restic/rest-server
ports:
- 8000:8000
environment:
- DISABLE_AUTHENTICATION=true
- OPTIONS=--prometheus
volumes:
- /mnt/exdisk/restic:/data
Also other variants of OPTIONS do not work, so for instance when I:
- OPTIONS="--prometheus"
or:
- "OPTIONS=--prometheus"
I'm using the latest version of Restic and Restic rest server.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the Docker Compose configuration with OPTIONS=--prometheus, then inspect how the restic/rest-server image receives and handles that environment variable. Done means determining whether the image supports the option and documenting or correcting the deployment behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, go
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100