peimanja / artifactory_exporter

JFrog Artifactory Prometheus Exporter written in Go
Apache License 2.0
141 stars 37 forks source link

Some metrics cannot be queried #93

Closed zio-pzl closed 1 year ago

zio-pzl commented 1 year ago

problem statement When I started the exporter, I found that some metrics were missing, as follows: artifactory_artifacts_created_1m artifactory_artifacts_downloaded_1m So the Grafana I configured has no monitoring data

In addition, I also failed to use --optional-metric, please help me to look at these problems image

other information Prometheus_exporter version:v1.11.0 Artifactory version:6.17.0

zio-pzl commented 1 year ago

The existing metrics are as follows: image

peimanja commented 1 year ago

hey @zio-pzl, artifactory_artifacts_created_1m and artifactory_artifacts_downloaded_1m are enabled by default. Set the log level to debug and provide me with logs and maybe find something in there.

the default timeout is 5s, try setting it up to higher value and see if that resolves your issue via --artifactory.timeout=15s flag or ARTI_TIMEOUT=15s environment variable.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.