@intentius/chant-lexicon-k8s 0.100.0 → 0.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/dist/actions/apps.d.ts +4 -4
  2. package/dist/actions/apps.d.ts.map +1 -1
  3. package/dist/actions/core.d.ts +5 -5
  4. package/dist/actions/core.d.ts.map +1 -1
  5. package/dist/actions/networking.d.ts.map +1 -1
  6. package/dist/codegen/generate-typescript.d.ts +2 -2
  7. package/dist/codegen/generate-typescript.d.ts.map +1 -1
  8. package/dist/codegen/generate.d.ts.map +1 -1
  9. package/dist/codegen/naming.d.ts.map +1 -1
  10. package/dist/codegen/versions.d.ts.map +1 -1
  11. package/dist/components/capability-plugin.d.ts.map +1 -1
  12. package/dist/composites/catalog.d.ts.map +1 -1
  13. package/dist/composites/cockroachdb-cluster.d.ts +2 -2
  14. package/dist/composites/gke-otel-collector.d.ts.map +1 -1
  15. package/dist/composites/index.d.ts +1 -0
  16. package/dist/composites/index.d.ts.map +1 -1
  17. package/dist/composites/otel-collector-agent.d.ts +24 -2
  18. package/dist/composites/otel-collector-agent.d.ts.map +1 -1
  19. package/dist/composites/otel-collector-gateway.d.ts +37 -52
  20. package/dist/composites/otel-collector-gateway.d.ts.map +1 -1
  21. package/dist/composites/otel-collector-node.d.ts +88 -0
  22. package/dist/composites/otel-collector-node.d.ts.map +1 -0
  23. package/dist/composites/otel-collector-rbac.d.ts +74 -0
  24. package/dist/composites/otel-collector-rbac.d.ts.map +1 -0
  25. package/dist/composites/otel-collector-shape.d.ts +7 -0
  26. package/dist/composites/otel-collector-shape.d.ts.map +1 -1
  27. package/dist/composites/otel-collector.d.ts +17 -21
  28. package/dist/composites/otel-collector.d.ts.map +1 -1
  29. package/dist/composites/ray-cluster.d.ts +6 -6
  30. package/dist/composites/ray-job.d.ts +5 -5
  31. package/dist/composites/ray-service.d.ts +6 -6
  32. package/dist/crd/crd-sources.d.ts.map +1 -1
  33. package/dist/crd/loader.d.ts.map +1 -1
  34. package/dist/crd/oci-chart.d.ts +50 -0
  35. package/dist/crd/oci-chart.d.ts.map +1 -0
  36. package/dist/crd/types.d.ts +5 -0
  37. package/dist/crd/types.d.ts.map +1 -1
  38. package/dist/effect-receipt-row.d.ts.map +1 -1
  39. package/dist/generated/index.d.ts +752 -729
  40. package/dist/generated/index.d.ts.map +1 -1
  41. package/dist/import/embedded.d.ts +4 -2
  42. package/dist/import/embedded.d.ts.map +1 -1
  43. package/dist/import/generator.d.ts.map +1 -1
  44. package/dist/import/live-export.d.ts +5 -0
  45. package/dist/import/live-export.d.ts.map +1 -1
  46. package/dist/import/parser.d.ts.map +1 -1
  47. package/dist/import/testdata/embedded/fixtures.d.ts +6 -0
  48. package/dist/import/testdata/embedded/fixtures.d.ts.map +1 -1
  49. package/dist/integrity.json +8 -6
  50. package/dist/lint/audit-catalog.d.ts.map +1 -1
  51. package/dist/lint/post-synth/index.d.ts.map +1 -1
  52. package/dist/lint/post-synth/otel-placement-helpers.d.ts +5 -1
  53. package/dist/lint/post-synth/otel-placement-helpers.d.ts.map +1 -1
  54. package/dist/lint/post-synth/wk8604.d.ts +19 -0
  55. package/dist/lint/post-synth/wk8604.d.ts.map +1 -0
  56. package/dist/lint/post-synth/wk8605.d.ts +23 -0
  57. package/dist/lint/post-synth/wk8605.d.ts.map +1 -0
  58. package/dist/manifest.json +1 -1
  59. package/dist/meta.json +156 -17
  60. package/dist/okf/index.md +5 -0
  61. package/dist/okf/rules/WK8604.md +11 -0
  62. package/dist/okf/rules/WK8605.md +11 -0
  63. package/dist/okf/types/APIGroup.md +3 -3
  64. package/dist/okf/types/APIGroupList.md +1 -1
  65. package/dist/okf/types/APIResourceList.md +1 -1
  66. package/dist/okf/types/APIService.md +1 -1
  67. package/dist/okf/types/APIServiceList.md +2 -2
  68. package/dist/okf/types/APIVersions.md +1 -1
  69. package/dist/okf/types/BatchJob.md +1 -1
  70. package/dist/okf/types/CSIDriver.md +1 -1
  71. package/dist/okf/types/CSIDriverList.md +2 -2
  72. package/dist/okf/types/CSINode.md +1 -1
  73. package/dist/okf/types/CSINodeList.md +2 -2
  74. package/dist/okf/types/CSIStorageCapacity.md +2 -2
  75. package/dist/okf/types/CSIStorageCapacityList.md +2 -2
  76. package/dist/okf/types/CertificateSigningRequest.md +1 -1
  77. package/dist/okf/types/CertificateSigningRequestList.md +2 -2
  78. package/dist/okf/types/ClusterRole.md +1 -1
  79. package/dist/okf/types/ClusterRoleBindingList.md +2 -2
  80. package/dist/okf/types/ClusterRoleList.md +2 -2
  81. package/dist/okf/types/ClusterTrustBundle.md +1 -1
  82. package/dist/okf/types/ClusterTrustBundleList.md +2 -2
  83. package/dist/okf/types/ComponentStatus.md +1 -1
  84. package/dist/okf/types/ComponentStatusList.md +2 -2
  85. package/dist/okf/types/ConfigMapList.md +2 -2
  86. package/dist/okf/types/ControllerRevisionList.md +2 -2
  87. package/dist/okf/types/CoreEventList.md +2 -2
  88. package/dist/okf/types/CronJob.md +1 -1
  89. package/dist/okf/types/CronJobList.md +2 -2
  90. package/dist/okf/types/CustomResourceDefinition.md +1 -1
  91. package/dist/okf/types/CustomResourceDefinitionList.md +2 -2
  92. package/dist/okf/types/DaemonSet.md +1 -1
  93. package/dist/okf/types/DaemonSetList.md +2 -2
  94. package/dist/okf/types/DeleteOptions.md +1 -1
  95. package/dist/okf/types/Deploy.md +1 -1
  96. package/dist/okf/types/DeploymentList.md +2 -2
  97. package/dist/okf/types/DeviceClass.md +1 -1
  98. package/dist/okf/types/DeviceClassList.md +2 -2
  99. package/dist/okf/types/DeviceTaintRule.md +1 -1
  100. package/dist/okf/types/DeviceTaintRuleList.md +2 -2
  101. package/dist/okf/types/EndpointSlice.md +2 -2
  102. package/dist/okf/types/EndpointSliceList.md +2 -2
  103. package/dist/okf/types/Endpoints.md +1 -1
  104. package/dist/okf/types/EndpointsList.md +2 -2
  105. package/dist/okf/types/Event.md +2 -2
  106. package/dist/okf/types/EventsEvent.md +2 -2
  107. package/dist/okf/types/EventsEventList.md +2 -2
  108. package/dist/okf/types/Eviction.md +1 -1
  109. package/dist/okf/types/FlowSchema.md +1 -1
  110. package/dist/okf/types/FlowSchemaList.md +2 -2
  111. package/dist/okf/types/GrafanaDashboard.md +14 -0
  112. package/dist/okf/types/GrafanaDatasource.md +14 -0
  113. package/dist/okf/types/GrafanaFolder.md +14 -0
  114. package/dist/okf/types/HorizontalPodAutoscaler.md +1 -1
  115. package/dist/okf/types/HorizontalPodAutoscalerList.md +2 -2
  116. package/dist/okf/types/IPAddress.md +1 -1
  117. package/dist/okf/types/IPAddressList.md +2 -2
  118. package/dist/okf/types/Ing.md +1 -1
  119. package/dist/okf/types/IngressClass.md +1 -1
  120. package/dist/okf/types/IngressClassList.md +2 -2
  121. package/dist/okf/types/IngressList.md +2 -2
  122. package/dist/okf/types/JobList.md +2 -2
  123. package/dist/okf/types/Lease.md +1 -1
  124. package/dist/okf/types/LeaseCandidate.md +1 -1
  125. package/dist/okf/types/LeaseCandidateList.md +2 -2
  126. package/dist/okf/types/LeaseList.md +2 -2
  127. package/dist/okf/types/LimitRange.md +1 -1
  128. package/dist/okf/types/LimitRangeList.md +2 -2
  129. package/dist/okf/types/LocalSubjectAccessReview.md +1 -1
  130. package/dist/okf/types/MutatingAdmissionPolicy.md +1 -1
  131. package/dist/okf/types/MutatingAdmissionPolicyBinding.md +1 -1
  132. package/dist/okf/types/MutatingAdmissionPolicyBindingList.md +2 -2
  133. package/dist/okf/types/MutatingAdmissionPolicyList.md +2 -2
  134. package/dist/okf/types/MutatingWebhookConfiguration.md +1 -1
  135. package/dist/okf/types/MutatingWebhookConfigurationList.md +2 -2
  136. package/dist/okf/types/Namespace.md +1 -1
  137. package/dist/okf/types/NamespaceList.md +2 -2
  138. package/dist/okf/types/NetPol.md +1 -1
  139. package/dist/okf/types/NetworkPolicyList.md +2 -2
  140. package/dist/okf/types/Node.md +1 -1
  141. package/dist/okf/types/NodeList.md +2 -2
  142. package/dist/okf/types/PersistentVolume.md +1 -1
  143. package/dist/okf/types/PersistentVolumeClaimList.md +2 -2
  144. package/dist/okf/types/PersistentVolumeList.md +2 -2
  145. package/dist/okf/types/PodCertificateRequest.md +1 -1
  146. package/dist/okf/types/PodCertificateRequestList.md +2 -2
  147. package/dist/okf/types/PodDisruptionBudgetList.md +2 -2
  148. package/dist/okf/types/PodList.md +2 -2
  149. package/dist/okf/types/PodTemplateList.md +2 -2
  150. package/dist/okf/types/PriorityClassList.md +2 -2
  151. package/dist/okf/types/PriorityLevelConfiguration.md +1 -1
  152. package/dist/okf/types/PriorityLevelConfigurationList.md +2 -2
  153. package/dist/okf/types/ReplicaSet.md +1 -1
  154. package/dist/okf/types/ReplicaSetList.md +2 -2
  155. package/dist/okf/types/ReplicationController.md +1 -1
  156. package/dist/okf/types/ReplicationControllerList.md +2 -2
  157. package/dist/okf/types/ResourceClaim.md +1 -1
  158. package/dist/okf/types/ResourceClaimList.md +2 -2
  159. package/dist/okf/types/ResourceClaimTemplate.md +1 -1
  160. package/dist/okf/types/ResourceClaimTemplateList.md +2 -2
  161. package/dist/okf/types/ResourceQuota.md +1 -1
  162. package/dist/okf/types/ResourceQuotaList.md +2 -2
  163. package/dist/okf/types/ResourceSlice.md +1 -1
  164. package/dist/okf/types/ResourceSliceList.md +2 -2
  165. package/dist/okf/types/RoleBindingList.md +2 -2
  166. package/dist/okf/types/RoleList.md +2 -2
  167. package/dist/okf/types/RuntimeClass.md +2 -2
  168. package/dist/okf/types/RuntimeClassList.md +2 -2
  169. package/dist/okf/types/Scale.md +1 -1
  170. package/dist/okf/types/SecretList.md +2 -2
  171. package/dist/okf/types/SelfSubjectAccessReview.md +1 -1
  172. package/dist/okf/types/SelfSubjectRulesReview.md +1 -1
  173. package/dist/okf/types/Service.md +1 -1
  174. package/dist/okf/types/ServiceAccountList.md +2 -2
  175. package/dist/okf/types/ServiceCIDR.md +1 -1
  176. package/dist/okf/types/ServiceCIDRList.md +2 -2
  177. package/dist/okf/types/ServiceList.md +2 -2
  178. package/dist/okf/types/StatefulSet.md +1 -1
  179. package/dist/okf/types/StatefulSetList.md +2 -2
  180. package/dist/okf/types/Status.md +2 -2
  181. package/dist/okf/types/StorageClass.md +1 -1
  182. package/dist/okf/types/StorageClassList.md +2 -2
  183. package/dist/okf/types/StorageVersionMigration.md +1 -1
  184. package/dist/okf/types/StorageVersionMigrationList.md +2 -2
  185. package/dist/okf/types/SubjectAccessReview.md +1 -1
  186. package/dist/okf/types/TokenRequest.md +1 -1
  187. package/dist/okf/types/TokenReview.md +1 -1
  188. package/dist/okf/types/ValidatingAdmissionPolicy.md +1 -1
  189. package/dist/okf/types/ValidatingAdmissionPolicyBinding.md +1 -1
  190. package/dist/okf/types/ValidatingAdmissionPolicyBindingList.md +2 -2
  191. package/dist/okf/types/ValidatingAdmissionPolicyList.md +2 -2
  192. package/dist/okf/types/ValidatingWebhookConfiguration.md +1 -1
  193. package/dist/okf/types/ValidatingWebhookConfigurationList.md +2 -2
  194. package/dist/okf/types/VolumeAttachment.md +1 -1
  195. package/dist/okf/types/VolumeAttachmentList.md +2 -2
  196. package/dist/okf/types/VolumeAttributesClassList.md +2 -2
  197. package/dist/op/activities/argo.d.ts.map +1 -1
  198. package/dist/op/activities/index.d.ts +3 -3
  199. package/dist/op/activities/index.d.ts.map +1 -1
  200. package/dist/op/activities/wait-for-ready.d.ts.map +1 -1
  201. package/dist/op/builders.d.ts.map +1 -1
  202. package/dist/rules/otel-placement-helpers.ts +7 -11
  203. package/dist/rules/wk8604.ts +29 -0
  204. package/dist/rules/wk8605.ts +131 -0
  205. package/dist/skills/chant-k8s.md +1 -1
  206. package/dist/spec/parse.d.ts +27 -0
  207. package/dist/spec/parse.d.ts.map +1 -1
  208. package/dist/types/index.d.ts +5360 -972
  209. package/dist/variables.d.ts.map +1 -1
  210. package/package.json +4 -4
  211. package/src/codegen/declarations.test.ts +118 -0
  212. package/src/codegen/generate-typescript.ts +69 -4
  213. package/src/codegen/generate.ts +15 -6
  214. package/src/composites/__snapshots__/gke-otel-collector.snapshot.test.ts.snap +2 -68
  215. package/src/composites/catalog.ts +12 -0
  216. package/src/composites/gke-otel-collector.snapshot.test.ts +3 -1
  217. package/src/composites/gke-otel-collector.ts +13 -2
  218. package/src/composites/index.ts +1 -0
  219. package/src/composites/otel-collector-agent.ts +45 -11
  220. package/src/composites/otel-collector-gateway.test.ts +102 -5
  221. package/src/composites/otel-collector-gateway.ts +96 -18
  222. package/src/composites/otel-collector-node.test.ts +174 -0
  223. package/src/composites/otel-collector-node.ts +213 -0
  224. package/src/composites/otel-collector-rbac.test.ts +114 -0
  225. package/src/composites/otel-collector-rbac.ts +144 -0
  226. package/src/composites/otel-collector-shape.ts +19 -0
  227. package/src/composites/otel-collector.ts +40 -35
  228. package/src/crd/crd-sources.ts +26 -0
  229. package/src/crd/loader.test.ts +9 -1
  230. package/src/crd/loader.ts +26 -3
  231. package/src/crd/oci-chart.test.ts +149 -0
  232. package/src/crd/oci-chart.ts +178 -0
  233. package/src/crd/types.ts +5 -0
  234. package/src/generated/index.d.ts +5360 -972
  235. package/src/generated/index.ts +23 -0
  236. package/src/generated/lexicon-k8s.json +156 -17
  237. package/src/generated/operations.json +48 -0
  238. package/src/import/embedded-live.test.ts +180 -0
  239. package/src/import/embedded-roundtrip.test.ts +73 -7
  240. package/src/import/embedded-types.e2e.test.ts +3 -1
  241. package/src/import/embedded.test.ts +64 -0
  242. package/src/import/embedded.ts +31 -2
  243. package/src/import/generator.test.ts +19 -0
  244. package/src/import/generator.ts +20 -2
  245. package/src/import/live-export.ts +10 -2
  246. package/src/import/testdata/embedded/README.md +4 -1
  247. package/src/import/testdata/embedded/alertmanager-configmap.yaml +91 -0
  248. package/src/import/testdata/embedded/fixtures.ts +18 -0
  249. package/src/import/testdata/embedded/grafana-operator-dashboard.yaml +363 -0
  250. package/src/import/testdata/embedded/grafana-v2-dashboard-configmap.yaml +851 -0
  251. package/src/lint/audit-catalog.ts +2 -0
  252. package/src/lint/post-synth/index.ts +4 -0
  253. package/src/lint/post-synth/otel-placement-helpers.ts +7 -11
  254. package/src/lint/post-synth/otel-placement.test.ts +35 -0
  255. package/src/lint/post-synth/post-synth.test.ts +3 -3
  256. package/src/lint/post-synth/wk8604.ts +29 -0
  257. package/src/lint/post-synth/wk8605.test.ts +141 -0
  258. package/src/lint/post-synth/wk8605.ts +131 -0
  259. package/src/skills/chant-k8s.md +1 -1
  260. package/src/spec/parse.test.ts +118 -0
  261. package/src/spec/parse.ts +250 -29
