Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \
--- | |
version: '2' | |
services: | |
connect_1: | |
image: confluentinc/cp-server-connect:7.2.1 | |
hostname: connect-1 | |
container_name: connect-1 | |
ports: | |
- "8083:8083" |
export BOOTSTRAP_SERVERS=<CONFLUENT_CLOUD_CLUSTER_BOOTSTRAP:9092> | |
export SASL_JAAS_CONFIG="org.apache.kafka.common.security.plain.PlainLoginModule required username='<API-KEY>' password='<API_SECRET>';" | |
export SCHEMA_REGISTRY_URL=<CONFLUENT_CLOUD_SCHEMA_REGISTRY_URL:443> | |
export BASIC_AUTH_CREDENTIALS_SOURCE=USER_INFO | |
export SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO=<SR_API_KEY>:<SR_API_SECRET> |
CREATE TYPE BALANCE_TYPE AS STRUCT<account_id STRING, balance DOUBLE>; | |
CREATE STREAM CUSTOMER_STATS ( | |
CUSTOMER_ID STRING KEY, | |
CUSTOMER_NAME STRING, | |
BALANCES ARRAY<BALANCE_TYPE> | |
) WITH ( | |
KAFKA_TOPIC='CUSTOMER_STATS', | |
PARTITIONS=1, | |
VALUE_FORMAT='JSON_SR'); |
--- | |
all: | |
vars: | |
## ANSIBLE CONNECTIVITY PARAMS AND FLAGS | |
ansible_connection: ssh | |
ansible_user: dfederico | |
ansible_become: true | |
ansible_ssh_private_key_file: ~/.ssh/id_rsa | |
ansible_python_interpreter: /usr/bin/python3 | |
ansible_ssh_common_args: '-o StrictHostKeyChecking=no' |
https://www.confluent.io/blog/monitor-kafka-clusters-with-prometheus-grafana-and-confluent/
This document is prepared to set up the monitoring stack using Ansible as much as possible, Prometheus and Grafana have been tested to work on an Air-Gap (no internet access) environment providing the binaries from the official site, using the playbooks from GitHub user (0x0I)[https://github.com/O1ahmad]. Prometheus Node exporter playbook, provided by (Clud Alchemy)[https://github.com/cloudalchemy] has not bee tested on an Air-Gap environment, it doesn't mean it couldn't work.
using Selection.Components; | |
using Unity.Burst; | |
using Unity.Entities; | |
using Unity.Mathematics; | |
using Unity.Physics; | |
using Unity.Physics.Systems; | |
using Unity.Transforms; | |
using UnityEngine; | |
using BoxCollider = Unity.Physics.BoxCollider; |