mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.26k stars 239 forks source link

Latest Snap Package Unable to Open Config file #661

Open abhinavDhulipala opened 1 year ago

abhinavDhulipala commented 1 year ago

Prototyped the exporter with a docker container. I loved it and determined that it was worth the install, however when trying to use the snap package I get the following.

gitlab-ci-pipelines-exporter run --config /opt/glab_pipeline_exporter/config.yml
ERRO[0000]                                               error="open /opt/glab_pipeline_exporter/config.yml: no such file or directory"

Despite that file clearly existing...

stat /opt/glab_pipeline_exporter/config.yml 
  File: /opt/glab_pipeline_exporter/config.yml
  Size: 428         Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d    Inode: 3412338     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-06-02 13:22:17.806045687 -0700
Modify: 2023-06-02 13:22:15.994044717 -0700
Change: 2023-06-02 13:22:15.998044719 -0700
 Birth: -

I tried the same thing with an unprivileged user and got the same result

Device info:

gitlab-ci-pipelines-exporter --version
    gitlab-ci-pipelines-exporter version 0.5.4
lsb_release -a
LSB Version:    core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:    20.04
Codename:   focal

Appreciate the effort on this exporter, it's really great and an inspiration for improving my own exporters. Let me know if you need any other device info.