-
Notifications
You must be signed in to change notification settings - Fork 17
/
sample_input.yaml
171 lines (164 loc) · 4.07 KB
/
sample_input.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
---
title: SampleTitle
service: SampleService
grafana_folder: SampleFolder
alert_config:
notification_channels: ["service-opsgenie"]
tags:
key: value
description: Logging tool for everything deployed on kubernetes
references:
deployment: https://github.com/grofers/legend/tree/master/helm-chart/legend/Readme.md
documentation: https://github.com/grofers/legend/tree/master/docs
metrics_definition: https://github.com/grofers/legend
tags:
- prod
- infra
graphTooltip: 1
components:
# SLO component sample input
slo:
dimensions:
- name: "legend-availablity-slo"
availablity: "90"
totalQuery: "sum(increase(apiserver_request_total[2m]))"
errorQuery: "sum(increase(apiserver_request_total[2m]))"
# Application frameworks
playframework:
dimensions:
- service: sample-play-service
springboot:
dimensions:
- job: sample-sprintboot-service
jmx:
dimensions:
- job: sample-jmx-job
service: sample-jmx-service
django:
dimensions:
- job: sample-django-service
flask:
dimensions:
- job: sample-flask-service
nodejs:
dimensions:
- job: sample-nodejs-service
go:
dimensions:
- job: sample-go-service
# Databases
mysql_ec2:
dimensions:
- masters:
- host: sample-mysql-host-master
db_name: sample-db
slaves:
- host: sample-mysql-host-slave
db_name: sample-db
mysql_56_rds:
dimensions:
- db_instance_identifier: sample-rds-mysql56
pgsql_rds:
dimensions:
- db_instance_identifier: sample-rds-psql
redis_elasticache:
dimensions:
- cache_cluster_identifier: sample-elasticache-001
- cache_cluster_identifier: sample-elasticache-002
pgbouncer:
dimensions:
- job_name: sample-pgbouncer
couchdb:
dimensions:
- job_name: sample-couch-service
redis:
dimensions:
- job_name: sample-redis-host
# Workers
celery:
dimensions:
- job_name: sample-celery-instances
# Queues
sqs:
dimensions:
- queue_name: sample-sqs-queue
dead_queue_name: sample-sqs-dead-queue
rabbitmq:
dimensions:
- queue_name: sample-rabbitmq-queue
job: sample-rabbitmq-queue
# Platforms
platform_ec2:
dimensions:
- host: sample-ec2-host
platform_k8s_deployment:
dimensions:
- deployment_name: sample-deployment-name
platform_k8s_statefulset:
dimensions:
- statefulset_name: sample-statefulset-name
platform_k8s_ingress:
dimensions:
- namespace: sample-namespace
service_name: sample-ingress-name
service_type: sample-ingress-type
platform_k8s_cronjob:
dimensions:
- namespace: sample-namespace
cronjob_name: sample-cronjob-name
platform_k8s_hpa:
dimensions:
- deployment_name: sample-deployment-name
hpa_name: sample-hpa-name
elb:
dimensions:
- load_balancer_name: sample-elb-name
alb:
dimensions:
- load_balancer_id: sample-alb-id
region: sample-region
target_group_id: samepl-alb-targetgroup-id
s3:
dimensions:
- bucket_name: sample-s3-bucket
filter_id: EntireBucket
nginx:
dimensions:
- nginx_namespace: sample_nginx_namespace
# Data science tools
airflow:
dimensions:
- cluster: sample-cluster
namespace: sample-namespace
dag_id: samepl-dag-id
starlette:
dimensions:
- job: sample-starlette-service
path: sample-starlette-path
# Applications
consul:
dimensions:
- region: sample-aws-region
haproxy:
dimensions:
- backend: sample-haproxy-backend
vault:
dimensions:
- environment: sample-environment
promtail:
dimensions:
- pod_name: promtail
loki:
dimensions:
- labels:
namespace: sample-namespace ## mandatory field
app: sample-app
tier: presentation
- labels:
namespace: sample-namespace-2 ## mandatory field
app: sample-app-2
tier: data
region: sample-region
filters:
- "err"
- "500"