Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions agents/postgres/pgstatmonitor/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,14 @@ type pgStatMonitorSettings struct {
//
//reform:pg_stat_monitor_settings
type pgStatMonitorSettingsTextValue struct {
Name string `reform:"name"`
Value string `reform:"value"`
Name string `reform:"name"`
Value string `reform:"value"`
DefaultValue string `reform:"default_value"`
Description string `reform:"description"`
Minimum *int64 `reform:"minimum"`
Maximum *int64 `reform:"maximum"`
Options *string `reform:"options"`
Restart string `reform:"restart"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's keep only fields that we use in case PGSM team changes structure later we will have more PMM clients supported latest PGSM

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}

// pgStatMonitorExtended contains pgStatMonitor data and extends it with database, username and tables data.
Expand Down
32 changes: 31 additions & 1 deletion agents/postgres/pgstatmonitor/models_reform.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading