Home

Awesome

Coralogix Event Resource

Docker Repository on Quay

A resource type for Concourse CI which emits events to Coralogix.

Source Configuration

Example Configuration

Resource type definition

resource_types:
- name: coralogix-event
  type: registry-image
  source:
    repository: quay.io/coralogix/eng-coralogix-event-resource
    tag: v0.1.8

Resource configuration

resources:
- name: pipeline-status
  type: coralogix-event
  source:
    private_key: ((team-private-key))

Behavior

check : Not supported

in : Not supported

out : Send event to Coralogix API

Emit event to Coralogix API containing the pipeline jobs metadata

Params

Example Usage

Used in on_success, on_abort, on_failed Concourse step hooks in order to send a log to Coralogix with the job details. Remember that in the Coralogix Logs REST API, 1 is Debug, 2 is Verbose, 3 is Info, 4 is Warn, 5 is Error, and 6 is Critical.

resource_types:
- name: coralogix-event
  type: registry-image
  source:
    repository: quay.io/coralogix/concourse-resource-coralogix-event
    tag: v0.1.8
resources:
- name: pipeline-status
  type: coralogix-event
  source: { private_key: ((team-private-key)) }
jobs:
  - name: job
    plan:
      - put: pipeline-status
        params:
          build_status: "job start"
          severity: "3"
      - task: simple-task
        config:
          platform: linux
          image_resource:
            type: registry-image
            source: { repository: busybox }
          run:
            path: echo
            args: ["Hello, world!"]
        on_success:
          put: pipeline-status
          params:
            build_status: 'task success'
            severity: '1'
        on_abort:
          put: pipeline-status
          params:
            build_status: 'task abort'
            severity: '2'
        on_error:
          put: pipeline-status
          params:
            build_status: 'task error'
            severity: '2'
        on_failure:
          put: pipeline-status
          params:
            build_status: 'task failure'
            severity: '2'
    on_success:
      put: pipeline-status
      params:
        build_status: "job success"
        severity: "3"
    on_abort:
      put: pipeline-status
      params:
        build_status: "job abort"
        severity: "4"
    on_error:
      put: pipeline-status
      params:
        build_status: "job error"
        severity: "5"
    on_failure:
      put: pipeline-status
      params:
        build_status: "job failure"
        severity: "6"

Maintainers

License

Apache License 2.0 © Coralogix, Inc.