peimanja / artifactory_exporter

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

Support for Artifactory 7.9.1? #47

Closed grimmySwe closed 3 years ago

grimmySwe commented 3 years ago

From the logs of the exporter it seems to work:

level=debug ts=2020-10-30T10:57:36.117Z caller=utils.go:21 msg="Fetching http" path=http://localhost:8081/artifactory/api/system/license
level=debug ts=2020-10-30T10:58:36.117Z caller=system.go:66 msg="Fetching license stats"
level=debug ts=2020-10-30T10:58:36.117Z caller=utils.go:21 msg="Fetching http" path=http://localhost:8081/artifactory/api/system/license

In the exporter:

# HELP artifactory_exporter_total_api_errors Current total API errors.
# TYPE artifactory_exporter_total_api_errors counter
artifactory_exporter_total_api_errors 21
# HELP artifactory_exporter_total_scrapes Current total artifactory scrapes.
# TYPE artifactory_exporter_total_scrapes counter
artifactory_exporter_total_scrapes 21
# HELP artifactory_up Was the last scrape of artifactory successful.
# TYPE artifactory_up gauge
artifactory_up 0

And in JFrog Artifactory the access log shows success.

So has the API changed?

dpajin commented 3 years ago

I have tested the exporter version 1.9.0 against Artifactory versions 7.11.2 and 7.11.6 and it works okay.

peimanja commented 3 years ago

@grimmySwe please let me know if you are still experiencing issue running the exporter.