Skip to content

Commit db7b81a

Browse files
author
Alex Tymchuk
authored
Remove the links to discord (#662)
* Remove the link to discord Why: our discord has been sunset in favor of https://forums.percona.com * chore: remove discord links * ci: refactor some actions * ci: refactor go.yml
1 parent acfa5ef commit db7b81a

File tree

6 files changed

+34
-33
lines changed

6 files changed

+34
-33
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
- [ ] Update jira ticket description if needed.
1010
- [ ] Attach screenshots/console output to confirm new behavior to jira ticket, if applicable.
1111

12-
Once all checks pass and the code is ready for review, please add `pmm-review-exporters` team as the reviewer. That would assign people from the review team automatically. Report any issues on our [Forum](https://forums.percona.com) or [Discord](https://per.co.na/discord).
12+
Once all checks pass and the code is ready for review, please add `pmm-review-exporters` team as the reviewer. That would assign people from the review team automatically. Report any issues on our [Forum](https://forums.percona.com).

.github/workflows/go.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Go
33
on:
44
schedule:
55
# run every Sunday
6-
- cron: "0 13 * * 0"
6+
- cron: '0 13 * * 0'
77
push:
88
branches:
99
- main
@@ -45,7 +45,7 @@ jobs:
4545
steps:
4646
- name: Set up Go release
4747
if: matrix.go-version != 'tip'
48-
uses: percona-platform/setup-go@v2
48+
uses: actions/setup-go@v4
4949
with:
5050
go-version: ${{ matrix.go-version }}
5151

@@ -59,7 +59,7 @@ jobs:
5959
echo "$HOME/gotip/bin" >> $GITHUB_PATH
6060
6161
- name: Check out code into the Go module directory
62-
uses: percona-platform/checkout@v3
62+
uses: actions/checkout@v3
6363

6464
- name: Initialize dependencies and linters
6565
run: |

.github/workflows/release.yml

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,47 +7,43 @@ on:
77
- v*
88
# manually trigger the release
99
workflow_dispatch:
10+
1011
jobs:
1112
goreleaser:
1213
runs-on: ubuntu-latest
1314
steps:
14-
-
15-
name: Checkout
16-
uses: percona-platform/checkout@v3
15+
- name: Checkout
16+
uses: actions/checkout@v3
1717
with:
1818
fetch-depth: 0
19-
-
20-
name: Set up Go
21-
uses: percona-platform/setup-go@v2
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
2222
with:
2323
go-version: 1.19
24-
-
25-
name: Login to Docker Hub
26-
uses: percona-platform/login-action@v2
24+
25+
- name: Login to Docker Hub
26+
uses: docker/login-action@v2
2727
with:
2828
username: ${{ secrets.DOCKERHUB_USERNAME }}
2929
password: ${{ secrets.DOCKERHUB_TOKEN }}
3030

31-
-
32-
name: Login to GitHub Container Registry
33-
uses: percona-platform/login-action@v2
31+
- name: Login to GitHub Container Registry
32+
uses: docker/login-action@v2
3433
with:
3534
registry: ghcr.io
3635
username: ${{ github.actor }}
3736
password: ${{ secrets.GITHUB_TOKEN }}
3837

39-
-
40-
name: Set up QEMU
38+
- name: Set up QEMU
4139
uses: docker/setup-qemu-action@v2
4240

43-
-
44-
name: Set up Docker Buildx
41+
- name: Set up Docker Buildx
4542
id: buildx
4643
uses: docker/setup-buildx-action@v2
4744

48-
-
49-
name: Run GoReleaser
50-
uses: percona-platform/goreleaser-action@v3
45+
- name: Run GoReleaser
46+
uses: goreleaser/goreleaser-action@v3
5147
with:
5248
version: latest
5349
args: release --rm-dist

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ bin
66
build
77
dist
88
mongodb_exporter
9+
.DS_Store

CONTRIBUTING.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ If you find a bug in Percona MongoDB Exporter and it is not related to PMM, plea
2222

2323
Your first step should be to search [GH issues](https://github.com/percona/mongodb_exporter/issues) and [JIRA PMM issues](https://jira.percona.com/issues/?jql=project=PMM%20AND%20component=MongoDB_Exporter) for the existing set of open tickets for a similar report. If you find that someone else has already reported your problem, then you can upvote that report to increase its visibility.
2424

25-
2625
### Submitting PMM Bug
2726

2827
If there is no existing PMM report for the issue that relates to PMM, submit a report following these steps:
@@ -35,13 +34,15 @@ An excellent resource is [Elika Etemad's article on filing good bug reports.](ht
3534

3635
As a general rule of thumb, please try to create bug reports that are:
3736

38-
- *Reproducible.* Include steps to reproduce the problem.
39-
- *Specific.* Include as much detail as possible: which version, what environment, etc.
40-
- *Unique.* Do not duplicate existing tickets.
41-
- *Scoped to a Single Bug.* One bug per report.
37+
- _Reproducible._ Include steps to reproduce the problem.
38+
- _Specific._ Include as much detail as possible: which version, what environment, etc.
39+
- _Unique._ Do not duplicate existing tickets.
40+
- _Scoped to a Single Bug._ One bug per report.
4241

4342
## Branching workflow
43+
4444
MongoDB exporter uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html) `[major].[minor].[patch]`:
45+
4546
- major version when you make incompatible changes
4647
- minor version when you add functionality in a backwards compatible manner
4748
- patch version when you make backwards compatible bug fixes
@@ -52,7 +53,6 @@ MongoDB exporter uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
5253

5354
Each release is tagged with `vx.y.z` tag.
5455

55-
5656
Please submit your changes against `main` branch, if the fix is needed for the patch or minor release - please ask maintainers to cherry pick it into the release branch.
5757

5858
## Setup your local development environment
@@ -69,7 +69,7 @@ These are these available options:
6969
|format|Format source code|
7070
|check|Run checks/linters|
7171
|check-license|Check license in headers. |
72-
|help|Display this help message. |
72+
|help|Display this help message. |
7373
|test|Run all tests (need to start the sandbox first)|
7474
|test-cluster|Starts MongoDB test cluster. Use `env var TEST_MONGODB_IMAGE` to set flavor and version. Example:|
7575
| |`TEST_MONGODB_IMAGE=mongo:3.6 make test-cluster`|
@@ -78,28 +78,32 @@ These are these available options:
7878
### Initializing the development environment
7979

8080
First you need to have `Go` and `Docker` installed on your system and then, in order to install tools to format, test and build the exporter, you need to run this command:
81+
8182
```
8283
make init
8384
```
85+
8486
It will install `goimports`, `goreleaser`, `golangci-lint` and `reviewdog`.
8587

8688
## Tests
8789

8890
### Starting the sandbox
8991

9092
The testing sandbox starts `n` MongoDB instances as follows:
93+
9194
- 3 Instances for shard 1 at ports 17001, 17002, 17003
9295
- 3 instances for shard 2 at ports 17004, 17005, 17006
9396
- 3 config servers at ports 17007, 17008, 17009
9497
- 1 mongos server at port 17000
9598
- 1 stand alone instance at port 27017
9699

97100
All instances are currently running without user and password so for example, to connect to the **mongos** you can just use:
101+
98102
```
99103
mongo mongodb://127.0.0.1:17001/admin
100104
```
101-
The sandbox can be started using the provided Makefile using: `make test-cluster` and it can be stopped using `make test-cluster-clean`.
102105

106+
The sandbox can be started using the provided Makefile using: `make test-cluster` and it can be stopped using `make test-cluster-clean`.
103107

104108
### Running tests
105109

@@ -120,4 +124,4 @@ After submitting your PR please add `pmm-review-exporters` team as a reviewer -
120124

121125
Once your pull request is merged, you are an official Percona Community Contributor. Welcome to the community!
122126

123-
We're looking forward to your contributions and hope to hear from you soon on our [Forums](https://forums.percona.com) and [Discord](https://discord.gg/mQEyGPkNbR).
127+
We're looking forward to your contributions and hope to hear from you soon on our [Forums](https://forums.percona.com).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![codecov.io Code Coverage](https://img.shields.io/codecov/c/github/percona/mongodb_exporter.svg?maxAge=2592000)](https://codecov.io/github/percona/mongodb_exporter?branch=main)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/percona/mongodb_exporter)](https://goreportcard.com/report/github.com/percona/mongodb_exporter)
66
[![CLA assistant](https://cla-assistant.percona.com/readme/badge/percona/mongodb_exporter)](https://cla-assistant.percona.com/percona/mongodb_exporter)
7-
[![Discord](https://img.shields.io/discord/808660945513611334?style=flat)](http://per.co.na/discord)
7+
88

99
This is the new MongoDB exporter implementation that handles ALL metrics exposed by MongoDB monitoring commands.
1010
This new implementation loops over all the fields exposed in diagnostic commands and tries to get data from them.

0 commit comments

Comments
 (0)