Manuel Rüger
Manuel Rüger
Same issues on Gentoo with ruby20 and ruby21. yes: standard output: Broken pipe yes: write error /bin/sh: 8: Bad file descriptor 1) Failure: ForkSpawnTest#test_explicitly_passing_an_fd_as_open [/var/tmp/portage/dev-ruby/posix-spawn-0.3.8/work/ruby21/posix-spawn-0.3.8/test/test_spawn.rb:185]: expected but was . 2)...
@sstephenson ping?
I don't think that it might work as the RHS needs to be numeric. https://prometheus.io/docs/practices/naming/ ``` temperature_celsius{location="Berlin"} 28.9 ``` There's a python client library that probably is the best approach...
Forecast makes sense as well. Non-numeric fields can be exported as dimensions. ``` "current_condition": [ { "FeelsLikeC": "21", "FeelsLikeF": "70", "cloudcover": "0", "humidity": "31", "localObsDateTime": "2020-05-22 11:44 AM", "observation_time": "09:44...
Thanks a lot for the initial implementation! I've sent in https://github.com/chubin/wttr.in/pull/468 What I would suggest is to make "EXPORTED_FIELDS" a map to comply with prometheus-style metric names: https://prometheus.io/docs/practices/naming/#metric-names _hour in...
Can confirm it's working, if you need a prometheus config to check with: ``` - job_name: 'wttr_in' static_configs: - targets: ['wttr.in'] metrics_path: '/Regensburg' params: format: ['p1'] ``` Validated metrics output:...
``` curl -s "http://wttr.in/Berlin?format=p1" | promtool check metrics temperature_fahrenheit use base unit "celsius" instead of "fahrenheit" temperature_feels_like_fahrenheit use base unit "celsius" instead of "fahrenheit" ``` looks good, I'd ignore the...
I added a few more bits here: https://github.com/chubin/wttr.in/pull/471
Thanks for the fix and cleanups, looks good to me! So the last remaining bit is transforming the hourly output, right?
The next step is to expose it in grafana (that's where I'll create the dashboard in), but to get there I needed the exposed metrics exposed first and ingested in...