<commit_before>---
name: prometheus

director_uuid: ((director_uuid))

releases:
- name: prometheus
  version: latest

stemcells:
- alias: trusty
  os: ubuntu-trusty
  version: latest

instance_groups:
- name: nginx
  instances: 1
  vm_type: ((nginx.vm_type))
  stemcell: trusty
  azs: ((azs))
  networks:
    - name: ((network_name))
      #static_ips: ((nginx.static_ips))
  jobs:
  - name: nginx
    release: prometheus
  properties:
    nginx: ((nginx.local_properties))
  env:
    bosh:
      password: ((nginx.vm_password))

- name: grafana
  instances: 1
  vm_type: ((grafana.vm_type))
  stemcell: trusty
  persistent_disk_type: ((grafana.persistent_disk_type))
  azs: ((azs))
  networks: [{name: ((network_name))}]
  jobs:
  - name: grafana
    release: prometheus
  - name: bosh_dashboards
    release: prometheus
  - name: cloudfoundry_dashboards
    release: prometheus
  - name: system_dashboards
    release: prometheus
  - name: mysql_dashboards
    release: prometheus
  - name: p_rabbitmq_dashboards
    release: prometheus
  - name: p_redis_dashboards
    release: prometheus
  - name: probe_dashboards
    release: prometheus
  - name: prometheus_dashboards
    release: prometheus
  properties:
    grafana:
      security:
        admin_password: ((<PASSWORD>))
      dashboards:
        json:
          enabled: true
      prometheus:
        dashboard_files:
          - /var/vcap/packages/bosh_dashboards/bosh_deployments.json
          - /var/vcap/packages/bosh_dashboards/bosh_jobs.json
          - /var/vcap/packages/bosh_dashboards/bosh_overview.json
          - /var/vcap/packages/bosh_dashboards/bosh_processes.json
          - /var/vcap/packages/bosh_dashboards/prometheus_bosh_exporter.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_apps_events.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_apps_latency.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_apps_requests.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_apps_system.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_bbs.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_cc.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_cells_capacity.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_component_metrics.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_diego_auctions.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_diego_health.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_doppler_server.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_etcd.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_etcd_operations.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_garden_linux.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_lrps_tasks.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_metron_agent.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_metron_agent_doppler.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_organization_summary.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_route_emitter.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_router.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_space_summary.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_summary.json
          - /var/vcap/packages/cloudfoundry_dashboards/cf_uaa.json
          - /var/vcap/packages/cloudfoundry_dashboards/prometheus_cf_exporter.json
          - /var/vcap/packages/cloudfoundry_dashboards/prometheus_firehose_exporter.json
          - /var/vcap/packages/mysql_dashboards/mysql_innodb.json
          - /var/vcap/packages/mysql_dashboards/mysql_innodb_advanced.json
          - /var/vcap/packages/mysql_dashboards/mysql_myisam.json
          - /var/vcap/packages/mysql_dashboards/mysql_overview.json
          - /var/vcap/packages/mysql_dashboards/mysql_performance_schema.json
          - /var/vcap/packages/mysql_dashboards/mysql_query_response.json
          - /var/vcap/packages/mysql_dashboards/mysql_replication.json
          - /var/vcap/packages/mysql_dashboards/mysql_table.json
          - /var/vcap/packages/mysql_dashboards/mysql_tokudb.json
          - /var/vcap/packages/mysql_dashboards/mysql_user_statistics.json
          - /var/vcap/packages/p_rabbitmq_dashboards/p_rabbitmq_exchanges.json
          - /var/vcap/packages/p_rabbitmq_dashboards/p_rabbitmq_haproxy.json
          - /var/vcap/packages/p_rabbitmq_dashboards/p_rabbitmq_overview.json
          - /var/vcap/packages/p_rabbitmq_dashboards/p_rabbitmq_queues.json
          - /var/vcap/packages/p_rabbitmq_dashboards/p_rabbitmq_rabbitmq_metrics.json
          - /var/vcap/packages/p_redis_dashboards/p_redis_overview.json
          - /var/vcap/packages/p_redis_dashboards/p_redis_redis_metrics.json
          - /var/vcap/packages/p_redis_dashboards/p_redis_service_broker.json
          - /var/vcap/packages/probe_dashboards/probe_https_summary.json
          - /var/vcap/packages/prometheus_dashboards/prometheus_scrapes_notifications.json
          - /var/vcap/packages/prometheus_dashboards/prometheus_storage.json
          - /var/vcap/packages/prometheus_dashboards/prometheus_summary.json
          - /var/vcap/packages/system_dashboards/bosh_system_disk_performance.json
          - /var/vcap/packages/system_dashboards/bosh_system_disk_space.json
          - /var/vcap/packages/system_dashboards/bosh_system_overview.json
          - /var/vcap/packages/system_dashboards/system_disk_performance.json
          - /var/vcap/packages/system_dashboards/system_disk_space.json
          - /var/vcap/packages/system_dashboards/system_overview.json
  env:
    bosh:
      password: ((grafana.<PASSWORD>))

