Categorygithub.com/webdevops/pagerduty2es
modulepackage
0.0.0-20220619193314-a86993f0fa08
Repository: https://github.com/webdevops/pagerduty2es.git
Documentation: pkg.go.dev

# README

PagerDuty2es (elasticsearch) exporter

license DockerHub Quay.io

Exporter for incidents and logentries from PagerDuty to ElasticSearch

Configuration

Usage:
  pagerduty2es [OPTIONS]

Application Options:
      --debug                      debug mode [$DEBUG]
  -v, --verbose                    verbose mode [$VERBOSE]
      --log.json                   Switch log output to json format [$LOG_JSON]
      --pagerduty.authtoken=       PagerDuty auth token [$PAGERDUTY_AUTH_TOKEN]
      --pagerduty.date-range=      PagerDuty date range (default: 168h) [$PAGERDUTY_DATE_RANGE]
      --pagerduty.max-connections= Maximum numbers of TCP connections to PagerDuty API (concurrency) (default: 4)
                                   [$PAGERDUTY_MAX_CONNECTIONS]
      --elasticsearch.address=     ElasticSearch urls [$ELASTICSEARCH_ADDRESS]
      --elasticsearch.username=    ElasticSearch username for HTTP Basic Authentication [$ELASTICSEARCH_USERNAME]
      --elasticsearch.password=    ElasticSearch password for HTTP Basic Authentication [$ELASTICSEARCH_PASSWORD]
      --elasticsearch.apikey=      ElasticSearch base64-encoded token for authorization; if set, overrides username and
                                   password [$ELASTICSEARCH_APIKEY]
      --elasticsearch.index=       ElasticSearch index name (placeholders: %y for year, %m for month and %d for day)
                                   (default: pagerduty) [$ELASTICSEARCH_INDEX]
      --elasticsearch.batch-count= Number of documents which should be indexed in one request (default: 50)
                                   [$ELASTICSEARCH_BATCH_COUNT]
      --elasticsearch.retry-count= ElasticSearch request retry count (default: 5) [$ELASTICSEARCH_RETRY_COUNT]
      --elasticsearch.retry-delay= ElasticSearch request delay for reach retry (default: 5s)
                                   [$ELASTICSEARCH_RETRY_DELAY]
      --bind=                      Server address (default: :8080) [$SERVER_BIND]
      --scrape-time=               Scrape time (time.duration) (default: 5m) [$SCRAPE_TIME]

Help Options:
  -h, --help                       Show this help message

Metrics

MetricDescription
pagerduty2es_incident_totalTotal number of processed incidents
pagerduty2es_incident_logentry_totalTotal number of processed logentries
pagerduty2es_durationScrape process duration
pagerduty2es_elasticsearch_requet_totalNumber of total requests to ElasticSearch cluster
pagerduty2es_elasticsearch_request_retriesNumber of retried requests to ElasticSearch cluster

# Packages

No description provided by the author

# Constants

Limit of pagerduty incidents per call.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author