Skip to content

Unable to run pve-exporter #324

Open
@Teacup42

Description

@Teacup42

When trying to run the image with a mounted configuration file and published port in docker I get an error:

The command I'm using:

sudo docker run --init --name prometheus-pve-exporter -d -p 0.0.0.0:9221:9221 -v /etc/pve/pve.yml:/etc/prometheus/pve.yml prompve/prometheus-pve-exporter

The error I get:

Traceback (most recent call last):
File "/opt/prometheus-pve-exporter/bin/pve_exporter", line 8, in
sys.exit(main())
^^^^^^
File "/opt/prometheus-pve-exporter/lib/python3.12/site-packages/pve_exporter/cli.py", line 84, in main
with open(params.config_file, encoding='utf-8') as handle:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
IsADirectoryError: [Errno 21] Is a directory: '/etc/prometheus/pve.yml'

What could be the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions