api/

directory
v2.17.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 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.
azure
Package azurev1beta1 is a reverse proxy.
Package azurev1beta1 is a reverse proxy.
backup
Package backupv1beta1 is a reverse proxy.
Package backupv1beta1 is a reverse proxy.
dbaas
Package dbaasv1beta1 is a reverse proxy.
Package dbaasv1beta1 is a reverse proxy.
ia
Package iav1beta1 is a reverse proxy.
Package iav1beta1 is a reverse proxy.
jobs
Package jobs1beta1 is a reverse proxy.
Package jobs1beta1 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