cw-infra-apps/grafana/charts/feature-integrations/schema-mods/definitions/mysql-integration.schema.json

120 lines
3.5 KiB
JSON

{
"type": "object",
"properties": {
"exporter": {
"type": "object",
"properties": {
"collectors": {
"type": "array",
"items": {
"type": "string"
}
},
"dataSource": {
"type": "object",
"properties": {
"auth": {
"type": "object",
"properties": {
"password": {
"type": "string"
},
"passwordFrom": {
"type": "string"
},
"passwordKey": {
"type": "string"
},
"username": {
"type": "string"
},
"usernameFrom": {
"type": "string"
},
"usernameKey": {
"type": "string"
}
}
},
"host": {
"type": "string"
},
"port": {
"type": "integer"
}
}
},
"dataSourceName": {
"type": "string"
}
}
},
"jobLabel": {
"type": "string"
},
"logs": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"labelSelectors": {
"type": "object"
},
"namespaces": {
"type": "array"
}
}
},
"metrics": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"maxCacheSize": {
"type": "null"
},
"scrapeInterval": {
"type": "null"
},
"tuning": {
"type": "object",
"properties": {
"excludeMetrics": {
"type": "array"
},
"includeMetrics": {
"type": "array"
}
}
}
}
},
"name": {
"type": "string"
},
"secret": {
"type": "object",
"properties": {
"create": {
"type": "null"
},
"embed": {
"type": "boolean"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"type": {
"type": "string",
"const": "mysql"
}
}
}