Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e9c8bc8
PMM-7326 log level
YaroslavPodorvanov Apr 23, 2022
3d2c315
PMM-7326 log level with right pmm dependency `go get -v github.com/pe…
YaroslavPodorvanov Apr 24, 2022
38be68c
PMM-7326 complete
YaroslavPodorvanov Apr 25, 2022
6664fc0
Merge branch 'PMM-2.0' into PMM-7326-log-level
YaroslavPodorvanov Apr 27, 2022
6c80045
PMM-7326 merge "go.mod"
YaroslavPodorvanov May 9, 2022
edb077d
Merge branch 'PMM-7326-log-level' into PMM-9968-pmm-admin-inventory-w…
YaroslavPodorvanov May 9, 2022
6d841f1
PMM-9968 pmm-admin inventory --log-level
YaroslavPodorvanov May 9, 2022
438637c
Merge branch 'PMM-2.0' into PMM-9968-pmm-admin-inventory-with-log-level
YaroslavPodorvanov May 25, 2022
fc8bfad
Update ci.yml
ritbl May 30, 2022
387563f
rewind submodules
May 26, 2022
fb8bd04
rewind submodules
May 26, 2022
804a5cb
rewind submodules
May 27, 2022
05a4103
rewind submodules
May 27, 2022
6780a2d
rewind submodules
May 27, 2022
a2d7636
rewind submodules
May 27, 2022
15c6055
rewind submodules
May 30, 2022
07dfd0b
rewind submodules
May 30, 2022
3f43eb0
rewind submodules
May 30, 2022
c603c25
rewind submodules
May 30, 2022
41cf2ba
rewind submodules
May 31, 2022
a0c758d
rewind submodules
May 31, 2022
10d5bb6
rewind submodules
May 31, 2022
e84ae82
rewind submodules
Jun 1, 2022
a1610e1
rewind submodules
Jun 1, 2022
becc918
rewind submodules
Jun 1, 2022
2a50ef1
rewind submodules
Jun 1, 2022
a5d5684
rewind submodules
Jun 1, 2022
9fb6a57
rewind submodules
Jun 1, 2022
a0237a4
rewind submodules
Jun 1, 2022
8bf02df
PMM-10008 Move pmm-agent and pmm-admin to pmm repo (#2542)
artemgavrilov Jun 1, 2022
1531f0c
rewind submodules
Jun 1, 2022
12744d7
rewind submodules
Jun 1, 2022
14e6660
PMM-9968 remove pmm-admin as archived
YaroslavPodorvanov Jun 1, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ tmp/
results/
.DS_Store
.git-sources
.vscode
.vscode/
.idea/
8 changes: 0 additions & 8 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@

# PMM Client

[submodule "pmm-admin"]
path = sources/pmm-admin/src/github.com/percona/pmm-admin
url = https://github.com/percona/pmm-admin.git
branch = main
[submodule "pmm-agent"]
path = sources/pmm-agent/src/github.com/percona/pmm-agent
url = https://github.com/percona/pmm-agent.git
branch = main
[submodule "node_exporter"]
path = sources/node_exporter/src/github.com/prometheus/node_exporter
url = https://github.com/percona/node_exporter.git
Expand Down
32 changes: 17 additions & 15 deletions build/bin/build-client-binary
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ extract_source_tarball() {

gobuild_component() {
local component=$1
local extract_path=${2:-"github.com/percona/$component"}
local component_path=$3
local result_file=${4:-bin/$(basename ${component_path:-$extract_path})}
local parent_component=${2:-$component}
local extract_path=${3:-"github.com/percona/$parent_component"}
local component_path=$4
local result_file=${5:-bin/$(basename ${component_path:-$extract_path})}

if [ ${component} = 'azure_metrics_exporter' ]; then
result_file=${result_file/_metrics/}
Expand Down Expand Up @@ -50,9 +51,9 @@ gobuild_component() {
# for 'make release'
export PMM_RELEASE_VERSION=${full_pmm_version}
export PMM_RELEASE_TIMESTAMP=$(date '+%s')
export PMM_RELEASE_FULLCOMMIT=$(cd sources/${component}/src/${extract_path} && git rev-parse HEAD)
export COMPONENT_VERSION=$(cd sources/${component}/src/${extract_path} && git describe --abbrev=0 --always)
export COMPONENT_BRANCH=$(cd sources/${component}/src/${extract_path} && git describe --always --contains --all)
export PMM_RELEASE_FULLCOMMIT=$(cd sources/${parent_component}/src/${extract_path} && git rev-parse HEAD)
export COMPONENT_VERSION=$(cd sources/${parent_component}/src/${extract_path} && git describe --abbrev=0 --always)
export COMPONENT_BRANCH=$(cd sources/${parent_component}/src/${extract_path} && git describe --always --contains --all)
export PMM_RELEASE_BRANCH=""
sudo chown -R builder:builder /home/builder/tmp

Expand All @@ -63,7 +64,8 @@ gobuild_component() {
mkdir -p \$binary_dir/bin

mkdir -p /tmp/go/src/${extract_path}
tar -C /tmp/go/src/${extract_path} --strip-components=1 -zxpf \${source_dir}/${component}-*.tar.gz
archive=$(ls ${source_dir} | grep -e "${parent_component}-\w*\.tar\.gz")
tar -C /tmp/go/src/${extract_path} --strip-components=1 -zxpf \${source_dir}/\$archive
pushd /tmp/go
export GOPATH=\$(pwd -P)
${build_command}
Expand Down Expand Up @@ -92,18 +94,18 @@ copy_component() {
main() {
extract_source_tarball

gobuild_component "vmagent" "github.com/VictoriaMetrics/VictoriaMetrics" "app/vmagent"
gobuild_component "node_exporter" "github.com/prometheus/node_exporter"
gobuild_component "vmagent" "" "github.com/VictoriaMetrics/VictoriaMetrics" "app/vmagent"
gobuild_component "node_exporter" "" "github.com/prometheus/node_exporter"
gobuild_component "mysqld_exporter"
gobuild_component "postgres_exporter" "" "cmd/postgres_exporter"
gobuild_component "postgres_exporter" "" "" "cmd/postgres_exporter"
gobuild_component "mongodb_exporter"
gobuild_component "proxysql_exporter"
gobuild_component "rds_exporter"
gobuild_component "azure_metrics_exporter"
gobuild_component "clickhouse_exporter" "github.com/Percona-Lab/clickhouse_exporter"
gobuild_component "clickhouse_exporter" "" "github.com/Percona-Lab/clickhouse_exporter"

gobuild_component "pmm-admin" "" "" "github.com/percona/pmm-agent/bin/pmm-admin"
gobuild_component "pmm-agent" "" "" "github.com/percona/pmm-agent/bin/pmm-agent"
gobuild_component "pmm-admin" "pmm" "" "" "github.com/percona/pmm/bin/pmm-admin"
gobuild_component "pmm-agent" "pmm" "" "" "github.com/percona/pmm/bin/pmm-agent"

echo ${version} > ${binary_dir}/VERSION

Expand All @@ -120,8 +122,8 @@ main() {

copy_component "percona-toolkit" "bin/pt-summary"
copy_component "percona-toolkit" "bin/pt-mysql-summary"
gobuild_component "percona-toolkit" "github.com/percona/percona-toolkit" "src/go/pt-mongodb-summary"
gobuild_component "percona-toolkit" "github.com/percona/percona-toolkit" "src/go/pt-pg-summary"
gobuild_component "percona-toolkit" "" "github.com/percona/percona-toolkit" "src/go/pt-mongodb-summary"
gobuild_component "percona-toolkit" "" "github.com/percona/percona-toolkit" "src/go/pt-pg-summary"

rm -rf ${binary_tarball}
mkdir -p $(dirname ${binary_tarball}) || :
Expand Down
3 changes: 1 addition & 2 deletions build/bin/build-client-source
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ main() {

prepare_vmagent_tarball
prepare_tarball pmm-submodules
prepare_tarball pmm-admin
prepare_tarball pmm-agent
prepare_tarball pmm
prepare_tarball mongodb_exporter
prepare_tarball mysqld_exporter
prepare_tarball postgres_exporter
Expand Down
2 changes: 0 additions & 2 deletions build/bin/create-tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
REPOS = [
"sources/grafana/src/github.com/grafana/grafana",
"sources/grafana-dashboards",
"sources/pmm-admin/src/github.com/percona/pmm-admin",
"sources/pmm-agent/src/github.com/percona/pmm-agent",
"sources/pmm-managed/src/github.com/percona/pmm-managed",
"sources/pmm-server",
"sources/pmm-update/src/github.com/percona/pmm-update",
Expand Down
12 changes: 0 additions & 12 deletions ci-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ deps:
component: common

# CLIENT
- name: pmm-admin
branch: main
path: sources/pmm-admin/src/github.com/percona/pmm-admin
url: https://github.com/percona/pmm-admin
component: client

- name: pmm-agent
branch: main
path: sources/pmm-agent/src/github.com/percona/pmm-agent
url: https://github.com/percona/pmm-agent
component: client

- name: node_exporter
branch: main
path: sources/node_exporter/src/github.com/prometheus/node_exporter
Expand Down
6 changes: 6 additions & 0 deletions ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
deps:
- name: pmm
branch: PMM-9968-pmm-admin-inventory-with-log-level

- name: pmm-managed
branch: PMM-9968-pmm-admin-inventory-with-log-level
1 change: 0 additions & 1 deletion sources/pmm-admin/src/github.com/percona/pmm-admin
Submodule pmm-admin deleted from 5dd950
1 change: 0 additions & 1 deletion sources/pmm-agent/src/github.com/percona/pmm-agent
Submodule pmm-agent deleted from 4d163c
2 changes: 1 addition & 1 deletion sources/pmm-dump
2 changes: 1 addition & 1 deletion sources/pmm-update/src/github.com/percona/pmm-update
Submodule pmm-update updated 2 files
+4 −1 tools/go.mod
+5 −2 tools/go.sum
2 changes: 1 addition & 1 deletion sources/pmm/src/github.com/percona/pmm
Submodule pmm updated 946 files