Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not find data in Kafka consumer? #100

Open
dongdong741 opened this issue Sep 20, 2022 · 0 comments
Open

Can not find data in Kafka consumer? #100

dongdong741 opened this issue Sep 20, 2022 · 0 comments

Comments

@dongdong741
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant