@alexswensen/circle-splunk-reporter
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @alexswensen/circle-splunk-reporter

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

25.8 kB

Total Files

23

Last publish

Collaborators

  • alexswensen