Comments (7)
Okay so I'm releasing v0.2.2 with the fix and then you can use this version instead of building it from source. I'll close this issue after that, if something like this would happen let me know.
from cosmos-exporter.
Hi there. I unfortunately cannot reproduce it as I don't have the fetchai fullnode, can you try the following?
- clone this repo
- in validator.go, replace this part:
validatorTokensGauge.With(prometheus.Labels{
"address": validator.Validator.OperatorAddress,
"moniker": validator.Validator.Description.Moniker,
"denom": Denom,
}).Set(float64(validator.Validator.Tokens.Int64()) / DenomCoefficient)
with the followiing
if value, err := strconv.ParseFloat(validator.Validator.Tokens.String(), 64); err != nil {
sublogger.Error().
Str("address", address).
Err(err).
Msg("Could not parse validator tokens")
} else {
validatorTokensGauge.With(prometheus.Labels{
"address": validator.Validator.OperatorAddress,
"moniker": validator.Validator.Description.Moniker,
"denom": Denom,
}).Set(value / DenomCoefficient)
}
- build the binary with
go build .
, this'll produce the output at./main
- try this version if it'll have the same issue
Let me know if this'll work @MatisseB
from cosmos-exporter.
Hi, thanks for the help @freak12techno !
It works for those lines of code but the same error is triggered further in validator.go at line 471 and sometimes line 576.
Maybe there is a need to change the value globally?
from cosmos-exporter.
Seems like the same issue but in other places, I’ll fix it there later today as well.
from cosmos-exporter.
@MatisseB okay I've pushed the version that should fix at least some of these panics, can you fetch the latest changes (with the commit from today), build the exporter from it and check if it panics? if everything's okay I'll release the new version with the fix
from cosmos-exporter.
@freak12techno all good for me, it works like charm.
Thanks a lot !
from cosmos-exporter.
Done. Thanks for helping!
from cosmos-exporter.
Related Issues (17)
- Evmos /metrics/validators not support HOT 3
- What should be used for the list of validators
- Invalid moniker causes comsos-exporter to crash
- Sifchain Integer Issue HOT 2
- panic: Int64() out of bound for Rebus HOT 2
- Pagination for QueryValidatorDelegationsRequest HOT 3
- Handle big size exponent
- [new feature req] add options for limiting delegation(and etc) count ( /validator endpooint)
- UTF8 moniker names HOT 1
- Service Crashes after some time
- /metric/validators net showing any results
- panic: Int64() out of bound for Cosmos SDK v0.46.10 HOT 1
- Empty reply for validators metrics HOT 1
- panic: runtime error: index out of range [0] with length 0 HOT 9
- When executing ./cosmos-exporter
- Kava /metrics/validator not working HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cosmos-exporter.