   "Get metrics based on groups:
   TODO characterize by # w/ sql access, # of users, no self-serve data access"
   []
-  (let [groups (db/select 'PermissionsGroup)]
+  (let [groups (db/select ['PermissionsGroup :id])]
     {:groups (count groups)}))
 
 ;; Artifact Metrics

  "Get mes based on pulses
  TODO: characterize by non-user account emails, # emails"
  []
  (let [pulses (db/select 'Pulse)
        pulsecards (db/select 'PulseCard)
        pulsechannels (db/select 'PulseChannel)]
    {:pulses (count pulses)
     :pulse_types (frequencies (map :channel_type pulsechannels))
     :pulse_schedules (frequencies (map :schedule_type pulsechannels))

(defn- label-metrics
  "Get metrics based on labels"
  []
  (let [labels (db/select 'Label)
        cardlabels (db/select ['CardLabel :card_id :label_id])]
    {:labels (count labels)
     :num_labels_per_card (micro-histogram cardlabels :card_id)
     :num_cards_per_label (medium-histogram cardlabels :label_id)}))


(defn collection-metrics
  "Get metrics on collection usage"
  []
  (let [collections (db/select 'Collection)
        cards (db/select ['Card :collection_id])]
    {:collections (count collections)
     :num_cards_per_collection (medium-histogram cards :collection_id)}
    )
  )

;; Metadata Metrics
(defn- database-dims
