How to configure number of kafka partitions in grafana

When PartitionCount != your_num_partitions. This is my usecase.
I hope i arrived at the right page.

Uner metrics -> Query -> i see this one kafka_server_replicamanager_partitioncount - Is this correct ?

If yes how to configure this ?

Are there any examples for procedures for writing these queries ?

You have to ask the people behind the Kafka metrics collector.

You question seems unrelated to grafana, or can you be more detailed?

What datasource are you using? Do you need help writing a metric query?

I am configuring this metric in grafana and need help in writing a metric query.

Prometheus is the datasource.

https://prometheus.io/docs/querying/basics/