Skip to content

Added datadog agent to Ansible (#104)#175

Open
ankoure wants to merge 3 commits into
mainfrom
104-add-datadog-agent-to-instance
Open

Added datadog agent to Ansible (#104)#175
ankoure wants to merge 3 commits into
mainfrom
104-add-datadog-agent-to-instance

Conversation

@ankoure

@ankoure ankoure commented Aug 17, 2025

Copy link
Copy Markdown
Contributor

Motivation

Adding the Datadog agent will heavily improve the tracking and detail of our monitoring per #104.

Changes

I updated the playbook.yml file based on the configuration found in gobble. I updated all references as appropriate. However I was unsure if we needed this datadog_check block? I don't think there's python but left it as a point of reference in case it needs to point at something else.

datadog_checks:
      python:
        logs:
          - type: file
            path: "/home/ubuntu/regional-rail-explorer/regional-rail-explorer.log"
            service: "regional-rail-explorer"
            source: python
            sourcecategory: sourcecode
          - type: file
            path: "/home/ubuntu/regional-rail-explorer/s3_upload.log"
            service: "regional-rail-explorer"
            source: python
            sourcecategory: sourcecode

Testing Instructions

I think I set up the Ansible extension in VScode correctly for linting but probably is worth someone with pre-existing experience doing a double-check.

@ankoure ankoure linked an issue Aug 17, 2025 that may be closed by this pull request
@github-actions github-actions Bot added the ci/cd Affects or Updates CI/CD label Aug 17, 2025
@devinmatte

Copy link
Copy Markdown
Member

Totally wish this would work, but we currently are running into issues with the EC2 instance being too small to run a new build. So I would like to pause this until we can shrink the GTFS bundles we read into the explorer.

Once we can fix those issues then we can merge this

@nathan-weinberg

Copy link
Copy Markdown
Member

With #177 merged can this continue?

Updated to include new deploy methods
@ankoure ankoure requested a review from devinmatte March 2, 2026 23:27
@devinmatte

Copy link
Copy Markdown
Member

We should make sure the copying of files from the deploy.sh script works first

@ankoure

ankoure commented Mar 7, 2026

Copy link
Copy Markdown
Contributor Author

@nathan-weinberg @devinmatte I just added a -l option to the deploy.sh script for it to run locally.

So just run ./deploy.sh -l from the devops folder to deploy it to RRE beta. I don't think my AWS account has the permissions necessary to do this. So If you can either increase my permissions or test it yourself that would be swell.

@nathan-weinberg

Copy link
Copy Markdown
Member

cc @skaplan-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci/cd Affects or Updates CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Datadog Agent to instance

3 participants