-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcatalog-info.yaml
45 lines (45 loc) · 2.09 KB
/
catalog-info.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
apiVersion: backstage.io/v1alpha1
kind: Component
spec:
system: ${{values.system | dump}}
type: ${{values.type | dump}}
lifecycle: ${{values.lifecycle | dump}}
owner: ${{values.appGroup | dump}}
metadata:
name: ${{values.component_id | dump}}
{%- if values.description %}
description: ${{values.description | dump}}
{%- endif %}
annotations:
github.com/project-slug: ${{values.destination.owner + "/" + values.destination.repo}}
backstage.io/techdocs-ref: dir:.
argocd/app-name: ${{values.component_id + "-" + values.env}}
backstage.io/kubernetes-id: ${{values.component_id | dump}}
sonarqube.org/project-key: ${{values.component_id | dump}}
grafana/tag-selector: "Kubernetes"
prometheus.io/alert: ContainerHighCpuUtilization,ContainerHighMemoryUsage,ContainerVolumeUsage
prometheus.io/rule: sum by (pod) (container_memory_usage_bytes{namespace="${{values.component_id | dump}}"}), sum by (pod) (container_cpu_usage_seconds_total{namespace="${{values.component_id | dump}}"})
tags:
- golang
# - ${{ values.system }}
- ${{ values.type | dump}}
- ${{ values.lifecycle | dump}}
links:
- url: https://${{values.component_id}}.${{ values.kubernetes.network.domain }}
title: Website
icon: Website
- url: https://grafana.devxp-tech.io/
title: Dashboard
icon: dashboard
- url: https://alerts.devxp-tech.io/
title: Alerts
icon: alert
- url: https://argocd.devxp-tech.io/applications/${{values.component_id + "-" + values.env}}?resource=
title: ArgoCD
icon: cloud
- url: https://grafana.devxp-tech.io/d/k8s_views_ns/kubernetes-views-namespaces?orgId=1&refresh=30s&var-datasource=Prometheus&var-namespace=${{values.component_id}}&var-resolution=30s
title: Logs
icon: cloud
- url: https://kiali.devxp-tech.io/kiali/console/graph/namespaces/?traffic=grpc%2CgrpcRequest%2Chttp%2ChttpRequest%2Ctcp%2CtcpSent&graphType=versionedApp&namespaces=${{values.component_id}}&duration=120&refresh=60000&idleNodes=true&layout=kiali-breadthfirst&namespaceLayout=kiali-dagre
title: Kiali
icon: cloud