-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
level=ERROR msg="There was an issue calculating the value" metric=artifacts err="Could not recognise '' as multiplier" #139
Comments
Got around this by using latest tar.gz release which doesnt seem to have the same problem the docker image does an updated docker image would be appreciated. |
@mendesrawr can you please give the latest |
The error ["There was an issue calculating the value"] occurs in the following instances The the bug is not present building and running artifactory_exporter-v1.14.0-linux-amd64.tar.gz directly with Would it be possible push a new image using the following release which appears to not have any issues: Unable to find image 'peimanja/artifactory_exporter:canary' locally ./artifactory_exporter --artifactory.scrape-uri= --log.level=info docker run --env-file=password.txt -p 9531:9531 :latest --artifactory.scrape-uri= |
@mendesrawr as I wrote in #140 I hadn't thought about the case you came across. I'm sorry for inconvenience. |
Copying the use of re.FindStringSubmatch without a thorough understanding will backfire sooner or later. Thank @mendesrawr for the opportunity to learn.
@KacperPerschke looks like there are a lot of edge cases but let's see if we can catch them for now |
@peimanja @KacperPerschke Thank you so much the latest docker image works perfectly now. I really appreciate it. Later this week I'm going to try to replicate this build with a custom image. |
Hello, I was wondering if this is a bug or something I can quickly fix on my own I'm running this in a container with no issue until I noticed parsing errors from the api/storagesummary artifactory endpoint it was scraping. It seems to be having trouble parsing the last few json objects binariesSummary.
https://jfrog.com/help/r/jfrog-rest-apis/get-storage-summary-info
docker run --env-file=file -p 9531:9531 peimanja/artifactory_exporter:latest --artifactory.scrape-uri=https://artifacts.com/artifactory --log.level=error
time=2024-04-16T20:17:25.706Z level=ERROR msg="The string was not recognized as a known multiplier." artifactory.number.multiplier=""
time=2024-04-16T20:17:25.707Z level=ERROR msg="There was an issue calculating the value" metric=binaries err="Could not recognise '' as multiplier"
time=2024-04-16T20:17:25.707Z level=ERROR msg="The string was not recognized as a known multiplier." artifactory.number.multiplier=""
time=2024-04-16T20:17:25.707Z level=ERROR msg="There was an issue calculating the value" metric=artifacts err="Could not recognise '' as multiplier"
}
The text was updated successfully, but these errors were encountered: