Skip to content

Commit

Permalink
PMM-10008 Update links
Browse files Browse the repository at this point in the history
  • Loading branch information
artemgavrilov committed May 31, 2022
1 parent aaa652b commit d57a70a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 35,8 @@ This project is built from several repositories:

### PMM Client

* [percona/pmm-agent](https://github.com/percona/pmm-agent)
* [percona/pmm-admin](https://github.com/percona/pmm-admin)
* [percona/pmm-agent](https://github.com/percona/pmm/agent)
* [percona/pmm-admin](https://github.com/percona/pmm/admin)
* [percona/node_exporter](https://github.com/percona/node_exporter)
* [percona/mysqld_exporter](https://github.com/percona/mysqld_exporter)
* [percona/mongodb_exporter](https://github.com/percona/mongodb_exporter)
Expand Down Expand Up @@ -92,8 92,8 @@ Since PMM has a lot of components, we will mention only three big parts of it.

### PMM Client

* Clone [pmm-agent repository](https://github.com/percona/pmm-agent) and [pmm-admin repository](https://github.com/percona/pmm-admin).
* Navigate to the root folder of pmm-agent.
* Clone [pmm repository](https://github.com/percona/pmm).
* Navigate to the `/agent` folder in the root of the repository.
* Run `make setup-dev` to connect pmm-agent to PMM Server.
* This command will register local pmm-agent to PMM Server and generate config file `pmm-agent-dev.yaml`
* Once it's connected just use `make run` to run pmm-agent.
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 13,7 @@ init: ## Install tools.
$(eval GO_PROTO_VALIDATOR=$(shell go list -f '{{ .Version }}' -m github.com/mwitkow/go-proto-validators))
curl --create-dirs -L https://raw.githubusercontent.com/mwitkow/go-proto-validators/$(GO_PROTO_VALIDATOR)/validator.proto -o ../third_party/github.com/mwitkow/go-proto-validators/validator.proto

release: ## Build release versions of
release: ## Build release versions of all components
make -C agent release
make -C admin release

Expand Down Expand Up @@ -123,7 123,7 @@ FILES = $(shell find . -type f -name '*.go')

format: ## Format source code.
bin/gofumpt -l -w $(FILES)
bin/goimports -local github.com/percona/pmm-agent -l -w $(FILES)
bin/goimports -local github.com/percona/pmm -l -w $(FILES)
bin/gci write --Section Standard --Section Default --Section "Prefix(github.com/percona/pmm)" $(FILES)
bin/goimports -local github.com/percona/pmm -l -w $(FILES) # Temporary fix, gci has bug with sorting black imports.

Expand Down
6 changes: 1 addition & 5 deletions admin/README.md
Original file line number Diff line number Diff line change
@@ -1,9 1,5 @@
# pmm-admin

[![Build Status](https://travis-ci.com/percona/pmm-admin.svg?branch=main)](https://travis-ci.com/percona/pmm-admin)
[![Go Report Card](https://goreportcard.com/badge/github.com/percona/pmm-admin)](https://goreportcard.com/report/github.com/percona/pmm-admin)
[![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/pmm-admin)](https://cla-assistant.percona.com/percona/pmm-admin)

pmm-admin for PMM 2.x.

# Contributing notes
Expand All @@ -16,7 12,7 @@ Run `make init` to install dependencies.

#### To run pmm-admin commands
Run [PMM-server](https://github.com/percona/pmm) docker container or [pmm-managed](https://github.com/percona/pmm-managed).
Run [pmm-agent](https://github.com/percona/pmm-agent).
Run pmm-agent `cd ../agent`.
Run pmm-admin commands.
```shell script
go run main.go status
Expand Down
4 changes: 2 additions & 2 deletions agent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 76,10 @@ fuzz-postgres-parser: ## Run fuzzer for agents/postgres/parser package.
cd agents/postgres/parser && go-fuzz -workdir fuzzing

bench: ## Run benchmarks.
go test -bench=. -benchtime=1s -count=5 -cpu=1 -timeout=30m -failfast github.com/percona/pmm-agent/agents/mysql/slowlog/parser | tee slowlog_parser_new.bench
go test -bench=. -benchtime=1s -count=5 -cpu=1 -timeout=30m -failfast github.com/percona/pmm/agent/agents/mysql/slowlog/parser | tee slowlog_parser_new.bench
../bin/benchstat slowlog_parser_old.bench slowlog_parser_new.bench

go test -bench=. -benchtime=1s -count=5 -cpu=1 -timeout=30m -failfast github.com/percona/pmm-agent/agents/postgres/parser | tee postgres_parser_new.bench
go test -bench=. -benchtime=1s -count=5 -cpu=1 -timeout=30m -failfast github.com/percona/pmm/agent/agents/postgres/parser | tee postgres_parser_new.bench
../bin/benchstat postgres_parser_old.bench postgres_parser_new.bench

RUN_FLAGS = --config-file=pmm-agent-dev.yaml
Expand Down

0 comments on commit d57a70a

Please sign in to comment.