blob: 99bb8ecc8cccd4b6cfc8b7869691d11411b582ea [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# How long should the Graphite server be kept alive, default: 15 days
keep_alive: 15d
# Cloud-specific settings
cloud_provider: nebula
cloud_tenant: drivers-automation
instance_type: m4.2xlarge
---
ensemble:
server:
node.count: 1
provisioner:
name: ctool
properties:
mark_for_reuse: true
cluster_ttl: {{keep_alive}}
cloud.provider: {{cloud_provider}}
cloud.tenant: {{cloud_tenant}}
cloud.instance.type: {{instance_type}}
configuration_manager:
- name: ctool_monitoring
properties:
graphite.create_server: true
client:
node.count: 1
provisioner:
name: ctool
properties:
mark_for_reuse: false
cloud.provider: {{cloud_provider}}
cloud.tenant: {{cloud_tenant}}
cloud.instance.type: {{instance_type}}
workload:
phases:
- upload-dashboards-to-grafana:
module: bash
properties:
script: |
echo "Graphite server IP: ${FALLOUT_SERVER_NODE0_MONITORING_GRAPHITE_HOST}"
git clone git@github.com:riptano/testeng-devtools.git ${FALLOUT_SCRATCH_DIR}/dashboard
curl --user admin:admin -d "@${FALLOUT_SCRATCH_DIR}/dashboard/duration-tests/java/grafana/aggregate4.json" -X POST -H "Content-Type: application/json" http://${FALLOUT_SERVER_NODE0_MONITORING_GRAPHITE_HOST}:3000/api/dashboards/db/
curl --user admin:admin -d "@${FALLOUT_SCRATCH_DIR}/dashboard/duration-tests/java/grafana/focus4.json" -X POST -H "Content-Type: application/json" http://${FALLOUT_SERVER_NODE0_MONITORING_GRAPHITE_HOST}:3000/api/dashboards/db/
target.group: client