Skip to content

Commit

Permalink
feat: Remove all traces of dynatrace
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Oct 17, 2024
1 parent 76f023e commit 8e0c9ec
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 142 deletions.
3 changes: 0 additions & 3 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ API_RESOURCE_ID=

# Set proxy if on restricted network
NPM_PROXY=

# Dynatrace API token to use for display of metrics
DYNATRACE_API_TOKEN=
1 change: 0 additions & 1 deletion docker-compose-host-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ services:
web:
condition: service_healthy
environment:
- DYNATRACE_API_TOKEN=${DYNATRACE_API_TOKEN}
- NO_PROXY=localhost,0.0.0.0
- no_proxy=localhost,0.0.0.0
- HTTP_PROXY=
Expand Down
2 changes: 0 additions & 2 deletions docker-compose-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ services:
image: nginxinc/nginx-unprivileged:1.26-alpine
container_name: radix-proxy_container
read_only: true
environment:
- DYNATRACE_API_TOKEN=${DYNATRACE_API_TOKEN}
volumes:
- type: bind
source: ./proxy/server.dev-host.conf
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ services:
image: nginxinc/nginx-unprivileged:1.26-alpine
container_name: radix-proxy_container
read_only: true
environment:
- DYNATRACE_API_TOKEN=${DYNATRACE_API_TOKEN}
volumes:
- type: bind
source: ./proxy/server.dev.conf
Expand Down
1 change: 0 additions & 1 deletion proxy/run_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ envsubst '
${RADIX_CLUSTERNAME}
${RADIX_DNS_ZONE}
${RADIX_ENVIRONMENT}
${DYNATRACE_API_TOKEN}
' </default.conf >/etc/nginx/conf.d/tmp.conf
mv /etc/nginx/conf.d/tmp.conf /etc/nginx/conf.d/default.conf

Expand Down
6 changes: 0 additions & 6 deletions proxy/server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ server {
proxy_set_header x-forwarded-access-token "";
}

location /uptime-api/ {
proxy_pass https://spa-equinor.kanari.com/e/eddaec99-38b1-4a9c-9f4c-9148921efa10/api/;
proxy_set_header Authorization "Api-Token ${DYNATRACE_API_TOKEN}";
proxy_set_header x-forwarded-access-token "";
}

location /uptime/ {
proxy_pass https://uptime.ext-mon.radix.equinor.com/;
}
Expand Down
6 changes: 0 additions & 6 deletions proxy/server.dev-host-macos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ server {
proxy_set_header x-forwarded-access-token "";
}

location /uptime-api/ {
proxy_pass https://spa-equinor.kanari.com/e/eddaec99-38b1-4a9c-9f4c-9148921efa10/api/;
proxy_set_header Authorization "Api-Token ${DYNATRACE_API_TOKEN}";
proxy_set_header x-forwarded-access-token "";
}

location /uptime/ {
proxy_pass https://uptime.ext-mon.radix.equinor.com/;
}
Expand Down
6 changes: 0 additions & 6 deletions proxy/server.dev-host.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ server {
proxy_set_header x-forwarded-access-token "";
}

location /uptime-api/ {
proxy_pass https://spa-equinor.kanari.com/e/eddaec99-38b1-4a9c-9f4c-9148921efa10/api/;
proxy_set_header Authorization "Api-Token ${DYNATRACE_API_TOKEN}";
proxy_set_header x-forwarded-access-token "";
}

location /uptime/ {
proxy_pass https://uptime.ext-mon.radix.equinor.com/;
}
Expand Down
6 changes: 0 additions & 6 deletions proxy/server.dev.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ server {
proxy_set_header x-forwarded-access-token "";
}

location /uptime-api/ {
proxy_pass https://spa-equinor.kanari.com/e/eddaec99-38b1-4a9c-9f4c-9148921efa10/api/;
proxy_set_header Authorization "Api-Token ${DYNATRACE_API_TOKEN}";
proxy_set_header x-forwarded-access-token "";
}

location /uptime/ {
proxy_pass https://uptime.ext-mon.radix.equinor.com/;
}
Expand Down
1 change: 0 additions & 1 deletion radixconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ spec:
CLUSTER_OIDC_ISSUER_URL: ""
CMDB_CI_URL: "https://equinor.service-now.com/selfservice?id=form&table=cmdb_ci_spkg&sys_id={CIID}"
secrets:
- DYNATRACE_API_TOKEN # Token to use for display of availability metrics
- OAUTH2_CLIENT_ID # Azure Application ID
environmentConfig:
- environment: qa
Expand Down
6 changes: 0 additions & 6 deletions src/store/configs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ export const msGraphStoreApi = createApi({
endpoints: () => ({}),
});

export const dynatraceStoreApi = createApi({
reducerPath: 'dynatraceApi',
baseQuery: fetchBaseQuery({ baseUrl: '/uptime-api' }),
endpoints: () => ({}),
});

export const uptimeApi = createApi({
reducerPath: 'uptimeAPi',
baseQuery: fetchBaseQuery({ baseUrl: '/uptime' }),
Expand Down
99 changes: 0 additions & 99 deletions src/store/dynatrace-api.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { setupListeners } from '@reduxjs/toolkit/query';

import {
costStoreApi,
dynatraceStoreApi,
logStoreApi,
msGraphStoreApi,
radixStoreApi,
Expand All @@ -21,7 +20,6 @@ const store = configureStore({
[scanStoreApi.reducerPath]: scanStoreApi.reducer,
[serviceNowStoreApi.reducerPath]: serviceNowStoreApi.reducer,
[msGraphStoreApi.reducerPath]: msGraphStoreApi.reducer,
[dynatraceStoreApi.reducerPath]: dynatraceStoreApi.reducer,
[uptimeApi.reducerPath]: uptimeApi.reducer,
auth: authReducer,
},
Expand All @@ -34,7 +32,6 @@ const store = configureStore({
scanStoreApi.middleware,
serviceNowStoreApi.middleware,
msGraphStoreApi.middleware,
dynatraceStoreApi.middleware,
uptimeApi.middleware,
),
devTools: true,
Expand Down

0 comments on commit 8e0c9ec

Please sign in to comment.