Skip to content

Commit 71f7d9c

Browse files
authored
Merge pull request #64 from DrDroidLab/update_read_me
Updates read me
2 parents eadcd68 + 4824e22 commit 71f7d9c

File tree

5 files changed

+20
-39
lines changed

5 files changed

+20
-39
lines changed

README.md

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -26,68 +26,46 @@ Currently, the agent supports the following metric sources in your VPC:
2626
* Github
2727
* Postgres
2828
* Any SQL Database (via Sql Connection String)
29+
* Bash Commands
2930

3031
Releasing soon (reach out to us if you need support for these or any other source):
31-
32-
* Bash Commands
3332
* Azure
3433

3534
## Env vars
3635

3736
| Env Var Name | Description | Required |
3837
|---------------------|------------------------------------------------|----------|
3938
| DRD_CLOUD_API_TOKEN | Authentication token for doctor droid platform | True |
40-
| DRD_CLOUD_API_HOST | API server host for droid platform | True |
41-
42-
## Configuration
4339

44-
1. To get started create credentials/secret.yaml file with connections and corresponding credentials.
45-
Secret format for different connections can be referenced from credentials/credentials_template.yaml.
40+
## Installation
41+
To get started create an agent authentication token by visiting [site](https://playbooks.drdroid.io/agent-tokens)
4642

47-
2. Create an agent token needed for the authenticating http calls between doctor droid platform and agent by
48-
visiting [site](https://playbooks.drdroid.io/agent-tokens)
49-
Once auth token is available, you can set the env var as DRD_CLOUD_API_TOKEN=<API_TOKEN>
50-
51-
3. Install via Docker-Compose: To run via docker-compose you will have to clone the github project locally and run this:
43+
### Docker Compose
44+
1. Create credentials/secret.yaml file with integration credentials. Secret format for different connections can be referenced from [credentials/credentials_template.yaml.](https://github.com/DrDroidLab/drd-vpc-agent/blob/main/credentials/credentials_template.yaml)
5245

46+
Command:
5347
```shell
54-
DRD_CLOUD_API_TOKEN=<API_TOKEN> docker-compose -f agent.docker-compose.yaml up
48+
./deploy_docker.sh <API_TOKEN>
5549
```
56-
57-
4. Install via Helm Charts
58-
Pre configuration steps:
59-
a. Copy and paste the token generated in step 2 in the values.yaml file under var : 'DRD_CLOUD_API_TOKEN'
60-
Ensure the values are updated in:
61-
62-
i. helm/charts/celery_beat/values.yaml
63-
<img width="939" alt="Screenshot 2024-12-20 at 14 03 25" src="https://github.com/user-attachments/assets/0d76245f-ac43-4bfc-a986-54300c826225" />
50+
For any update the agent, re-run the command.
6451

6552

66-
67-
ii. helm/charts/celery_worker/values.yaml
68-
<img width="939" alt="Screenshot 2024-12-20 at 14 03 25" src="https://github.com/user-attachments/assets/0d76245f-ac43-4bfc-a986-54300c826225" />
69-
70-
b. The secrets for the integrations to be installed are to be added in helm/configmap.yaml file.
53+
### Helm
54+
1. Add the secrets for the integrations in helm/configmap.yaml file.
7155
Refer to the image below for a sample:
7256
<img width="934" alt="Screenshot 2024-12-20 at 14 02 43" src="https://github.com/user-attachments/assets/cadb2b0a-db0c-4128-bef7-fe2a6288b79b" />
7357

58+
Command:
7459
```shell
7560
cd helm
76-
kubectl create namespace drdroid
77-
kubectl apply -f configmap.yaml -n drdroid
78-
helm upgrade --install drd-vpc-agent . -n drdroid
61+
./deploy_helm.sh <API_TOKEN>
7962
```
8063

81-
In case you are looking to create access for running kubectl commands on this cluster from Doctor Droid platform, run
82-
the following as well.
83-
84-
```shell
85-
kubectl apply -f clusterRole.yaml -n drdroid
86-
kubectl apply -f clusterRoleBinding.yaml -n drdroid
87-
```
64+
* The agent will be installed in the namespace 'drdroid' by default. This can be changed in the helm/deploy_helm.sh file.
65+
* Agent updates the image automatically every day at 00:00 UTC.
66+
* Agent will have read access to the cluster and will be able to fetch the metrics from the cluster.
8867

8968
## Support
90-
9169
Visit [Doctor Droid website](https://drdroid.io?utm_param=github-py) for getting early access.
9270
Go through our [documentation](https://docs.drdroid.io?utm_param=github-py) to learn more.
9371

helm/charts/celery_beat/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
metadata:
1414
labels:
1515
app: drd-vpc-agent-celery-beat
16+
annotations:
17+
rollme: "{{ now | unixEpoch }}"
1618
spec:
1719
containers:
1820
- name: celery-beat
@@ -38,7 +40,6 @@ spec:
3840
- name: credentials-volume
3941
mountPath: /code/credentials/secrets.yaml
4042
subPath: secrets.yaml
41-
4243
volumes:
4344
- name: credentials-volume
4445
configMap:

helm/charts/celery_worker/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ spec:
1313
metadata:
1414
labels:
1515
app: drd-vpc-agent-celery-worker
16+
annotations:
17+
rollme: "{{ now | unixEpoch }}"
1618
spec:
1719
containers:
1820
- name: celery-worker
File renamed without changes.

helm/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ global:
55

66
restartCron:
77
enabled: true
8-
schedule: "0 * * * *" # hourly
8+
schedule: "0 0 * * *" # every day at 00:00 UTC
99

1010
celery-beat:
1111
image:

0 commit comments

Comments
 (0)