pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] tuteng commented on a change in pull request #4468: Add delete and peek functionality to dashboard
Date Wed, 05 Jun 2019 03:42:48 GMT
tuteng commented on a change in pull request #4468: Add delete and peek functionality to dashboard
URL: https://github.com/apache/pulsar/pull/4468#discussion_r290568156
 
 

 ##########
 File path: dashboard/django/collector.py
 ##########
 @@ -324,6 +325,19 @@ def _fetch_broker_stats(cluster, broker_host_port, timestamp):
             replication.topic = replication.topic
             replication.save()
 
+    tenants = get(broker_url, '/admin/v2/tenants')
+    for tenant_name in tenants:
+        namespaces = get(broker_url, '/admin/v2/namespaces/' + tenant_name)
+        for namespace_name in namespaces:
+            logger.error('tn - ' + tenant_name + ' ns - ' + namespace_name)
 
 Review comment:
   logger.info can be used here.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message