releases:
  - name: riemann
    url: https://github.com/alphagov/paas-cf/releases/download/riemann-1/riemann-gds-1.tgz
    sha1: 8a4220a039ce6a2a0383aab8d4a76746501e58ec
    version: gds-1

jobs:
  - name: concourse
    templates:
      - name: datadog-agent
        release: datadog-agent
        properties:
          datadog: (( inject meta.datadog ))
          tags:
            job: concourse
            tags: (( inject meta.datadog_tags ))
      - name: riemann
        release: riemann
        properties:
          riemann:
            datadog:
              api_key: (( grab meta.datadog.api_key ))

      - name: atc
        properties:
          riemann:
            host: '127.0.0.1'
            service_prefix: (( concat terraform_outputs.environment "-concourse." ))

releases:
  - name: riemann
    url: https://github.com/alphagov/paas-cf/releases/download/riemann-1/riemann-gds-1.tgz
    sha1: 8a4220a039ce6a2a0383aab8d4a76746501e58ec
    version: gds-1

jobs:
  - name: concourse
    templates:
      - name: datadog-agent
        release: datadog-agent
        properties:
          datadog: (( inject meta.datadog ))
          tags:
            job: concourse
            tags: (( inject meta.datadog_tags ))
      - name: riemann
        release: riemann
        properties:
          riemann:
            datadog:
              api_key: (( grab meta.datadog.api_key ))

      - name: atc
        properties:
          riemann:
            host: '127.0.0.1'
            service_prefix: 'concourse.'

Use concourse prefix for concourse riemann metrics
Use concourse prefix for concourse riemann metrics

After setting the environment name as deployment name, the
riemann metrics from concourse will be tagged uniquely by the deployment
name.

Because this, we can use `concourse.` as prefix of the metrics, instead
of add the environment name.
