api/

directory
v2.10.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2020 License: AGPL-3.0

README

PMM 2.x APIs.

All generated files (Go code, Swagger spec, documentation) are already stored in this repository.

Browsing documentation

Serve API documentation with nginx:

make serve

Updating APIs

  1. Edit .proto files. Do not edit Swagger, .pb.go, .pb.gw.go. You can use make clean to remove all generated files.

  2. Install prototool and fill vendor/ (once):

make init
  1. Generate files:
make gen

Alertmanager

alertmanager/openapi.yaml is copied from https://github.com/prometheus/alertmanager/blob/master/api/v2/openapi.yaml. Then Swagger client is generated using make gen-alertmanager.

Directories

Path Synopsis
Package agentlocalpb is a reverse proxy.
Package agentlocalpb is a reverse proxy.
Package agentpb contains pmm-agent<->pmm-managed protocol messages and helpers.
Package agentpb contains pmm-agent<->pmm-managed protocol messages and helpers.
alertmanager
Package inventorypb is a reverse proxy.
Package inventorypb is a reverse proxy.
Package managementpb is a reverse proxy.
Package managementpb is a reverse proxy.
dbaas
Package dbaasv1beta1 is a reverse proxy.
Package dbaasv1beta1 is a reverse proxy.
Package qanpb is a reverse proxy.
Package qanpb is a reverse proxy.
Package serverpb is a reverse proxy.
Package serverpb is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL