Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

38 lines (28 loc) · 1.27 KB

circle-splunk-reporter

FOSSA Status

A package to report statistics about circle jobs to splunk.

This package depends on the following environment variables to be set:

CIRCLE_TOKEN - circleci user token that has access to the project you are reporting
SPLUNK_URL - your splunk url
SPLUNK_TOKEN - splunk  token

The rest of the environment variables are provided by CircleCI

In order to use:

$ npx @alexswensen/circle-splunk-reporter --name "event name" --index "splunk-index"

example usage in circle config.yml

- run:
    name: record metrics to splunk
    command: CIRCLE_TOKEN=$CIRCLECI_TOKEN
      SPLUNK_TOKEN=$MY_SPLUNK_TOKEN npx
      @alexswensen/circle-splunk-reporter --name
      "circle-metrics-hello" --index "my-index"
    when: always
    environment:
      SPLUNK_URL: <splunk-url:port>

License

FOSSA Status