schema_version: 1

name: jboss.container.prometheus
version: '7'
description: ^
  Provides support for configuring Prometheus.  Basic usage is
  JAVA_OPTS="$JAVA_OPTS $(source $JBOSS_CONTAINER_PROMETHEUS_MODULE/prometheus-opts; get_prometheus_opts)"

envs:
- name: JBOSS_CONTAINER_PROMETHEUS_MODULE
  value: /opt/jboss/container/prometheus
- name: AB_PROMETHEUS_ENABLE
  description: Enable the use of the Prometheus agent
  example: true
- name: AB_PROMETHEUS_JMX_EXPORTER_PORT
  description: Port to use for the Prometheus JMX Exporter.
  example: 9799
- name: AB_PROMETHEUS_JMX_EXPORTER_CONFIG
  value: /opt/jboss/container/prometheus/etc/jmx-exporter-config.yaml
  description: Path to configuration to use for the Prometheus JMX Exporter

execute:
- script: configure.sh
- script: backwards_compatibility.sh

artifacts:
- name: jmx_prometheus_javaagent
  target: jmx_prometheus_javaagent-0.3.1.redhat-00006.jar
  md5: 620d5c068e4ca408ad99c244f8706fce

schema_version: 1

name: jboss.container.prometheus
version: '7'
description: ^
  Provides support for configuring Prometheus.  Basic usage is
  JAVA_OPTS="$JAVA_OPTS $(source $JBOSS_CONTAINER_PROMETHEUS_MODULE/prometheus-opts; get_prometheus_opts)"

envs:
- name: JBOSS_CONTAINER_PROMETHEUS_MODULE
  value: /opt/jboss/container/prometheus
- name: AB_PROMETHEUS_ENABLE
  description: Enable the use of the Prometheus agent
  example: true
- name: AB_PROMETHEUS_JMX_EXPORTER_PORT
  description: Port to use for the Prometheus JMX Exporter.
  example: 9799
- name: AB_PROMETHEUS_JMX_EXPORTER_CONFIG
  value: /opt/jboss/container/prometheus/etc/jmx-exporter-config.yaml
  description: Path to configuration to use for the Prometheus JMX Exporter

execute:
- script: configure.sh
- script: backwards_compatibility.sh

artifacts:
- name: jmx_prometheus_javaagent
  target: jmx_prometheus_javaagent-0.3.2.redhat-00003.jar
  md5: 8b3af39995b113baf35e53468bad7aae

Bump Prometheus agent version to pick up SnakeYAML fix
Bump Prometheus agent version to pick up SnakeYAML fix

The new artefact contains a shaded SnakeYAML with a fix for
CVE-2017-18640.

Signed-off-by: Jonathan Dowland <c0ba515c40872faa4125f492781ab4f735e85bcc@redhat.com>
