oncall-settings-example.yaml 3.19 KB
Newer Older
John Jarvis's avatar
John Jarvis committed
1 2 3 4
# Copy this file to ~/.oncall-settings.yaml
# and update api_tokens below

api_tokens:
John Jarvis's avatar
John Jarvis committed
5 6
  gitlab: # GITLAB API TOKEN GOES HERE or set $GITLAB_API_TOKEN
  gitlab_dev: # *** GITLAB DEV API TOKEN GOES HERE or set $GITLAB_DEV_API_TOKEN
John Jarvis's avatar
John Jarvis committed
7
  # 1Password "oncall-robot grafana api key"
John Jarvis's avatar
John Jarvis committed
8
  grafana: # *** GRAFANA API KEY GOES HERE ***" or set $GRAFANA_API_KEY
John Jarvis's avatar
John Jarvis committed
9
  # 1Password "oncall-robot pager duty api key"
John Jarvis's avatar
John Jarvis committed
10
  pager_duty: # *** PD API TOKEN GOES HERE ***" or set $PAGER_DUTY_TOKEN
John Jarvis's avatar
John Jarvis committed
11 12 13 14 15 16 17 18

# Projects
projects:
  infrastructure:
    id: 1304532
  report_project:
    # Where to create the issue
    # oncall_robot
John Jarvis's avatar
John Jarvis committed
19 20 21 22
    # id: 3950829
    # infra: 1304532
    # production 7444821
    id: 7444821
23 24
  production:
    id: 7444821
25 26 27 28 29 30 31 32 33 34 35

# Number of days to look back for the
# oncall report
day_offset: 7
# Label used for oncall
oncall_label: oncall

# Pagerduty configuration
pagerduty:
  service_id: PATDFCE
  schedules:
John Jarvis's avatar
John Jarvis committed
36 37
    - name: SRE
      id: P22HQSG
38 39 40 41 42 43 44

# To add weekly ops graphs:
# * clicking "share" for the graph to add
# * copy the "direct link rendered image link"
# * remove the from/to url params, these will be generated

weekly_ops:
John Jarvis's avatar
John Jarvis committed
45 46 47 48 49 50 51 52 53 54 55 56
  - name: p50 Web latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=22&width=1000&height=500&tz=UTC
  - name: p50 API latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=24&width=1000&height=500&tz=UTC
  - name: p50 Git latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=25&width=1000&height=500&tz=UTC
  - name: p95 Web latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=26&width=1000&height=500&tz=UTC
  - name: p95 API latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=27&width=1000&height=500&tz=UTC
  - name: p95 Git latency for 200s
    url: https://performance.gitlab.net/render/dashboard-solo/db/rails-latencies?refresh=5m&orgId=1&panelId=28&width=1000&height=500&tz=UTC
57 58
  - name: Gitaly p95 latency
    url: https://performance.gitlab.net/render/dashboard-solo/db/triage-overview?refresh=1m&orgId=1&panelId=20&width=1000&height=500&tz=UTC
59 60 61 62 63 64 65 66 67 68
  - name: API CPU
    url: https://performance.gitlab.net/render/dashboard-solo/db/fleet-overview?refresh=5m&orgId=1&panelId=40&var-environment=prd&width=1000&height=500&tz=UTC
  - name: Web CPU
    url: https://performance.gitlab.net/render/dashboard-solo/db/fleet-overview?refresh=5m&panelId=39&orgId=1&var-environment=prd&width=1000&height=500&tz=UTC
  - name: Git CPU
    url: https://performance.gitlab.net/render/dashboard-solo/db/fleet-overview?refresh=5m&orgId=1&var-environment=prd&panelId=41&width=1000&height=500&tz=UTC
  - name: Sidekiq CPU
    url: https://performance.gitlab.net/render/dashboard-solo/db/fleet-overview?refresh=5m&orgId=1&var-environment=prd&panelId=43&width=1000&height=500&tz=UTC
  - name: NFS timeouts
    url: https://performance.gitlab.net/render/dashboard-solo/db/triage-overview?refresh=1m&orgId=1&panelId=18&width=1000&height=500&tz=UTC
John Jarvis's avatar
John Jarvis committed
69 70 71

# Look for merge requests
# for the following projects