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.
Merge pull request #59 from johannes-b/simplenodeservice-team02-preprod
New App Onboarding: simplenodeservice-team02-preprod
- Loading branch information
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-team02-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-team02\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team02\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team02-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-team02\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team02\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team02-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-team02\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team02\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team02-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-team02\", | ||
\"proj_name\": \"simplenodeservice\", | ||
\"stage\": \"preprod\", | ||
\"owner\":\"team02\", | ||
\"git\" : \"https://github.com/johannes-b/platform-engineering-demo.git\", | ||
\"argocd\" : \"https://expert-space-meme-4497r557x2qj45-30100.app.github.dev/applications/argocd/simplenodeservice-team02-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-team02-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-team02-preprod" | ||
title: "simplenodeservice-team02-preprod" | ||
description: "Template for the simplenodeservice owned and operated by team02 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-team02-preprod' | ||
argocd/app-name: simplenodeservice-team02-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-team02-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-team02-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: team02 | ||
lifecycle: preprod | ||
--- | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Group | ||
metadata: | ||
name: "team02" | ||
description: Group for application team team02 | ||
spec: | ||
type: business-unit | ||
profile: | ||
displayName: Team 02 | ||
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-team02-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: team02 | ||
Environment: preprod | ||
|
||
## ArgoCD Status | ||
|
||
[](https://CODESPACE_NAME_PLACEHOLDER-ARGOCD_PORT_NUMBER_PLACEHOLDER.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN_PLACEHOLDER/applications/argocd/simplenodeservice-team02-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-team02-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-team02" | ||
namespace: "simplenodeservice-team02-preprod" | ||
labels: | ||
dt.owner: "team02" | ||
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-team02-preprod(/)*(.*) | ||
#- path: "/simplenodeservice-team02-preprod" | ||
pathType: ImplementationSpecific | ||
backend: | ||
service: | ||
name: "simplenodeservice-team02" | ||
port: | ||
number: 80 |
33 changes: 33 additions & 0 deletions
33
customer-apps/simplenodeservice-team02-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-team02-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: team02 | ||
type: | ||
settings: | ||
schema: builtin:ownership.teams | ||
scope: environment | ||
config: | ||
name: team02 | ||
template: appteam.json | ||
parameters: | ||
descr: Team 02 | ||
team_id: team02 | ||
development: true | ||
security: false | ||
operations: true | ||
infrastructure: false | ||
lineOfBusiness: false | ||
slackChannel: somewhere | ||
slackURL: https://somewhere.slack.com/archives/team02 | ||
email: [email protected] | ||
addInfoKey: costcode | ||
addInfoValue: team02 | ||
addInfoUrl: https://example.com/team02 | ||
skip: false |
15 changes: 15 additions & 0 deletions
15
customer-apps/simplenodeservice-team02-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.