Documentation ¶
Index ¶
- Constants
- func CollectActivityFromAllServers(ctx context.Context, servers []*state.Server, ...) (allSuccessful bool)
- func CollectAllServers(ctx context.Context, servers []*state.Server, ...) (allSuccessful bool)
- func EmitTestExplain(ctx context.Context, server *state.Server, ...) error
- func EmitTestLogMsg(ctx context.Context, server *state.Server, ...) error
- func GatherQueryStatsFromAllServers(ctx context.Context, servers []*state.Server, ...)
- func GenerateStatsHelperSql(ctx context.Context, server *state.Server, ...) (string, error)
- func RunRequestedReports(ctx context.Context, servers []*state.Server, ...)
- func RunTestReport(ctx context.Context, servers []*state.Server, ...)
- func SetupLogCollection(ctx context.Context, wg *sync.WaitGroup, servers []*state.Server, ...)
- func TestLogsForAllServers(ctx context.Context, servers []*state.Server, ...) (hasFailedServers bool, hasSuccessfulLocalServers bool)
- type RequestedReport
Constants ¶
View Source
const LogDownloadInterval time.Duration = 30 * time.Second
View Source
const LogStreamingInterval time.Duration = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CollectActivityFromAllServers ¶
func CollectActivityFromAllServers(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger) (allSuccessful bool)
CollectActivityFromAllServers - Collects activity from all servers and sends them to the pganalyze service
func CollectAllServers ¶
func CollectAllServers(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger) (allSuccessful bool)
CollectAllServers - Collects statistics from all servers and sends them as full snapshots to the pganalyze service
func EmitTestExplain ¶ added in v0.45.0
func EmitTestLogMsg ¶ added in v0.45.0
func GenerateStatsHelperSql ¶ added in v0.56.0
func RunRequestedReports ¶
func RunRequestedReports(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger)
RunRequestedReports - Retrieves current report requests from the server, runs them and submits their data
func RunTestReport ¶
func RunTestReport(ctx context.Context, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger)
RunTestReport - Runs globalCollectionOpts.TestReport for all servers and outputs the result to stdout
func SetupLogCollection ¶ added in v0.42.1
func SetupLogCollection(ctx context.Context, wg *sync.WaitGroup, servers []*state.Server, globalCollectionOpts state.CollectionOpts, logger *util.Logger, hasAnyHeroku bool, hasAnyGoogleCloudSQL bool, hasAnyAzureDatabase bool, hasAnyTembo bool)
SetupLogCollection - Starts streaming or scheduled downloads for logs of the specified servers
Types ¶
type RequestedReport ¶
Click to show internal directories.
Click to hide internal directories.