Skip to content

Instantly share code, notes, and snippets.

@jotak
Last active January 8, 2020 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jotak/e335ecc6b19229b1920c55897195d1a4 to your computer and use it in GitHub Desktop.
Save jotak/e335ecc6b19229b1920c55897195d1a4 to your computer and use it in GitHub Desktop.
Monitoring dashboards new CRD
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: monitoringdashboards.monitoring.kiali.io
labels:
app: kiali
version: ${OPERATOR_VERSION_LABEL}
spec:
group: monitoring.kiali.io
names:
kind: MonitoringDashboard
listKind: MonitoringDashboardList
plural: monitoringdashboards
singular: monitoringdashboard
scope: Namespaced
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
runtime:
type: string
title:
type: string
discoverOn:
type: string
items:
type: array
items:
type: object
properties:
include:
type: string
chart:
type: object
required:
- name
- spans
- metricName
properties:
name:
type: string
unit:
type: string
unitScale:
type: number
minimum: 0
spans:
type: integer
minimum: 1
maximum: 12
metricName:
type: string
pattern: '^[a-zA-Z_:]([a-zA-Z0-9_:])*$'
dataType:
type: string
enum: [raw,rate,histogram]
chartType:
type: string
min:
type: number
max:
type: number
aggregator:
type: string
aggregations:
type: array
items:
type: object
required:
- label
- displayName
properties:
label:
type: string
pattern: '^[a-zA-Z_]([a-zA-Z0-9_])*$'
displayName:
type: string
externalLinks:
type: array
items:
type: object
properties:
type:
type: string
name:
type: string
variables:
type: object
properties:
namespace:
type: string
app:
type: string
service:
type: string
version:
type: string
workload:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment