Skip to content

Commit

Permalink
Update links (#50)
Browse files Browse the repository at this point in the history
* Update links

* Update more links
  • Loading branch information
omaen authored Sep 3, 2024
1 parent 51f0ad1 commit 99a1021
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
28 changes: 14 additions & 14 deletions docs/04-generelt/01-oversikt-over-tjenester-SKIP-tilbyr.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
Økosystemet rundt SKIP endrer seg støtt og stadig. Det kan godt hende denne siden ikke er helt oppdatert med alle tjenester.
![](images/680230937.jpg)

| **Navn på tjenesten** | **Informasjon** | **Adresse** |
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| Google Anthos | - [https://cloud.google.com/anthos/](https://cloud.google.com/anthos/) | [Google Cloud Console](https://console.cloud.google.com/l) |
| Google Cloud Storage | - [Sikker bruk av Terraform State på Google Cloud Storage](https://kartverket.atlassian.net/wiki/spaces/SKIPDOK/pages/306810004/Sikker+bruk+av+Terraform+State+p+Google+Cloud+Storage) |
| **Navn på tjenesten** | **Informasjon** | **Adresse** |
|-----------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Google Anthos | - [https://cloud.google.com/anthos/](https://cloud.google.com/anthos/) | [Google Cloud Console](https://console.cloud.google.com/l) |
| Google Cloud Storage | - [Sikker bruk av Terraform State på Google Cloud Storage](https://kartverket.atlassian.net/wiki/spaces/SKIPDOK/pages/306810004/Sikker+bruk+av+Terraform+State+p+Google+Cloud+Storage) |
| [Google Cloud Storage](https://cloud.google.com/storage/) | |
| Google Secret Manager | - [Oppsett og bruk av Secret Manager](../05-gcp/03-oppsett-og-bruk-av-secret-manager.md) | |
| GitHub Git-repository | - [Opprette nytt repo på GitHub](../07-github/03-opprette-nytt-repo-på-github.md) | [https://github.com/kartverket](https://github.com/kartverket) |
| GitHub Advanced Security | - [Sikkerhet på GitHub](https://kartverket.atlassian.net/wiki/spaces/SIK/pages/308216163/Sikkerhet+p+GitHub) | `https://github.com/kartverket/<<navn på repository>>/actions` |
| GitHub Action | - [GitHub Actions som CI/CD](../08-github-actions/index.md) | `https://github.com/kartverket/<<navn på repository>>/security` |
| GitHub Action on-prem | | |
| Grafana | | [https://monitoring.kartverket.dev](https://monitoring.kartverket.dev/) |
| Dynamisk Tilgangskontroll GCP (JIT) | | [https://jit.skip.kartverket.no/](https://jit.skip.kartverket.no/) |
| Scality S3-kompatibel lagring | | [https://s3-rin.statkart.no/\_/console/login](https://s3-rin.statkart.no/_/console/login)<br/>[https://s3-rin.statkart.no/\_/s3browser/connect](https://s3-rin.statkart.no/_/s3browser/connect) |
| ArgoCD | [Komme i gang med Argo CD](../09-argo-cd/01-komme-i-gang-med-argocd.md) | |
| Google Secret Manager | - [Oppsett og bruk av Secret Manager](../05-gcp/03-oppsett-og-bruk-av-secret-manager.md) | |
| GitHub Git-repository | - [Opprette nytt repo på GitHub](../07-github/03-opprette-nytt-repo-på-github.md) | [https://github.com/kartverket](https://github.com/kartverket) |
| GitHub Advanced Security | - [Sikkerhet på GitHub](https://kartverket.atlassian.net/wiki/spaces/SIK/pages/308216163/Sikkerhet+p+GitHub) | `https://github.com/kartverket/<<navn på repository>>/actions` |
| GitHub Action | - [GitHub Actions som CI/CD](../08-github-actions/index.md) | `https://github.com/kartverket/<<navn på repository>>/security` |
| Grafana | | [https://monitoring.kartverket.cloud](https://monitoring.kartverket.cloud/) |
| Dynamisk Tilgangskontroll GCP (JIT) | | [https://jit.skip.kartverket.no/](https://jit.skip.kartverket.no/) |
| Scality S3-kompatibel lagring | | [https://s3-rin.statkart.no/\_/console/login](https://s3-rin.statkart.no/_/console/login)<br/>[https://s3-rin.statkart.no/\_/s3browser/connect](https://s3-rin.statkart.no/_/s3browser/connect) |
| ArgoCD | [Komme i gang med Argo CD](../09-argo-cd/01-komme-i-gang-med-argocd.md) | |
| Backstage | | [https://kartverket.dev](https://kartverket.dev) |

# Formål med dokument

Expand All @@ -29,7 +29,7 @@ GKE Enterprise er Googles hybridplatformsløsning for å kunne kjøre et Kuberne

# Logging, metrikker, tracing og alarmer

SKIP tilbyr innsyn i applikasjoners metrikker og logger ved hjelp av Grafana. Dette kan nås på [https://monitoring.kGartverket.dev](https://monitoring.kartverket.dev/) .
SKIP tilbyr innsyn i applikasjoners metrikker og logger ved hjelp av Grafana. Dette kan nås på [https://monitoring.kartverket.cloud](https://monitoring.kartverket.cloud/) .

## Grafana

Expand Down
5 changes: 2 additions & 3 deletions docs/04-generelt/03-sjekkliste-før-internett-eksponering.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ Før dette kan gjøres må man gå igjennom denne sjekklisten:
- [Logs with Loki](../10-observability/05-logs-with-Loki.md)
- [Alerting with Grafana](../10-observability/04-alerting-with-grafana.md)

Denne sjekklisten gjelder eksponering av tjenster som skal være tilgjengelig på internett, uavhengig av miljø (dev/test/prod). Hvis man har planer om å eksponere en applikasjon idevellertestmå man i tillegg kontakte SKIP for å sikre at alle sikkerhetskrav overholdes.
Denne sjekklisten gjelder eksponering av tjenester som skal være tilgjengelig på internett, uavhengig av miljø (dev/prod). Hvis man ønsker og har behov for å eksponere en applikasjon eksternt i dev må man i tillegg kontakte SKIP for å sikre at alle sikkerhetskrav overholdes.

Navnekonvensjon for eksternt tilgjengelig domenenavn vil i så fall være

- &lt;applikasjonX&gt;.dev.kartverket.no
- &lt;applikasjonX&gt;.test.kartverket.no
- \<applikasjonX\>.atkv3-dev.kartverket.cloud
7 changes: 4 additions & 3 deletions docs/09-argo-cd/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ Dokumentasjonen til Argo CD er også veldig god, så det kan være greit å gå

## Lenker til Argo

- [Dev (argocd.dev.skip.statkart.no)](https://argocd.dev.skip.statkart.no/)
- [Test (argocd.test.skip.statkart.no)](https://argocd.test.skip.statkart.no/)
- [Prod (argocd.prod.skip.statkart.no)](https://argocd.prod.skip.statkart.no/)
Du må være på Kartverkets nettverk eller VPN for å kunne nå disse lenkene.

- [Dev (argo-dev.kartverket.dev)](https://argo-dev.kartverket.dev/)
- [Prod (argo-prod.kartverket.dev)](https://argo-prod.kartverket.dev/)

## GitOps

Expand Down
2 changes: 1 addition & 1 deletion docs/10-observability/01-metrics-with-Grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:

### Viewing metrics

In order to view metrics and dashboards, visit our Grafana instance at [monitoring.kartverket.dev](https://monitoring.kartverket.dev/) .
In order to view metrics and dashboards, visit our Grafana instance at [monitoring.kartverket.cloud](https://monitoring.kartverket.cloud/) .

Here we offer pre-provisioned dashboards that can be viewed to gain insight into how an environment is performing, as well as more detailed metrics about single applications. In addition, there is a dashboard named `JVM (Micrometer)` which is a generic dashboard that offers basic information about Java applications, instrumented through Micrometer.

Expand Down
2 changes: 1 addition & 1 deletion docs/10-observability/02-distributed-tracing-with-tempo.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ There is currently no inbuilt mechanism in [ArgoKit](https://github.com/kartverk

### View traces

Traces can be viewed through our Grafana instance at [monitoring.kartverket.dev](https://monitoring.kartverket.dev/) . From here, choose **Explore** in the menu and then the correct **Tempo** data source corresponding to the environment you wish to view traces for.
Traces can be viewed through our Grafana instance at [monitoring.kartverket.cloud](https://monitoring.kartverket.cloud/) . From here, choose **Explore** in the menu and then the correct **Tempo** data source corresponding to the environment you wish to view traces for.


After that, you have the choice of using the **Search** (graphical build tool for queries) or **TraceQL** (manual query specification) tools.
Expand Down
14 changes: 7 additions & 7 deletions docs/10-observability/04-alerting-with-grafana.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Applications on SKIP use [Grafana](https://grafana.com/) for monitoring for unex
Here are some useful links for handling alerts:

- [Alert config (grafana-alerts on GitHub)](https://github.com/kartverket/grafana-alerts)
- [Alert dashboard](https://monitoring.kartverket.dev/alerting/list?view=state)
- [Critical alerts dashboard](https://monitoring.kartverket.dev/d/dd79f2b5-feca-45ff-9396-f67d22adc3c5/alerts?orgId=1)
- [Current active incidents](https://monitoring.kartverket.dev/a/grafana-oncall-app/alert-groups)
- [Synthetic Monitoring overview](https://monitoring.kartverket.dev/d/fU-WBSqWz/synthetic-monitoring-summary?dashboard=summary&orgId=1)
- [Synthetic Monitoring checks](https://monitoring.kartverket.dev/a/grafana-synthetic-monitoring-app/checks)
- [Planned alert silences (maintainance periods)](https://monitoring.kartverket.dev/alerting/silences)
- [Alert Schedules](https://monitoring.kartverket.dev/a/grafana-oncall-app/schedules?p=1)
- [Alert dashboard](https://monitoring.kartverket.cloud/alerting/list?view=state)
- [Critical alerts dashboard](https://monitoring.kartverket.cloud/d/dd79f2b5-feca-45ff-9396-f67d22adc3c5/alerts?orgId=1)
- [Current active incidents](https://monitoring.kartverket.cloud/a/grafana-oncall-app/alert-groups)
- [Synthetic Monitoring overview](https://monitoring.kartverket.cloud/d/fU-WBSqWz/synthetic-monitoring-summary?dashboard=summary&orgId=1)
- [Synthetic Monitoring checks](https://monitoring.kartverket.cloud/a/grafana-synthetic-monitoring-app/checks)
- [Planned alert silences (maintainance periods)](https://monitoring.kartverket.cloud/alerting/silences)
- [Alert Schedules](https://monitoring.kartverket.cloud/a/grafana-oncall-app/schedules?p=1)

## Creating alerts

Expand Down
14 changes: 7 additions & 7 deletions docs/10-observability/07-grafana-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ This is a collection of tips&tricks that are useful when troubleshooting problem

### Top 20 of metrics with high cardinality

[https://monitoring.kartverket.dev/goto/cc_GwW1SR?orgId=1](https://monitoring.kartverket.dev/goto/cc_GwW1SR?orgId=1)
[https://monitoring.kartverket.cloud/goto/cc_GwW1SR?orgId=1](https://monitoring.kartverket.cloud/goto/cc_GwW1SR?orgId=1)

```java
```promql
# Set time range to "Last 5 minutes"
topk(20, count by (__name__)({__name__=~".+"}))
```

### Top 10 namespaces with overallocated cpu resources

[https://monitoring.kartverket.dev/goto/6V2jQZJIg?orgId=1](https://monitoring.kartverket.dev/goto/6V2jQZJIg?orgId=1)
[https://monitoring.kartverket.cloud/goto/6V2jQZJIg?orgId=1](https://monitoring.kartverket.cloud/goto/6V2jQZJIg?orgId=1)

```java
```promql
topk(10, sum by (namespace)
(kube_pod_container_resource_requests{job="integrations/kubernetes/kube-state-metrics", resource="cpu"})
- sum by (namespace) (rate(container_cpu_usage_seconds_total{}[$__rate_interval])))
```

### Sum of overallocated cpu for containers by namespace

[https://monitoring.kartverket.dev/goto/xF2DlW1SR?orgId=1](https://monitoring.kartverket.dev/goto/xF2DlW1SR?orgId=1)
[https://monitoring.kartverket.cloud/goto/xF2DlW1SR?orgId=1](https://monitoring.kartverket.cloud/goto/xF2DlW1SR?orgId=1)

```java
```promql
sum by (container)
(kube_pod_container_resource_requests{job="integrations/kubernetes/kube-state-metrics", resource="cpu", namespace=~"matrikkel.*"})
- sum by (container) (rate(container_cpu_usage_seconds_total{namespace=~"matrikkel.*"}[$__rate_interval]))
```

### Daily amount of requests by destination app and response code

```java
```promql
sum by (destination_app, response_code) (
increase(istio_requests_total{namespace="<namespace name>", response_code=~".*", source_app="istio-ingress-external"}[1d])
)
Expand Down

0 comments on commit 99a1021

Please sign in to comment.