mc2soft / postgresql_exporter Goto Github PK
View Code? Open in Web Editor NEWExporter for PostgreSQL server metrics http://prometheus.io/
License: MIT License
Exporter for PostgreSQL server metrics http://prometheus.io/
License: MIT License
if go build by default(no modification aafter git clone) , there will be an error message
go build
postgresql_exporter.go:17:2: cannot find package "github.com/mc2soft/postgresql_exporter/metrics" in any of:
/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics (vendor tree)
/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics
/usr/lib/go-1.6/src/github.com/mc2soft/postgresql_exporter/metrics (from $GOROOT)
/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics (from $GOPATH)
/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/local/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/local/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/sbin/src/github.com/mc2soft/postgresql_exporter/metrics
/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/games/src/github.com/mc2soft/postgresql_exporter/metrics
/usr/local/games/src/github.com/mc2soft/postgresql_exporter/metrics
/snap/bin/src/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics
/home/mnn/go/src/github.com/mc2soft/postgresql_exporter/metrics
so I have to manually copy the metric folder to /home/mnn/go/src/postgresql_exporter/vendor/github.com/mc2soft/postgresql_exporter/metrics and the go build .
is that normal ??
Is SELECT pg_last_xact_replay_timestamp()
enough?
There is db_size metrics in readme file, but in the /metrics there is no db_size
bash-4.1$ go mod vendor go: finding module for package bitbucket.org/ww/goautoneg github.com/mc2soft/postgresql_exporter imports github.com/prometheus/client_golang/prometheus imports bitbucket.org/ww/goautoneg: cannot find module providing package bitbucket.org/ww/goautoneg: module bitbucket.org/ww/goautoneg: git ls-remote -q origin in /home/tianfeng07/go/pkg/mod/cache/vcs/c77244153a00b4d23e771f37081531907ca254e09e02aab01fe563f39b535774: exit status 128: remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated. 致命错误:仓库 'https://bitbucket.org/ww/goautoneg/' 未找到
Could you give me some advice for this problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.