- name: alertmanager
  instances: 1
  vm_type: ((alertmanager.vm_type))
  stemcell: trusty
  persistent_disk_type: ((alertmanager.persistent_disk_type))
  azs: ((azs))
  networks: [{name: ((network_name))}]
  jobs:
  - name: bosh_alerts
    release: prometheus
  - name: cloudfoundry_alerts
    release: prometheus
  - name: mysql_alerts
    release: prometheus
  - name: p_rabbitmq_alerts
    release: prometheus
  - name: p_redis_alerts
    release: prometheus
  - name: probe_alerts
    release: prometheus
  - name: prometheus_alerts
    release: prometheus

  - name: alertmanager
    release: prometheus
    properties:<commit_msg>use globs (requires bosh release newer than 14.0.0)<commit_after>---
name: prometheus

director_uuid: ((director_uuid))

releases:
- name: prometheus
  version: latest

stemcells:
- alias: trusty
  os: ubuntu-trusty
  version: latest

instance_groups:
- name: nginx
  instances: 1
  vm_type: ((nginx.vm_type))
  stemcell: trusty
  azs: ((azs))
  networks:
    - name: ((network_name))
      #static_ips: ((nginx.static_ips))
  jobs:
  - name: nginx
    release: prometheus
  properties:
    nginx: ((nginx.local_properties))
  env:
    bosh:
      password: ((nginx.<PASSWORD>))

- name: grafana
  instances: 1
  vm_type: ((grafana.vm_type))
  stemcell: trusty
  persistent_disk_type: ((grafana.persistent_disk_type))
  azs: ((azs))
  networks: [{name: ((network_name))}]
  jobs:
  - name: grafana
    release: prometheus
  - name: bosh_dashboards
    release: prometheus
  - name: cloudfoundry_dashboards
    release: prometheus
  - name: system_dashboards
    release: prometheus
  - name: mysql_dashboards
    release: prometheus
  - name: p_rabbitmq_dashboards
    release: prometheus
  - name: p_redis_dashboards
    release: prometheus
  - name: probe_dashboards
    release: prometheus
  - name: prometheus_dashboards
    release: prometheus
  properties:
    grafana:
      security:
        admin_password: ((grafana.<PASSWORD>))
      dashboards:
        json:
          enabled: true
      prometheus:
        dashboard_files:
          - /var/vcap/packages/bosh_dashboards/*.json
          - /var/vcap/packages/cloudfoundry_dashboards/*.json
          - /var/vcap/packages/mysql_dashboards/*.json
          - /var/vcap/packages/p_rabbitmq_dashboards/*.json
          - /var/vcap/packages/p_redis_dashboards/*.json
          - /var/vcap/packages/probe_dashboards/*.json
          - /var/vcap/packages/prometheus_dashboards/*.json
          - /var/vcap/packages/system_dashboards/*.json
  env:
    bosh:
      password: ((<PASSWORD>))

- name: alertmanager
  instances: 1
  vm_type: ((alertmanager.vm_type))
  stemcell: trusty
  persistent_disk_type: ((alertmanager.persistent_disk_type))
  azs: ((azs))
  networks: [{name: ((network_name))}]
  jobs:
  - name: bosh_alerts
    release: prometheus
  - name: cloudfoundry_alerts
    release: prometheus
  - name: mysql_alerts
    release: prometheus
  - name: p_rabbitmq_alerts
    release: prometheus
  - name: p_redis_alerts
    release: prometheus
  - name: probe_alerts
    release: prometheus
  - name: prometheus_alerts
    release: prometheus

  - name: alertmanager
    release: prometheus
    properties:
{'fraction_non_alphanumeric': 0.10012237178774057, 'fraction_numerical': 0.001112470797641562, 'mean_word_length': 3.0277777777777777, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2828417', 'n_tokens_mistral': 3156, 'n_tokens_neox': 3044, 'n_words': 394}