github.com/m3db/m3@v1.5.0/docker/grafana/Dockerfile (about)

     1  FROM grafana/grafana:latest
     2  
     3  COPY ./docker/grafana/datasource.yaml /etc/grafana/provisioning/datasources/datasource.yaml
     4  COPY ./docker/grafana/dashboards.yaml /etc/grafana/provisioning/dashboards/all.yaml
     5  
     6  RUN mkdir -p /tmp/grafana_dashboards
     7  COPY ./integrations/grafana/m3query_dashboard.json /tmp/grafana_dashboards/m3query_dashboard.json
     8  COPY ./integrations/grafana/m3coordinator_dashboard.json /tmp/grafana_dashboards/m3coordinator_dashboard.json
     9  COPY ./integrations/grafana/m3db_dashboard.json /tmp/grafana_dashboards/m3db_dashboard.json
    10  COPY ./integrations/grafana/temporal_function_comparison.json /tmp/grafana_dashboards/temporal_function_comparison.json
    11  COPY ./integrations/grafana/m3aggregator_dashboard.json /tmp/grafana_dashboards/m3aggregator_dashboard.json
    12  COPY ./integrations/grafana/m3aggregator_end_to_end_details.json /tmp/grafana_dashboards/m3aggregator_end_to_end_details.json
    13  COPY ./scripts/development/m3_prom_remote_stack/prom_remote_demo_dashboard.json /tmp/grafana_dashboards/prom_remote_demo_dashboard.json.json
    14  
    15  
    16  # Need to replace datasource template variable with name of actual data source so auto-import
    17  # JustWorksTM. Use a temporary directory to host the dashboards since the default
    18  # directory is owned by root.
    19  COPY ./integrations/grafana/m3db_overlaid_dashboard.json /tmp/m3db_overlaid_dashboard.json
    20  RUN awk '{gsub(/DS_PROMETHEUS/,"Prometheus");print}' /tmp/m3db_overlaid_dashboard.json \
    21    | awk '{gsub(/DS_M3QUERY/,"M3Query - Prometheus");print}' > /tmp/grafana_dashboards/m3db_overlaid_dashboard.json