Skip to content

Commit ff1424d

Browse files
committed
Update README
1 parent 26ce74e commit ff1424d

2 files changed

Lines changed: 21 additions & 4 deletions

File tree

usage-examples/go/atlas-sdk-go/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Notable changes to the project.
44

5+
## v1.2 (2025-08-17)
6+
### Added
7+
- Example scripts for scaling and archiving clusters.
8+
59
## v1.1 (2025-06-17)
610
### Added
711
- Example scripts for fetching cross-organization billing information.

usage-examples/go/atlas-sdk-go/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Currently, the repository includes examples that demonstrate the following:
1616
- Download logs for a specific host
1717
- Pull and parse line-item-level billing data
1818
- Return all linked organizations from a specific billing organization
19-
- Get historical invoices for an organization
20-
- Programmatically manage Atlas resources
19+
- Get historical invoices for an organization
20+
- Programmatically archive Atlas cluster data
2121

2222
As the Architecture Center documentation evolves, this repository will be updated with new examples
2323
and improvements to existing code.
@@ -28,12 +28,15 @@ and improvements to existing code.
2828
.
2929
├── examples # Runnable examples by category
3030
│ ├── billing/
31-
│ └── monitoring/
31+
│ ├── monitoring/
32+
│ └── performance/
3233
├── configs # Atlas configuration template
3334
│ └── config.json
3435
├── internal # Shared utilities and helpers
36+
│ ├── archive/
3537
│ ├── auth/
3638
│ ├── billing/
39+
│ ├── clusters/
3740
│ ├── config/
3841
│ ├── data/
3942
│ ├── errors/
@@ -56,10 +59,13 @@ and improvements to existing code.
5659

5760
## Setting Environment Variables
5861

59-
1. Create a `.env` file in the root directory with your MongoDB Atlas service account credentials:
62+
1. Create a `.env.<environment>` file in the root directory with your MongoDB Atlas service account credentials. For example, to create a `.env.development` file for your dev environment:
6063
```dotenv
6164
MONGODB_ATLAS_SERVICE_ACCOUNT_ID=your_service_account_id
6265
MONGODB_ATLAS_SERVICE_ACCOUNT_SECRET=your_service_account_secret
66+
ATLAS_DOWNLOADS_DIR="tmp/atlas_downloads"
67+
CONFIG_PATH="/configs"
68+
APP_ENV="dev"
6369
```
6470
> **NOTE:** For production, use a secrets manager (e.g. HashiCorp Vault, AWS Secrets Manager)
6571
> instead of environment variables.
@@ -121,6 +127,13 @@ go run examples/monitoring/metrics_disk/main.go
121127
go run examples/monitoring/metrics_process/main.go
122128
```
123129

130+
### Performance
131+
132+
#### Archive Cluster Data
133+
```bash
134+
go run examples/performance/archiving/main.go
135+
```
136+
124137
## Changelog
125138

126139
For list of major changes to this project, see [CHANGELOG](CHANGELOG.md).

0 commit comments

Comments
 (0)