{
    "properties": {
        "grafana": {
            "description": "grafana service configuration properties",
            "properties": {
                "admin_password": {
                    "default": "admin",
                    "description": "Admin password.",
                    "type": "string"
                },
                "cpus": {
                    "default": 0.3,
                    "description": "CPU shares to allocate to each service instance.",
                    "minimum": 0.3,
                    "type": "number"
                },
                "mem": {
                    "default": 512.0,
                    "description": "Memory to allocate to each service instance.",
                    "minimum": 512.0,
                    "type": "number"
                }
            },
            "required": [
                "cpus",
                "mem"
            ],
            "type": "object"
        },
        "networking": {
            "description": "Grafana networking configuration properties",
            "properties": {
                "external_access": {
                    "description": "Enable access from outside the cluster through Marathon-LB.\nNOTE: this connection is unencrypted.",
                    "properties": {
                        "enable": {
                            "default": true,
                            "description": "Enable or disable creating a VIP for external access through a public node running Marathon-LB.",
                            "type": "boolean"
                        },
                        "external_access_port": {
                            "default": 13000,
                            "description": "For external access, port number to be used for clear communication in the external Marathon-LB load balancer",
                            "type": "number"
                        },
                        "virtual_host": {
                            "default": "grafana.example.org",
                            "description": "For external access, Virtual Host URL to be used in the external load balancer.",
                            "type": "string"
                        }
                    },
                    "type": "object"
                }
            },
            "type": "object"
        },
        "service": {
            "description": "DC/OS service configuration properties",
            "properties": {
                "name": {
                    "default": "grafana",
                    "description": "Name of this service instance.",
                    "type": "string"
                }
            },
            "type": "object"
        }
    }
}