Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLINT-469] Add Octopus Deploy integration #18488

Merged
merged 63 commits into from
Jan 17, 2025

Conversation

sarah-witt
Copy link
Contributor

What does this PR do?

Adds an integration for octopus deploy

Motivation

Additional Notes

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

@datadog-agent-integrations-bot datadog-agent-integrations-bot bot added documentation release qa/skip-qa Automatically skip this PR for the next QA labels Sep 3, 2024
Copy link

github-actions bot commented Sep 3, 2024

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

codecov bot commented Sep 3, 2024

Codecov Report

Attention: Patch coverage is 99.16512% with 9 lines in your changes missing coverage. Please review.

Project coverage is 89.38%. Comparing base (bef0a2f) to head (20be232).
Report is 7 commits behind head on master.

Additional details and impacted files
Flag Coverage Δ
activemq ?
aerospike ?
airflow ?
appgate_sdp ?
cassandra ?
cassandra_nodetool ?
ceph ?
cilium ?
clickhouse ?
couchbase ?
dotnetclr ?
duckdb ?
elastic ?
exchange_server ?
gearmand ?
gitlab ?
glusterfs ?
haproxy ?
ibm_ace ?
ibm_was ?
iis ?
jboss_wildfly ?
kafka ?
kafka_consumer ?
keda ?
kubeflow ?
kubevirt_api ?
kubevirt_controller ?
kubevirt_handler ?
marklogic ?
milvus ?
mongo ?
mysql ?
nvidia_nim ?
octopus_deploy 99.16% <99.16%> (?)
openstack_controller ?
pdh_check ?
postgres ?
presto ?
quarkus ?
sap_hana ?
scylla ?
slurm ?
snmp ?
sonarqube ?
sqlserver ?
supabase ?
vault ?
vertica ?
voltdb ?
weblogic ?
windows_performance_counters ?
windows_service ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link

github-actions bot commented Sep 3, 2024

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

github-actions bot commented Sep 3, 2024

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

github-actions bot commented Sep 3, 2024

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

github-actions bot commented Sep 3, 2024

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

@sarah-witt sarah-witt changed the title Add Octopus Deploy integration [PLINT-469] Add Octopus Deploy integration Sep 3, 2024
* Add support for pagination

* update caddyfile and remove unneeded args

* Apply suggestions
…nment, deployment, and release (#19192)

* Add support for environment metrics

* Add config for autodiscovery

* Add support for environments via discovery

* Add environment, release, and deployment tags

* Add caching for environments, releases, and deployments

* add to caddyfile

* remove env fallback

* change environments cache to dictionary

* use tuple for deployment

* Add pagination for environments

* update caddyfile

* update environments config

* sync models

* Filter by environment

* only collect deploy tasks

* update caddyfile
* Add support for machine metrics

* add role tags

* change to startswith

* validate metadata

* Address comments
* Add support for machine metrics

* add role tags

* change to startswith

* validate metadata

* Address comments

* Add octopus server tag
Copy link
Contributor

@michaelcretzman michaelcretzman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with some minor suggestions.
Typically, we avoid "will be" in favor of the present tense.

@sarah-witt sarah-witt added this pull request to the merge queue Jan 17, 2025
Merged via the queue into master with commit 5658647 Jan 17, 2025
42 of 43 checks passed
@sarah-witt sarah-witt deleted the sarah/add-octopus-integration branch January 17, 2025 16:31
github-actions bot pushed a commit that referenced this pull request Jan 17, 2025
* Add scaffolding

* add link to readme

* clean up manifest

* validate ci

* validate models and config;

* add labeler

* remove dash

* fix manifest

* clean scaffolding and add base fixtures

* add base code and test

* fix changelog

* update and validate config

* add metric to check

* Add mocks and make true unit tests

* Add support for first level space autodiscovery

* Add support fot project groups discovery

* Add support for projects

* remove spaces discovery and add it as configuration option

* clean up code and tests

* move initializations to check init

* add support for task count metrics

* refactor to reference project_group

* submit project metrics in check method

* Add handle_error wrapper and add more logging

* bump python version

* Add e2e test

* lint

* add http template to config spec

* refactor test files and add caddy e2e

* lint

* fix tests

* Add deployment duration metric

* rename to seconds

* Add queue time metric

* Add deploy success metric

* Add can rerun metric

* add metric for has warnings or errors

* sort readme

* Sarah/add octopus server metrics (#18868)

* Add support for server node metrics

* add server node mocks

* remove task id tag

* update caddyfile

* remove dead code

* update codeowners

* add e2e lab and update config

* Address comments

* Update projects logic and refactor (#19087)

* Fix new deployment logic and support in progress and queued deployments

* sync metadata

* update caddyfile

* fix

* add to completed date

* Refactor

* fixed e2e tests

* fixed instance fixture

* fixed e2e test

* added some e2e asserts

* fixed lint error

* all metrics asserted

* Add test asserting metadata, add test and handle failure of tasks

* store base tags

* Don't report completed and executing metrics if no data

* Add support for octopus server node metrics

* remove unused constants

* validate

* lint

* update e2e

* update metadata

* Use project name and project group name tags

* Use space name instead of space id

* Update log lines

* update test instance

* Update metric description

---------

Co-authored-by: Jose Manuel Almaza <[email protected]>

* Make assertions more specific

* Add support for events (#19176)

* [PLINT-484]  Add support for deployment logs (#19152)

* Add support for deployment logs

* Add server node tag

* add e2e_metrics

* remove completed_time

* Address comments

* add extra assert

* [PLINT-469] Add support for pagination in octopus integration (#19228)

* Add support for pagination

* update caddyfile and remove unneeded args

* Apply suggestions

* update config docs (#19243)

* [PLINT-543] Add support for environment metrics and tagging by environment, deployment, and release (#19192)

* Add support for environment metrics

* Add config for autodiscovery

* Add support for environments via discovery

* Add environment, release, and deployment tags

* Add caching for environments, releases, and deployments

* add to caddyfile

* remove env fallback

* change environments cache to dictionary

* use tuple for deployment

* Add pagination for environments

* update caddyfile

* update environments config

* sync models

* Filter by environment

* only collect deploy tasks

* update caddyfile

* Add support for waiting, queued, executing metrics (#19291)

* support unified service tagging: (#19342)

* fix headers for new year

* [PLINT-542] Add machines metrics  (#19285)

* Add support for machine metrics

* add role tags

* change to startswith

* validate metadata

* Address comments

* Add octopus server tag to all metrics, events, and logs  (#19318)

* Add support for machine metrics

* add role tags

* change to startswith

* validate metadata

* Address comments

* Add octopus server tag

* Add collect_events option

* Update docs

* dont use future tense in config

---------

Co-authored-by: Jose Manuel Almaza <[email protected]> 5658647
@sabrina-datadog sabrina-datadog restored the sarah/add-octopus-integration branch January 17, 2025 19:13
sabrina-datadog added a commit that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants