Loongson CPU mips64le compiled through. #418
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GOOS="linux"
GOARCH="mips64le"
GOROOT="/opt/go/go1.14.6"
the issues: #417
lol,I solved
I forgot to put some material on it.
[root@localhost postgres_exporter]# arch
mips64el
[root@localhost postgres_exporter]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[root@localhost 桌面]# uname -a
Linux localhost.localdomain 3.10.0-693.21.1.ns7.007.mips64el #1 SMP PREEMPT Wed May 23 19:09:06 CST 2018 mips64el mips64el mips64el GNU/Linux
[root@localhost postgres_exporter]# export DATA_SOURCE_NAME="postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable"
[root@localhost postgres_exporter]# ./postgres_exporter
INFO[0000] Established new database connection to "localhost:5432". source="postgres_exporter.go:878"
INFO[0000] Semantic Version Changed on "localhost:5432": 0.0.0 -> 11.2.0 source="postgres_exporter.go:1405"
INFO[0000] Starting Server: :9187 source="postgres_exporter.go:1672"
[root@localhost postgres_exporter]# curl http://localhost:9187/metrics
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0
go_gc_duration_seconds_sum 0
go_gc_duration_seconds_count 0
go_goroutines 9
...
promhttp_metric_handler_requests_in_flight 1
promhttp_metric_handler_requests_total{code="200"} 2
promhttp_metric_handler_requests_total{code="500"} 0
promhttp_metric_handler_requests_total{code="503"} 0
sorry,I have deleted the # text, it will affect the beauty.