@@ -0,0 +1,851 @@
1
+ apiVersion: v1
2
+ kind: ConfigMap
3
+ metadata:
4
+ name: grafana-dashboard-checkout-v2
5
+ namespace: monitoring
6
+ labels:
7
+ grafana_dashboard: '1'
8
+ data:
9
+ checkout.json: |
10
+ {
11
+ "apiVersion": "dashboard.grafana.app/v2",
12
+ "kind": "Dashboard",
13
+ "metadata": {
14
+ "name": "chant-fx-checkout",
15
+ "namespace": "default",
16
+ "uid": "aea67e84-4a57-4270-991d-0173168c66b6",
17
+ "resourceVersion": "1790618769068004",
18
+ "generation": 1,
19
+ "creationTimestamp": "2026-09-28T18:06:09Z",
20
+ "labels": {
21
+ "grafana.app/deprecatedInternalID": "1452750053654528"
22
+ },
23
+ "annotations": {
24
+ "grafana.app/createdBy": "anonymous:"
25
+ }
26
+ },
27
+ "spec": {
28
+ "annotations": [
29
+ {
30
+ "kind": "AnnotationQuery",
31
+ "spec": {
32
+ "query": {
33
+ "kind": "DataQuery",
34
+ "group": "grafana",
35
+ "version": "v0",
36
+ "datasource": {
37
+ "name": "-- Grafana --"
38
+ },
39
+ "spec": {}
40
+ },
41
+ "enable": true,
42
+ "hide": true,
43
+ "iconColor": "rgba(0, 211, 255, 1)",
44
+ "name": "Annotations & Alerts",
45
+ "builtIn": true,
46
+ "legacyOptions": {
47
+ "type": "dashboard"
48
+ }
49
+ }
50
+ },
51
+ {
52
+ "kind": "AnnotationQuery",
53
+ "spec": {
54
+ "query": {
55
+ "kind": "DataQuery",
56
+ "group": "prometheus",
57
+ "version": "v0",
58
+ "datasource": {
59
+ "name": "${datasource}"
60
+ },
61
+ "spec": {}
62
+ },
63
+ "enable": true,
64
+ "hide": false,
65
+ "iconColor": "red",
66
+ "name": "Deploys",
67
+ "legacyOptions": {
68
+ "expr": "changes(kube_deployment_status_observed_generation{deployment=\"checkout\"}[5m]) > 0",
69
+ "step": "60s",
70
+ "titleFormat": "deploy"
71
+ }
72
+ }
73
+ }
74
+ ],
75
+ "cursorSync": "Off",
76
+ "editable": true,
77
+ "elements": {
78
+ "panel-1": {
79
+ "kind": "Panel",
80
+ "spec": {
81
+ "id": 1,
82
+ "title": "Request rate ($env)",
83
+ "links": [
84
+ {
85
+ "title": "Traces",
86
+ "url": "https://example.com/traces?service=checkout",
87
+ "targetBlank": true
88
+ }
89
+ ],
90
+ "data": {
91
+ "kind": "QueryGroup",
92
+ "spec": {
93
+ "queries": [
94
+ {
95
+ "kind": "PanelQuery",
96
+ "spec": {
97
+ "query": {
98
+ "kind": "DataQuery",
99
+ "group": "prometheus",
100
+ "version": "v0",
101
+ "datasource": {
102
+ "name": "${datasource}"
103
+ },
104
+ "spec": {
105
+ "editorMode": "code",
106
+ "expr": "sum by (route) (rate(http_requests_total{job=~\"$job\", env=~\"$env\"}[$window]))",
107
+ "legendFormat": "{{route}}",
108
+ "range": true
109
+ }
110
+ },
111
+ "refId": "A",
112
+ "hidden": false
113
+ }
114
+ },
115
+ {
116
+ "kind": "PanelQuery",
117
+ "spec": {
118
+ "query": {
119
+ "kind": "DataQuery",
120
+ "group": "prometheus",
121
+ "version": "v0",
122
+ "datasource": {
123
+ "name": "${datasource}"
124
+ },
125
+ "spec": {
126
+ "editorMode": "code",
127
+ "expr": "sum(rate(http_requests_total{job=~\"$job\", code=~\"5..\"}[$window]))",
128
+ "legendFormat": "errors",
129
+ "range": true
130
+ }
131
+ },
132
+ "refId": "B",
133
+ "hidden": false
134
+ }
135
+ }
136
+ ],
137
+ "transformations": [
138
+ {
139
+ "kind": "Transformation",
140
+ "group": "organize",
141
+ "spec": {
142
+ "options": {
143
+ "excludeByName": {},
144
+ "renameByName": {
145
+ "errors": "5xx"
146
+ }
147
+ }
148
+ }
149
+ }
150
+ ],
151
+ "queryOptions": {}
152
+ }
153
+ },
154
+ "vizConfig": {
155
+ "kind": "VizConfig",
156
+ "group": "timeseries",
157
+ "version": "",
158
+ "spec": {
159
+ "options": {
160
+ "legend": {
161
+ "calcs": [
162
+ "mean",
163
+ "max"
164
+ ],
165
+ "displayMode": "table",
166
+ "placement": "bottom",
167
+ "showLegend": true
168
+ },
169
+ "tooltip": {
170
+ "mode": "multi",
171
+ "sort": "desc"
172
+ }
173
+ },
174
+ "fieldConfig": {
175
+ "defaults": {
176
+ "unit": "reqps",
177
+ "thresholds": {
178
+ "mode": "absolute",
179
+ "steps": [
180
+ {
181
+ "value": null,
182
+ "color": "green"
183
+ },
184
+ {
185
+ "value": 80,
186
+ "color": "red"
187
+ }
188
+ ]
189
+ },
190
+ "color": {
191
+ "mode": "palette-classic"
192
+ },
193
+ "links": [
194
+ {
195
+ "targetBlank": false,
196
+ "title": "Logs for ${__field.labels.route}",
197
+ "url": "/explore?route=${__field.labels.route}"
198
+ }
199
+ ],
200
+ "custom": {
201
+ "drawStyle": "line",
202
+ "fillOpacity": 10,
203
+ "lineWidth": 1,
204
+ "showPoints": "never"
205
+ }
206
+ },
207
+ "overrides": [
208
+ {
209
+ "matcher": {
210
+ "id": "byName",
211
+ "options": "errors"
212
+ },
213
+ "properties": [
214
+ {
215
+ "id": "color",
216
+ "value": {
217
+ "fixedColor": "red",
218
+ "mode": "fixed"
219
+ }
220
+ },
221
+ {
222
+ "id": "custom.axisPlacement",
223
+ "value": "right"
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "matcher": {
229
+ "id": "byRegexp",
230
+ "options": "/api/.*"
231
+ },
232
+ "properties": [
233
+ {
234
+ "id": "custom.lineWidth",
235
+ "value": 2
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "matcher": {
241
+ "id": "byFrameRefID",
242
+ "options": "B"
243
+ },
244
+ "properties": [
245
+ {
246
+ "id": "unit",
247
+ "value": "short"
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ "matcher": {
253
+ "id": "byNames",
254
+ "options": {
255
+ "mode": "exclude",
256
+ "names": [
257
+ "errors"
258
+ ],
259
+ "prefix": "All except:",
260
+ "readOnly": true
261
+ }
262
+ },
263
+ "properties": [
264
+ {
265
+ "id": "custom.hideFrom",
266
+ "value": {
267
+ "legend": false,
268
+ "tooltip": false,
269
+ "viz": false
270
+ }
271
+ }
272
+ ]
273
+ }
274
+ ]
275
+ }
276
+ }
277
+ }
278
+ }
279
+ },
280
+ "panel-2": {
281
+ "kind": "Panel",
282
+ "spec": {
283
+ "id": 2,
284
+ "title": "Availability $env",
285
+ "links": [],
286
+ "data": {
287
+ "kind": "QueryGroup",
288
+ "spec": {
289
+ "queries": [
290
+ {
291
+ "kind": "PanelQuery",
292
+ "spec": {
293
+ "query": {
294
+ "kind": "DataQuery",
295
+ "group": "prometheus",
296
+ "version": "v0",
297
+ "datasource": {
298
+ "name": "${datasource}"
299
+ },
300
+ "spec": {
301
+ "expr": "avg(up{job=~\"$job\", env=\"$env\"})",
302
+ "instant": true
303
+ }
304
+ },
305
+ "refId": "A",
306
+ "hidden": false
307
+ }
308
+ }
309
+ ],
310
+ "transformations": [],
311
+ "queryOptions": {}
312
+ }
313
+ },
314
+ "vizConfig": {
315
+ "kind": "VizConfig",
316
+ "group": "stat",
317
+ "version": "",
318
+ "spec": {
319
+ "options": {
320
+ "colorMode": "value",
321
+ "graphMode": "area",
322
+ "reduceOptions": {
323
+ "calcs": [
324
+ "lastNotNull"
325
+ ],
326
+ "fields": "",
327
+ "values": false
328
+ },
329
+ "textMode": "auto"
330
+ },
331
+ "fieldConfig": {
332
+ "defaults": {
333
+ "unit": "percentunit",
334
+ "mappings": [
335
+ {
336
+ "type": "value",
337
+ "options": {
338
+ "0": {
339
+ "text": "down",
340
+ "color": "red"
341
+ }
342
+ }
343
+ },
344
+ {
345
+ "type": "special",
346
+ "options": {
347
+ "match": "null",
348
+ "result": {
349
+ "text": "n/a"
350
+ }
351
+ }
352
+ }
353
+ ],
354
+ "thresholds": {
355
+ "mode": "absolute",
356
+ "steps": [
357
+ {
358
+ "value": null,
359
+ "color": "red"
360
+ },
361
+ {
362
+ "value": 0.99,
363
+ "color": "green"
364
+ }
365
+ ]
366
+ }
367
+ },
368
+ "overrides": []
369
+ }
370
+ }
371
+ }
372
+ }
373
+ },
374
+ "panel-4": {
375
+ "kind": "Panel",
376
+ "spec": {
377
+ "id": 4,
378
+ "title": "Slowest routes",
379
+ "links": [],
380
+ "data": {
381
+ "kind": "QueryGroup",
382
+ "spec": {
383
+ "queries": [
384
+ {
385
+ "kind": "PanelQuery",
386
+ "spec": {
387
+ "query": {
388
+ "kind": "DataQuery",
389
+ "group": "prometheus",
390
+ "version": "v0",
391
+ "datasource": {
392
+ "name": "${datasource}"
393
+ },
394
+ "spec": {
395
+ "expr": "topk(10, histogram_quantile(0.99, sum by (le, route) (rate(http_request_duration_seconds_bucket{job=\"$job\"}[$window]))))",
396
+ "format": "table",
397
+ "instant": true
398
+ }
399
+ },
400
+ "refId": "A",
401
+ "hidden": false
402
+ }
403
+ }
404
+ ],
405
+ "transformations": [
406
+ {
407
+ "kind": "Transformation",
408
+ "group": "sortBy",
409
+ "spec": {
410
+ "options": {
411
+ "sort": [
412
+ {
413
+ "desc": true,
414
+ "field": "Value"
415
+ }
416
+ ]
417
+ }
418
+ }
419
+ }
420
+ ],
421
+ "queryOptions": {}
422
+ }
423
+ },
424
+ "vizConfig": {
425
+ "kind": "VizConfig",
426
+ "group": "table",
427
+ "version": "",
428
+ "spec": {
429
+ "options": {
430
+ "cellHeight": "sm",
431
+ "showHeader": true
432
+ },
433
+ "fieldConfig": {
434
+ "defaults": {
435
+ "custom": {
436
+ "align": "auto",
437
+ "cellOptions": {
438
+ "type": "auto"
439
+ }
440
+ }
441
+ },
442
+ "overrides": [
443
+ {
444
+ "matcher": {
445
+ "id": "byName",
446
+ "options": "Value"
447
+ },
448
+ "properties": [
449
+ {
450
+ "id": "unit",
451
+ "value": "s"
452
+ },
453
+ {
454
+ "id": "custom.cellOptions",
455
+ "value": {
456
+ "type": "color-background"
457
+ }
458
+ }
459
+ ]
460
+ }
461
+ ]
462
+ }
463
+ }
464
+ }
465
+ }
466
+ },
467
+ "panel-5": {
468
+ "kind": "Panel",
469
+ "spec": {
470
+ "id": 5,
471
+ "title": "Checkout logs",
472
+ "links": [],
473
+ "data": {
474
+ "kind": "QueryGroup",
475
+ "spec": {
476
+ "queries": [
477
+ {
478
+ "kind": "PanelQuery",
479
+ "spec": {
480
+ "query": {
481
+ "kind": "DataQuery",
482
+ "group": "loki",
483
+ "version": "v0",
484
+ "datasource": {
485
+ "name": "loki"
486
+ },
487
+ "spec": {
488
+ "expr": "{service=\"checkout\"} |= \"$route\"",
489
+ "queryType": "range"
490
+ }
491
+ },
492
+ "refId": "A",
493
+ "hidden": false
494
+ }
495
+ }
496
+ ],
497
+ "transformations": [],
498
+ "queryOptions": {}
499
+ }
500
+ },
501
+ "vizConfig": {
502
+ "kind": "VizConfig",
503
+ "group": "logs",
504
+ "version": "",
505
+ "spec": {
506
+ "options": {
507
+ "dedupStrategy": "none",
508
+ "enableLogDetails": true,
509
+ "showTime": true,
510
+ "sortOrder": "Descending",
511
+ "wrapLogMessage": true
512
+ },
513
+ "fieldConfig": {
514
+ "defaults": {},
515
+ "overrides": []
516
+ }
517
+ }
518
+ }
519
+ }
520
+ }
521
+ },
522
+ "layout": {
523
+ "kind": "RowsLayout",
524
+ "spec": {
525
+ "rows": [
526
+ {
527
+ "kind": "RowsLayoutRow",
528
+ "spec": {
529
+ "title": "",
530
+ "collapse": false,
531
+ "hideHeader": true,
532
+ "layout": {
533
+ "kind": "GridLayout",
534
+ "spec": {
535
+ "items": [
536
+ {
537
+ "kind": "GridLayoutItem",
538
+ "spec": {
539
+ "x": 0,
540
+ "y": 0,
541
+ "width": 12,
542
+ "height": 8,
543
+ "element": {
544
+ "kind": "ElementReference",
545
+ "name": "panel-1"
546
+ }
547
+ }
548
+ },
549
+ {
550
+ "kind": "GridLayoutItem",
551
+ "spec": {
552
+ "x": 12,
553
+ "y": 0,
554
+ "width": 6,
555
+ "height": 8,
556
+ "element": {
557
+ "kind": "ElementReference",
558
+ "name": "panel-2"
559
+ },
560
+ "repeat": {
561
+ "mode": "variable",
562
+ "value": "env",
563
+ "direction": "h",
564
+ "maxPerRow": 3
565
+ }
566
+ }
567
+ }
568
+ ]
569
+ }
570
+ }
571
+ }
572
+ },
573
+ {
574
+ "kind": "RowsLayoutRow",
575
+ "spec": {
576
+ "title": "Details for $job",
577
+ "collapse": true,
578
+ "repeat": {
579
+ "mode": "variable",
580
+ "value": "job"
581
+ },
582
+ "layout": {
583
+ "kind": "GridLayout",
584
+ "spec": {
585
+ "items": [
586
+ {
587
+ "kind": "GridLayoutItem",
588
+ "spec": {
589
+ "x": 0,
590
+ "y": 0,
591
+ "width": 24,
592
+ "height": 8,
593
+ "element": {
594
+ "kind": "ElementReference",
595
+ "name": "panel-4"
596
+ }
597
+ }
598
+ },
599
+ {
600
+ "kind": "GridLayoutItem",
601
+ "spec": {
602
+ "x": 0,
603
+ "y": 0,
604
+ "width": 24,
605
+ "height": 8,
606
+ "element": {
607
+ "kind": "ElementReference",
608
+ "name": "panel-5"
609
+ }
610
+ }
611
+ }
612
+ ]
613
+ }
614
+ }
615
+ }
616
+ }
617
+ ]
618
+ }
619
+ },
620
+ "links": [
621
+ {
622
+ "title": "Related",
623
+ "type": "dashboards",
624
+ "icon": "external link",
625
+ "tooltip": "",
626
+ "tags": [
627
+ "checkout"
628
+ ],
629
+ "asDropdown": true,
630
+ "targetBlank": false,
631
+ "includeVars": true,
632
+ "keepTime": true
633
+ },
634
+ {
635
+ "title": "Runbook",
636
+ "type": "link",
637
+ "icon": "doc",
638
+ "tooltip": "On-call runbook",
639
+ "url": "https://example.com/runbooks/checkout",
640
+ "tags": [],
641
+ "asDropdown": false,
642
+ "targetBlank": true,
643
+ "includeVars": false,
644
+ "keepTime": false
645
+ }
646
+ ],
647
+ "liveNow": false,
648
+ "preload": false,
649
+ "tags": [
650
+ "fixture",
651
+ "checkout"
652
+ ],
653
+ "timeSettings": {
654
+ "timezone": "browser",
655
+ "from": "now-6h",
656
+ "to": "now",
657
+ "autoRefresh": "",
658
+ "autoRefreshIntervals": [
659
+ "5s",
660
+ "10s",
661
+ "30s",
662
+ "1m",
663
+ "5m",
664
+ "15m",
665
+ "30m",
666
+ "1h",
667
+ "2h",
668
+ "1d"
669
+ ],
670
+ "hideTimepicker": false,
671
+ "fiscalYearStartMonth": 0
672
+ },
673
+ "title": "Checkout service",
674
+ "variables": [
675
+ {
676
+ "kind": "DatasourceVariable",
677
+ "spec": {
678
+ "name": "datasource",
679
+ "pluginId": "prometheus",
680
+ "refresh": "onDashboardLoad",
681
+ "regex": "",
682
+ "current": {
683
+ "text": "",
684
+ "value": ""
685
+ },
686
+ "options": [],
687
+ "multi": false,
688
+ "includeAll": false,
689
+ "label": "Data source",
690
+ "hide": "dontHide",
691
+ "skipUrlSync": false,
692
+ "allowCustomValue": true
693
+ }
694
+ },
695
+ {
696
+ "kind": "QueryVariable",
697
+ "spec": {
698
+ "name": "job",
699
+ "current": {
700
+ "text": "",
701
+ "value": ""
702
+ },
703
+ "label": "Job",
704
+ "hide": "dontHide",
705
+ "refresh": "onTimeRangeChanged",
706
+ "skipUrlSync": false,
707
+ "query": {
708
+ "kind": "DataQuery",
709
+ "group": "prometheus",
710
+ "version": "v0",
711
+ "datasource": {
712
+ "name": "${datasource}"
713
+ },
714
+ "spec": {
715
+ "qryType": 1,
716
+ "query": "label_values(up, job)",
717
+ "refId": "PrometheusVariableQueryEditor-VariableQuery"
718
+ }
719
+ },
720
+ "regex": "",
721
+ "sort": "alphabeticalAsc",
722
+ "definition": "label_values(up, job)",
723
+ "options": [],
724
+ "multi": true,
725
+ "includeAll": true,
726
+ "allowCustomValue": true
727
+ }
728
+ },
729
+ {
730
+ "kind": "CustomVariable",
731
+ "spec": {
732
+ "name": "env",
733
+ "query": "prod,staging,dev",
734
+ "current": {
735
+ "text": [
736
+ "prod"
737
+ ],
738
+ "value": [
739
+ "prod"
740
+ ]
741
+ },
742
+ "options": [
743
+ {
744
+ "selected": true,
745
+ "text": "prod",
746
+ "value": "prod"
747
+ },
748
+ {
749
+ "selected": false,
750
+ "text": "staging",
751
+ "value": "staging"
752
+ },
753
+ {
754
+ "selected": false,
755
+ "text": "dev",
756
+ "value": "dev"
757
+ }
758
+ ],
759
+ "multi": true,
760
+ "includeAll": false,
761
+ "label": "Environment",
762
+ "hide": "dontHide",
763
+ "skipUrlSync": false,
764
+ "allowCustomValue": true
765
+ }
766
+ },
767
+ {
768
+ "kind": "AdhocVariable",
769
+ "group": "prometheus",
770
+ "datasource": {
771
+ "name": "${datasource}"
772
+ },
773
+ "spec": {
774
+ "name": "Filters",
775
+ "baseFilters": [],
776
+ "filters": [
777
+ {
778
+ "key": "namespace",
779
+ "operator": "=",
780
+ "value": "shop"
781
+ }
782
+ ],
783
+ "defaultKeys": [],
784
+ "hide": "dontHide",
785
+ "skipUrlSync": false,
786
+ "allowCustomValue": true
787
+ }
788
+ },
789
+ {
790
+ "kind": "IntervalVariable",
791
+ "spec": {
792
+ "name": "window",
793
+ "query": "1m,5m,15m",
794
+ "current": {
795
+ "text": "5m",
796
+ "value": "5m"
797
+ },
798
+ "options": [
799
+ {
800
+ "selected": false,
801
+ "text": "1m",
802
+ "value": "1m"
803
+ },
804
+ {
805
+ "selected": true,
806
+ "text": "5m",
807
+ "value": "5m"
808
+ },
809
+ {
810
+ "selected": false,
811
+ "text": "15m",
812
+ "value": "15m"
813
+ }
814
+ ],
815
+ "auto": false,
816
+ "auto_min": "10s",
817
+ "auto_count": 30,
818
+ "refresh": "onTimeRangeChanged",
819
+ "hide": "dontHide",
820
+ "skipUrlSync": false
821
+ }
822
+ },
823
+ {
824
+ "kind": "ConstantVariable",
825
+ "spec": {
826
+ "name": "service",
827
+ "query": "checkout",
828
+ "current": {
829
+ "text": "checkout",
830
+ "value": "checkout"
831
+ },
832
+ "hide": "hideVariable",
833
+ "skipUrlSync": false
834
+ }
835
+ },
836
+ {
837
+ "kind": "TextVariable",
838
+ "spec": {
839
+ "name": "route",
840
+ "current": {
841
+ "text": "/api",
842
+ "value": "/api"
843
+ },
844
+ "query": "/api",
845
+ "hide": "dontHide",
846
+ "skipUrlSync": false
847
+ }
848
+ }
849
+ ]
850
+ }
851
+ }