Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpsGenie does not allow to change API endpoint used for notifications #603

Open
damjanek opened this issue Feb 15, 2021 · 0 comments
Open
Labels

Comments

@damjanek
Copy link

damjanek commented Feb 15, 2021

BUG REPORT

What version of Moira are you using ([binary] --version)?

$ api --version
/ # /usr/bin/api --version
Moira Api
Version: 2.5.0.0
Git Commit: 4c03982d9e87e38354a5b648971cda6f580811f3
Go Version: go1.11.5

$ notifier --version
/ # notifier --version
Moira Notifier
Version: MoiraVersion
Git Commit: git_Commit
Go Version: GoVersion

Notifier container is built from master.

Configuration

notifier.yaml

redis:
  master_name: ""
  sentinel_addrs: ""
  host: "moira_redis"
  port: "6379"
  dbid: 0
  connection_limit: 512
graphite:
  enabled: true
  runtime_stats: false
  uri: "graphite.example.com:2003"
  prefix: moira
  interval: 60s
notifier:
  sender_timeout: 10s
  resending_timeout: "1:00"
  front_uri: "https://moira.example.com"
  timezone: Europe/Warsaw
  date_time_format: "15:04 02.01.2006"
  senders:
    -   api_key: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
        type: opsgenie

  moira_selfstate:
    enabled: false
    remote_triggers_enabled: false
    redis_disconect_delay: 60s
    last_metric_received_delay: 120s
    last_check_delay: 120s
    last_remote_check_delay: 300s
    notice_interval: 300s
    contacts: []
remote:
  enabled: true
  url: "http://graphite.example.com/render"
  user: user
  password: pass
  check_interval: 60s
  timeout: 300s
log:
  log_file: 'stdout'
  log_level: 'info'

What did you expect to see?

OpsGenie sender should allow user to provide an API endpoint which is used for notifications.
This is essential, if you're running against EU OpsGenie endpoint (OpsGenie has two instances - EU and non-EU).

What did you see instead?

https://github.com/moira-alert/moira/blob/master/senders/opsgenie/init.go#L39 - it should just include additional stanza when initializing the client with chosen api endpoint.
Also examples should mention ways to use different than default endpoint.

@damjanek damjanek added the bug label Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant