Directories
¶
| Path | Synopsis |
|---|---|
|
package api contains the API definitions for external use, such as the RPC sink.
|
package api contains the API definitions for external use, such as the RPC sink. |
|
pb
Package pb contains the protobuf definitions for pgwatch gRPC API.
|
Package pb contains the protobuf definitions for pgwatch gRPC API. |
|
cmd
|
|
|
pgwatch
command
pgwatch is a command line tool that collects metrics from PostgreSQL databases and forwards to external sinks.
|
pgwatch is a command line tool that collects metrics from PostgreSQL databases and forwards to external sinks. |
|
docs
|
|
|
howto/embedding
command
Command embedding is a minimal pgwatch embedder: it runs the real collector and REST API, serves its own web UI instead of the React one, adds an authenticated /hello endpoint next to the REST API, and contributes its own command-line flag group.
|
Command embedding is a minimal pgwatch embedder: it runs the real collector and REST API, serves its own web UI instead of the React one, adds an authenticated /hello endpoint next to the REST API, and contributes its own command-line flag group. |
|
internal
|
|
|
testutil
Package testutil provides testing utilities for pgwatch tests.
|
Package testutil provides testing utilities for pgwatch tests. |
|
webui/embed
Package embed carries the React web UI built from internal/webui and exposes it as the default ui.Provider.
|
Package embed carries the React web UI built from internal/webui and exposes it as the default ui.Provider. |
|
Package pkg is the root of pgwatch's public API.
|
Package pkg is the root of pgwatch's public API. |
|
app
Package app bootstraps pgwatch: it wires the logger, the configuration readers, the sink writer, the schema check, the reaper and the web server into the same startup sequence the pgwatch binary runs, and owns signal handling, panic recovery and exit-code mapping.
|
Package app bootstraps pgwatch: it wires the logger, the configuration readers, the sink writer, the schema check, the reaper and the web server into the same startup sequence the pgwatch binary runs, and owns signal handling, panic recovery and exit-code mapping. |
|
cmdopts
Package cmdopts provides functionality to parse command line options and ENV variables.
|
Package cmdopts provides functionality to parse command line options and ENV variables. |
|
db
Package db provides common functionality to work with databases.
|
Package db provides common functionality to work with databases. |
|
log
Package log contains the logger interface and its implementation used in the project.
|
Package log contains the logger interface and its implementation used in the project. |
|
metrics
Package metrics is responsible for reading and writing metric definitions.
|
Package metrics is responsible for reading and writing metric definitions. |
|
reaper
Package reaper is responsible to query the metrics from monitored sources and send measurements to sinks.
|
Package reaper is responsible to query the metrics from monitored sources and send measurements to sinks. |
|
sinks
Package sinks provides functionality to store monitored data in different ways.
|
Package sinks provides functionality to store monitored data in different ways. |
|
sources
Provides functionality to read monitored data from different sources.
|
Provides functionality to read monitored data from different sources. |
|
ui
Package ui defines the contract between the pgwatch web server and the web user interface it serves.
|
Package ui defines the contract between the pgwatch web server and the web user interface it serves. |
|
webserver
Package webserver serves the REST API and the web user interface.
|
Package webserver serves the REST API and the web user interface. |
Click to show internal directories.
Click to hide internal directories.
