<div class="gf-form-inline">
  <div class="gf-form">
    <span class="gf-form-label query-keyword width-9">Filter</span>
    <div class="gf-form" ng-repeat="segment in ctrl.filterSegments.filterSegments">
      <metric-segment
        segment="segment"
        get-options="ctrl.getFilters(segment, $index)"
        on-change="ctrl.filterSegmentUpdated(segment, $index)"
      ></metric-segment>
    </div>
  </div>
  <div class="gf-form gf-form--grow"><div class="gf-form-label gf-form-label--grow"></div></div>
</div>
<div class="gf-form-inline" ng-hide="ctrl.hideGroupBys">
  <div class="gf-form">
    <span class="gf-form-label query-keyword width-9">Group By</span>
    <div class="gf-form" ng-repeat="segment in ctrl.groupBySegments">
      <metric-segment
        segment="segment"
        get-options="ctrl.getGroupBys(segment)"
        on-change="ctrl.groupByChanged(segment, $index)"
      ></metric-segment>
    </div>
  </div>
  <div class="gf-form gf-form--grow"><div class="gf-form-label gf-form-label--grow"></div></div>
</div>
