-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
I utilized docker-compose to config kafka, adapter and prometheus:
[docker-compose.yml]
kafka:
image: wurstmeister/kafka
# image: jmx_kafka
container_name: kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
prometheus-kafka-adapter:
image: telefonica/prometheus-kafka-adapter:1.8.0
ports:
- "10401:10401"
environment:
KAFKA_TOPIC: prometheus-metrics
PORT: 10401
SERIALIZATION_FORMAT: json
KAFKA_BROKER_LIST: kafka:9092
GIN_MODE: release
LOG_LEVEL: debug
[prometheus.yml]
static_configs:
- targets: ["localhost:9090"]
remote_write:
the topic of Kafka is "prometheus-metrics", but why I still can not find any data in consumer of the topic?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels