Comments (1)
Thanks for your input!
Right now, the situation is that you need to refer to pg_settings
inorder to interpret the "settings" field of the JSON output. Additionally, the pg_settings
has to be of the same major version of Postgres as the server you ran pgmetrics on. This is because (1) values have unintuitive units (2) these units differ across versions for the same setting. To illustrate, if the settings says "max_wal_size" is "1", the actual value is either 16777216 bytes (if pg 9.5, 9.6) or 1048576 bytes (if pg 10).
For the settings value to be actually useful -- as in be able to be directly used for processing by a script without needing to consult pg_settings
-- would require that the units also be considered while representing the value as a number. Byte-dimension values with non-byte units ("8kB", "MB", "kB" in pg10) should be normalized to bytes and time-dimension values ("min", "ms" in pg10) to seconds.
So, if we have a query or two (and/or Go code) that can do this, then we can add a new field (because we don't want to break the existing JSON schema) of float type (because JSON has only a "number" type, which is 64-bit float) at the same level as "setting", like this:
"settings": {
//...
"max_wal_size": {
"setting": "1",
"actual": 16777216
},
//...
}
from pgmetrics.
Related Issues (20)
- Log parsing clarification HOT 4
- How to read some values reported by pgmetrics (e.g. shared_buffers, max_wal_size) HOT 6
- Postgres 13: wal_keep_segments displays no value HOT 2
- What determines the sort order for list of table details in pgmetrics output? HOT 2
- Incorrect min_wal_size displayed for PG ver >= 10 HOT 2
- Improve heuristic to check if PG is local HOT 4
- Slow bloat query HOT 4
- AWS RDS, Aurora cloudwatch collection error HOT 3
- pg_stat_archiver query failed: sql: Scan error on column index 6, name "date_part": converting NULL to int64 is unsupported HOT 2
- Omitting retrieval of index definition HOT 1
- Please, add building instructions HOT 2
- Support Citus 11 HOT 2
- Crashes PSQL when table has high Partition Count HOT 2
- Break up the Postgres shared memory is not available in pgmetrics/pgDash currently.
- how to collect system info with pgmetrics HOT 1
- [Feature] Support connect by Keyword/Value Connection Strings HOT 1
- support PG16 HOT 2
- PgMetrics not working for AWS Aurora Instances HOT 1
- PGBOUNCER 1.21 breaking change. HOT 1
- pg_stat(io)_user_tables query failed: ERROR: canceling statement due to lock timeout (SQLSTATE 55P03) HOT 1
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 pgmetrics.