Google

View on GitHub

Install Lenses on GCP and use with your Apache Kafka, with a deployment manager template.

imports:
- path: lenses.jinja

resources:
- name: lenses
  type: lenses.jinja
  properties:
    zone: europe-west3-a
    sourceRanges: "0.0.0.0/0"
    machineType: n1-standard-2
    kafkaBrokers: "PLAINTEXT://<YOUR-KAFKA-BROKER-IP>:9092"
    lensesLicense: |
    zookeeper: |
      [
        {url:"zookeeper.1.url:2181", jmx:"zookeeper.1.url:9585"},
        {url:"zookeeper.2.url:2181", jmx:"zookeeper.2.url:9585"}
      ]
    schemaRegistry: |
      [
        {url:"http://schema.registry.1.url:8081",jmx:"schema.registry.1.url:9582"},
        {url:"http://schema.registry.2.url:8081",jmx:"schema.registry.2.url:9582"}
      ]
    connect: |
      [
        {
          name:"data_science",
          urls: [
            {url:"http://connect.worker.1.url:8083",jmx:"connect.worker.1.url:9584"},
            {url:"http://connect.worker.2.url:8083",jmx:"connect.worker.2.url:9584"}
          ],
          statuses:"connect-statuses-cluster-a",
          configs:"connect-configs-cluster-a",
          offsets:"connect-offsets-cluster-a"
        }
      ]