kafka-manager | 一站式Apache Kafka集群指标监控与运维管控平台 | Pub Sub library
kandi X-RAY | kafka-manager Summary
kandi X-RAY | kafka-manager Summary
kafka-manager
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the health check items
- Build a new VersionMetricControlItem
- Extend a version method
- Builds all versions of the VersionMetricItem
- Get topic records
- Converts a consumerRecord to a TopicRecordVO
- Generate client properties
- Get sort interval
- Get sort interval
- Get zookeeper zookeeper state
- Checks if an index matches the regular expression
- Get offset relevant metrics
- Get Kafka metric by total partition
- Gets the metric from the Zookeeper command
- Build the list of health check items
- Get metric from Kafka by total broker
- Gets group metrics
- Converts a MonitorCmd param to a Result
- Returns a list of partitions
- Parse command line data
- Calculate health check metrics
- Initialize metrics
- Initialize items
- Parse command line data
- Get info about a job node
- Register all REST handlers
kafka-manager Key Features
kafka-manager Examples and Code Snippets
Community Discussions
Trending Discussions on kafka-manager
QUESTION
The following error is being prompted when it is tried to add a new cluster in 'CMAK' in the K8s cluster.
...ANSWER
Answered 2021-May-11 at 11:05I could resolve it by following the steps.
Connect to the 'zookeeper' container in k8s
k exec -it podid -- bash
Connect with zookeeper cli,
./bin/zkCli.sh
Make sure that it has created the 'kafka-manager' path already. if it does not exist, then try to create a cluster in 'kafka-manager' first.
ls /kafka-manager
Hit the following commands to create subsequent paths,
create /kafka-manager/mutex ""
create /kafka-manager/mutex/locks ""
create /kafka-manager/mutex/leases ""
Now try to create the cluster again.
The output would be like this,
QUESTION
I am starting my first docker proyect, trying to setup zookeeper and Kafka.
I have the following docker-compose.yml:
ANSWER
Answered 2020-Nov-10 at 14:33Zookeeper isn't running in the Kafka container.
You should use --bootstrap-server localhost:9092
anyway since the Zookeeper argument is deprecated
QUESTION
I run kafka using docker, have setup storing data on the volume.
I setup some source connectors, topics were created automatically with cleanup.policy delete
.
Using kafka manager I changed policy to compact
.
The problem:
After stop/start docker-compose topics are present, but cleanup.policy is reverted back to delete
Question:
How to persist topic configuration after restart?
Additional info
I restart kafka dockers with command:
rm /kafka/data/1/meta.properties; docker-compose down && docker-compose up -d --no-recreate
Docker-compose.yml:
...ANSWER
Answered 2020-Oct-21 at 07:52Kafka topic configuration is stored in Zookeeper. You can access it using
QUESTION
I'm trying to create Kafka cluster automatically, instead of creation manually, I'm using the stable chart: https://github.com/helm/charts/tree/master/stable/kafka-manager
in the template folder there are two .yaml files: configmap.yaml and job.yaml, what's these files and what's the roles of these files?
...ANSWER
Answered 2020-Sep-16 at 08:25configMap
is just a way to store non-confidential data in key-value pairs, you can also consume this data as an environment variable from the pods. (it doesn't provide secrecy or encryption!).
job.yaml
is a supervisor for pods carrying out batch processes, that is, a process that runs for a certain time to completion, for example a calculation or a backup operation.
hope it answers your question, let me know if you need anything else. :)
QUESTION
I have confluent kafka installed running on docker. In the topic i have 10 partitions. The problem is that I cannot consume messages from that topic, but I can Produce messages in the topic. I am trying to consume from the topic using C# confluent.kafka driver 1.5.1 (latest) with librd.kafka 1.5.0 (latest).
The docker-compose file i start kafka with is the following
...ANSWER
Answered 2020-Aug-23 at 21:53You need to set auto.offset.reset
to "earliest" or produce messages to the topic while your consumer is running.
QUESTION
I am following this tutorial to run Kafka inside a Docker container on windows.
When I try to launch Kafka-Manager by opening http://localhost:9000 in the browser as described there, I get ERR_CONNECTION_REFUSED.
Something I think might be related is that at the first time I ran docker-compose up
, PowerShell showed an error saying I needed to run some command first, to open a virtual machine or something like that.
Then I ran the command that PowerShell had told me and then I managed to run docker-compose up
successfully. However the tutorial didn't mention anything about it, and since then every time I tried to run docker-compose up
I managed to to it without running another command first, even if I closed and reopened PowerShell.
I suspect PowerShell remembers I'm connected to a virtual machine so docker-compose up
runs Kafka inside a virtual machine, and therefore I can't reach Kafka-Manager in the browser, although I see shows the following message:
kafkamanager | [info] p.c.s.NettyServer - Listening for HTTP on /0.0.0.0:9000
Edit:
docker logs
for kafka container:
ANSWER
Answered 2020-Mar-14 at 16:21Yes, there's a hypervisor, not a full VM. You can open the hyperV manager to look at it
You compose file needs a port forward
QUESTION
I try to write a template, to list the names of my services as well as their external endpoints + ports. However, I don't find any examples or documentation how to select an element from an array, in this case port
from the ports
array.
I got that far:
...ANSWER
Answered 2017-Apr-07 at 01:31Would that work for you?
kubectl get service -o=custom-columns=NAME:.metadata.name,IP:.spec.clusterIP,PORT:.spec.ports[0].targetPort
QUESTION
In Kafka-manager github page it is written that:
The minimum configuration is the zookeeper hosts which are to be used for kafka manager state. This can be found in the application.conf file in conf directory. The same file will be packaged in the distribution zip file; you may modify settings after unzipping the file on the desired server.
kafka-manager.zkhosts="my.zookeeper.host.com:2181" You can specify multiple zookeeper hosts by comma delimiting them, like so:
kafka-manager.zkhosts="my.zookeeper.host.com:2181,other.zookeeper.host.com:2181" Alternatively, use the environment variable ZK_HOSTS if you don't want to hardcode any values.
ZK_HOSTS="my.zookeeper.host.com:2181"
So my questions are:
Does Kafka-manager already contain Zookeeper when I download it?
Should I install Zookeeper for Kafka Manager seperately or use already installed Zookeeper used for Apache Kafka?
- How many Zookeper instances are required for Kafka-Manager?
- If I should install Zookeeper dedicated to Kafka-Manager, is it okey to install it in the same machine which Kafka-Manager installed or should I create another Zookeeper cluster in different machines?
I wonder what is the best practice?
...ANSWER
Answered 2020-Jan-13 at 11:43Does Kafka-manager already contain Zookeeper when I download it?
No. It's just a web application. You can use the Zookeeper that's used by Kafka, though
That should answer the rest of your question...
QUESTION
I setup my kafka containers by follow the tutorial from here: https://success.docker.com/article/getting-started-with-kafka
Then I found that I can't remove the container anymore, even though I tried docker container prune. The containers are still running.
What should I do?
...ANSWER
Answered 2019-Nov-13 at 21:11I found I have to use docker service rm
to remove the service due to the replicas
settings.
QUESTION
I am attempting to gather kafka topic metrics using JMX so that I can pack them into an object in java. The Kafka Docs show that the MBean requires a client-id, however we do not have any client-ids set up in our system.
What leads me to believe that it is possible to get topic level metrics without a client id is the fact that our instance of the Kafka Manager service is able to pull out topic metrics. I found the MBean they use "kafka.server:name=MessagesInPerSec,topic=topic,type=BrokerTopicMetrics"
and attempted to use that with no results.
My current code is
...ANSWER
Answered 2019-May-07 at 11:45The code you pasted above works for me, it's correctly printing the metrics of the specified topic for that broker. However note that if the broker is not hosting any partitions (or replicas) of the specified topic, you will get InstanceNotFoundException
back.
An easy way to retrieve MBean names is to use jconsole
. You can browse the metrics and once you found one you want, you can get its name in the "Operations" item just below "Attributes".
Otherwise use the queryNames()
method to find all available ObjectName
s on the MBeanServerConnection
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kafka-manager
You can use kafka-manager like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the kafka-manager component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page