Skip to content

Commit

Permalink
amending Readme.md
Browse files Browse the repository at this point in the history
adding s3 dashboard module

renaming variable.tf

CCL-898 json config

updating visual config

updating width of tiles

adding .github

adding .github

adding .github

CCL-898  golden dashboards

CCL-898 added mks dashboards

CCL-898 latest

CCL-898-test latest classic dashboards

adding varibales file

amending README file
  • Loading branch information
MOHAMMED-ho committed Oct 24, 2024
1 parent f09fb34 commit 791c9fc
Show file tree
Hide file tree
Showing 15 changed files with 3,278 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
24 changes: 24 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "(GHA)"
reviewers:
- "UKHomeOffice/core-cloud-devops"
labels:
- "dependencies"
- "patch"
- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "(TF)"
reviewers:
- "UKHomeOffice/core-cloud-devops"
labels:
- "dependencies"
- "patch"
26 changes: 26 additions & 0 deletions .github/workflows/pull-request-sast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validate Terraform with Trivy

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
RunTerraformValidation:
name: Run Terraform SAST
runs-on: ubuntu-latest

steps:
- name: Clone the Repository
uses: actions/checkout@v4

# Results have to be a table as the organisation does not have Advanced Security license.
- name: Terraform Trivy Scan
uses: aquasecurity/trivy-action@0.19.0
with:
scan-type: 'config'
exit-code: '1'
39 changes: 39 additions & 0 deletions .github/workflows/pull-request-semver-label-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Check PR for SemVer Label'
on:
pull_request:
types:
- labeled
- unlabeled
- opened
- reopened
- synchronize
branches:
- main

permissions:
pull-requests: read
contents: read

jobs:
semver-check:
name: 'Check PR for SemVer Label'
if: |
contains(github.event.pull_request.labels.*.name, 'skip-release') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Parse the SemVer label
id: label
uses: UKHomeOffice/match-label-action@v1
with:
labels: minor,major,patch
mode: singular

- name: Calculate SemVer value
id: calculate
uses: UKHomeOffice/semver-calculate-action@v2
with:
increment: ${{ steps.label.outputs.matchedLabels }}
github_token: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/pull-request-semver-tag-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'SemVer Tag on Main Merge'
on:
pull_request:
types:
- closed
branches:
- main

permissions:
pull-requests: read
contents: write

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
semver-tag:
name: 'Tag Repository with SemVer'
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'skip-release') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Parse the SemVer label
id: label
uses: UKHomeOffice/match-label-action@v1
with:
labels: minor,major,patch
mode: singular

- name: Calculate SemVer value
id: calculate
uses: UKHomeOffice/semver-calculate-action@v2
with:
increment: ${{ steps.label.outputs.matchedLabels }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Tag Repository
uses: UKHomeOffice/semver-tag-action@v4
with:
tag: ${{ steps.calculate.outputs.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
61 changes: 61 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# core-cloud-dynatrace-golden-dashboards-terraform
Note: as we dont have any metrics in Dynatarce as of yet, these templates do not contain the dimensions fo rnow, these will be updated once we have got metrics coming into dynatrace.
7 changes: 7 additions & 0 deletions files/rds_latest.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# resource "dynatrace_document" "this" {
# type = "dashboard"
# name = "latest_dashboards_rds"
# content = file("./rds.json")
# }

# #data "dynatrace_documents" "all-dashboard-and-notebooks" {}
Loading

0 comments on commit 791c9fc

Please sign in to comment.