Closed david-loe closed 2 years ago
@david-loe Please refer https://github.com/peimanja/artifactory_exporter/issues/65
You are sure there are no errors in the logs ? I see the artifactory_exporter_total_api_errors 1
that normally means there was an error and it should be logged
I am sure that i didn't seen error from exporter logs, I seen license related error when i ran exporter image as docker like https://github.com/peimanja/artifactory_exporter#docker, then uploaded license then it got fixed, Even now I am getting artifactory_exporter_total_api_errors 3 ( https://github.com/peimanja/artifactory_exporter/issues/65#issuecomment-979010361 ) but it's working fine.
There is NO error, I've posted the complete log..
https://MYADRESS/artifactory/api/system/license
gives me the following response
{
"type" : "Commercial",
"validThrough" : "***",
"licensedTo" : "***"
}
So I don't think it's a license issue.
I believe the proxy is the issue, bc on the local instance of artifactory it works. Maybe the exporter is not able to handle a proxy.
I think that you should set the ip when you run the exporter .like this:
docker run --env-file=/usr/local/etc/artifactory-exporter/main.env -p 9531:9531 peimanja/artifactory_exporter:latest --l.level=debug --artifactory.scrape-uri="http://192.168.58.150:8081/artifactory"
dockers localhost is container
s,not server`s
Have had the same issue. The problem was in k8s coredns configuration. Exporter in container just could't resolve artifactory's ip address from its name.
Maybe it worth to make more clear full output in log messages. We've got a root cause after docker-image rebuilding in aim to access containers shell and curl. Can bw much more easy to investigate if exporter will be able to say it can't resolve or reach artifactory address, not only 2 poor lines about licenses like topic-starter posted:
Fetching http" path=https://MYADRESS/artifactory/api/system/license
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.
Overview of the Issue
I can not scrape an artifactory instance over the internet. Using docker in a corporate environment, behind a proxy (docker proxy is setup this way)
Not even an error shows up..
Logs
.env
localhost:9531/metrics