forked from dynatrace-perfclinics/platform-engineering-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New App Onboarding: simplenodeservice-team03-preprod
- Loading branch information
1 parent
61f9bc3
commit 8e671c7
Showing
17 changed files
with
773 additions
and
0 deletions.
There are no files selected for viewing
231 changes: 231 additions & 0 deletions
231
customer-apps/simplenodeservice-team03-preprod/argohookjobs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,231 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: dynatrace | ||
generateName: dynatrace-presync-notification- | ||
annotations: | ||
argocd.argoproj.io/hook: PreSync | ||
argocd.argoproj.io/hook-delete-policy: HookSucceeded | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: bizevent-pusher | ||
image: ghcr.io/dynatrace-oss/bizevent-pusher:v1.1.1 | ||
args: [ | ||
"--debug", "true", | ||
"--tenant", | ||
"$(TENANT_URL)", | ||
"--oauth-client-id", | ||
"$(OAUTH_CLIENT_ID)", | ||
"--oauth-client-secret", | ||
"$(OAUTH_CLIENT_SECRET)", | ||
"--account_urn", | ||
"$(ACCOUNT_URN)", | ||
"--payload", | ||
"{ \"event.provider\": \"argocd\", \"event.type\": \"sync.prepare\", | ||
\"app_name\": \"simplenodeservice-team03\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team03\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team03-preprod\", | ||
\"result\": \"success\" | ||
}" | ||
] | ||
env: | ||
- name: TENANT_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: dtTenant | ||
- name: OAUTH_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientID | ||
- name: OAUTH_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientSecret | ||
- name: ACCOUNT_URN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: accountURN | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: dynatrace | ||
generateName: dynatrace-sync-notification- | ||
annotations: | ||
argocd.argoproj.io/hook: Sync | ||
argocd.argoproj.io/hook-delete-policy: HookSucceeded | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: bizevent-pusher | ||
image: ghcr.io/dynatrace-oss/bizevent-pusher:v1.1.1 | ||
args: [ | ||
"--debug", "true", | ||
"--tenant", | ||
"$(TENANT_URL)", | ||
"--oauth-client-id", | ||
"$(OAUTH_CLIENT_ID)", | ||
"--oauth-client-secret", | ||
"$(OAUTH_CLIENT_SECRET)", | ||
"--account_urn", | ||
"$(ACCOUNT_URN)", | ||
"--payload", | ||
"{ \"event.provider\": \"argocd\", \"event.type\": \"sync.started\", | ||
\"app_name\": \"simplenodeservice-team03\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team03\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team03-preprod\", | ||
\"result\": \"success\" | ||
}" | ||
] | ||
env: | ||
- name: TENANT_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: dtTenant | ||
- name: OAUTH_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientID | ||
- name: OAUTH_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientSecret | ||
- name: ACCOUNT_URN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: accountURN | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: dynatrace | ||
generateName: dynatrace-postsync-notification- | ||
annotations: | ||
argocd.argoproj.io/hook: PostSync | ||
argocd.argoproj.io/hook-delete-policy: HookSucceeded | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: bizevent-pusher | ||
image: ghcr.io/dynatrace-oss/bizevent-pusher:v1.1.1 | ||
args: [ | ||
"--debug", "true", | ||
"--tenant", | ||
"$(TENANT_URL)", | ||
"--oauth-client-id", | ||
"$(OAUTH_CLIENT_ID)", | ||
"--oauth-client-secret", | ||
"$(OAUTH_CLIENT_SECRET)", | ||
"--account_urn", | ||
"$(ACCOUNT_URN)", | ||
"--payload", | ||
"{ \"event.provider\": \"argocd\", \"event.type\": \"sync.finished\", | ||
\"app_name\": \"simplenodeservice-team03\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team03\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team03-preprod\", | ||
\"result\": \"success\" | ||
}" | ||
] | ||
env: | ||
- name: TENANT_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: dtTenant | ||
- name: OAUTH_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientID | ||
- name: OAUTH_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientSecret | ||
- name: ACCOUNT_URN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: accountURN | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
namespace: dynatrace | ||
generateName: dynatrace-postsync-notification- | ||
annotations: | ||
argocd.argoproj.io/hook: SyncFail | ||
argocd.argoproj.io/hook-delete-policy: HookSucceeded | ||
spec: | ||
template: | ||
spec: | ||
restartPolicy: Never | ||
containers: | ||
- name: bizevent-pusher | ||
image: ghcr.io/dynatrace-oss/bizevent-pusher:v1.1.1 | ||
args: [ | ||
"--debug", "true", | ||
"--tenant", | ||
"$(TENANT_URL)", | ||
"--oauth-client-id", | ||
"$(OAUTH_CLIENT_ID)", | ||
"--oauth-client-secret", | ||
"$(OAUTH_CLIENT_SECRET)", | ||
"--account_urn", | ||
"$(ACCOUNT_URN)", | ||
"--payload", | ||
"{ \"event.provider\": \"argocd\", \"event.type\": \"sync.finished\", | ||
\"app_name\": \"simplenodeservice-team03\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team03\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team03-preprod\", | ||
\"result\": \"failed\" | ||
}" | ||
] | ||
env: | ||
- name: TENANT_URL | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: dtTenant | ||
- name: OAUTH_CLIENT_ID | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientID | ||
- name: OAUTH_CLIENT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: oAuthClientSecret | ||
- name: ACCOUNT_URN | ||
valueFrom: | ||
secretKeyRef: | ||
name: dt-bizevent-oauth-details | ||
key: accountURN |
47 changes: 47 additions & 0 deletions
47
customer-apps/simplenodeservice-team03-preprod/backstagetemplates/catalog-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: "simplenodeservice-team03-preprod" | ||
title: "simplenodeservice-team03-preprod" | ||
description: "Template for the simplenodeservice owned and operated by team03 in environment preprod" | ||
annotations: | ||
backstage.io/techdocs-ref: dir:. | ||
# Not working | ||
'backstage.io/kubernetes-label-selector': 'app.kubernetes.io/name=userinterface' | ||
'backstage.io/kubernetes-namespace': 'simplenodeservice-team03-preprod' | ||
argocd/app-name: simplenodeservice-team03-preprod | ||
links: | ||
- url: https://github.com/johannes-b/platform-engineering-demo.git | ||
title: Github Repo | ||
icon: github | ||
- url: https://expert-space-meme-4497r557x2qj45-80.app.github.dev/simplenodeservice-team03-preprod | ||
title: "Browse Application" | ||
icon: subject | ||
- title: View in ArgoCD | ||
icon: catalog | ||
url: https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team03-preprod | ||
- title: View in Dynatrace | ||
icon: catalog | ||
url: https://pgg27996.dev.apps.dynatracelabs.com | ||
- url: https://community.dynatrace.com | ||
title: Dynatrace community | ||
icon: dashboard | ||
spec: | ||
type: website | ||
owner: team03 | ||
lifecycle: preprod | ||
--- | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Group | ||
metadata: | ||
name: "team03" | ||
description: Group for application team team03 | ||
spec: | ||
type: business-unit | ||
profile: | ||
displayName: Team 03 | ||
email: [email protected] | ||
picture: https://example.com/staff/jenny-with-party-hat.jpeg | ||
parent: applications | ||
children: [] | ||
# members: [jdoe] |
13 changes: 13 additions & 0 deletions
13
customer-apps/simplenodeservice-team03-preprod/docs/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Docs for simplenodeservice in environment preprod | ||
|
||
Managed by: team03 | ||
Environment: preprod | ||
|
||
## ArgoCD Status | ||
|
||
[](https://CODESPACE_NAME_PLACEHOLDER-ARGOCD_PORT_NUMBER_PLACEHOLDER.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN_PLACEHOLDER/applications/argocd/simplenodeservice-team03-preprod) | ||
|
||
## Monitored by Dynatrace | ||
📈Click the logo to view your dashboard 📈 | ||
|
||
[](DT_TENANT_APPS_PLACEHOLDER/ui/apps/dynatrace.dashboards/) |
26 changes: 26 additions & 0 deletions
26
customer-apps/simplenodeservice-team03-preprod/ingress.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: "simplenodeservice-team03" | ||
namespace: "simplenodeservice-team03-preprod" | ||
labels: | ||
dt.owner: "team03" | ||
annotations: | ||
kubernetes.io/ingress.class: nginx | ||
nginx.ingress.kubernetes.io/ssl-redirect: "false" | ||
nginx.ingress.kubernetes.io/force-ssl-redirect: "false" | ||
nginx.ingress.kubernetes.io/use-regex: "true" | ||
nginx.ingress.kubernetes.io/rewrite-target: /$2 | ||
spec: | ||
rules: | ||
- http: | ||
paths: | ||
- path: /simplenodeservice-team03-preprod(/)*(.*) | ||
#- path: "/simplenodeservice-team03-preprod" | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: "simplenodeservice-team03" | ||
port: | ||
number: 80 |
33 changes: 33 additions & 0 deletions
33
customer-apps/simplenodeservice-team03-preprod/monaco/configure-dt/owners/appteam.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"name":"{{ .name }}", | ||
"description":"{{ .descr }}", | ||
"identifier":"{{ .team_id }}", | ||
"responsibilities": | ||
{ | ||
"development": {{ .development }}, | ||
"security":{{ .security }}, | ||
"operations":{{ .operations }}, | ||
"infrastructure":{{ .infrastructure }}, | ||
"lineOfBusiness":{{ .lineOfBusiness }} | ||
}, | ||
"contactDetails": [ | ||
{ | ||
"integrationType":"SLACK", | ||
"slackChannel":"{{ .slackChannel }}", | ||
"url":"{{ .slackURL }}" | ||
}, | ||
{ | ||
"integrationType":"EMAIL", | ||
"email":"{{ .email }}" | ||
} | ||
], | ||
"links":[], | ||
"additionalInformation": | ||
[ | ||
{ | ||
"key":"{{ .addInfoKey }}", | ||
"value":"{{ .addInfoValue }}", | ||
"url":"{{ .addInfoUrl }}" | ||
} | ||
] | ||
} |
24 changes: 24 additions & 0 deletions
24
customer-apps/simplenodeservice-team03-preprod/monaco/configure-dt/owners/owners.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
configs: | ||
- id: team03 | ||
type: | ||
settings: | ||
schema: builtin:ownership.teams | ||
scope: environment | ||
config: | ||
name: team03 | ||
template: appteam.json | ||
parameters: | ||
descr: Team 03 | ||
team_id: team03 | ||
development: true | ||
security: false | ||
operations: true | ||
infrastructure: false | ||
lineOfBusiness: false | ||
slackChannel: somewhere | ||
slackURL: https://somewhere.slack.com/archives/team03 | ||
email: [email protected] | ||
addInfoKey: costcode | ||
addInfoValue: team03 | ||
addInfoUrl: https://example.com/team03 | ||
skip: false |
15 changes: 15 additions & 0 deletions
15
customer-apps/simplenodeservice-team03-preprod/monaco/configure-dt/slos/slos.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"enabled": true, | ||
"name": "{{ .name }}", | ||
"metricName": "{{ .metricName }}", | ||
"metricExpression": "{{ .metricExpression }}", | ||
"evaluationType": "AGGREGATE", | ||
"filter": "{{ .filter }}", | ||
"evaluationWindow": "-1w", | ||
"targetSuccess": {{ .thresholdTarget }}, | ||
"targetWarning": {{ .thresholdWarning }}, | ||
"errorBudgetBurnRate": { | ||
"burnRateVisualizationEnabled": true, | ||
"fastBurnThreshold": 10 | ||
} | ||
} |
Oops, something went wrong.