code: def get_context_data(self, **kwargs):
          
          data = super(MetricDetailView, self).get_context_data(**kwargs)
          data['slug'] = kwargs['slug']
          data['granularities'] = list(get_r()._granularities())
          return data
docs: Includes the metrics slugs in the context.