mateothegreat.sensu_go_backend
役割名
役割の簡単な説明がここに入ります。
要件
Ansible自体や役割ではカバーされない事前条件はここに記載してください。例えば、役割がEC2モジュールを使用している場合、botoパッケージが必要であることをここに記載するのが良いでしょう。
役割変数
この役割で設定可能な変数の説明をここに記載します。defaults/main.yml、vars/main.yml などに含まれる変数や、役割のパラメータを介して設定できる変数を含みます。他の役割やグローバルスコープ(例:hostvars、group vars など)から読み取られる変数もここに記載してください。
依存関係
Galaxy にホストされている他の役割のリストや、他の役割に設定が必要なパラメータや、使用される変数に関する詳細をここに記載します。
例プレイブック
役割の使い方の例(変数をパラメータとして渡す方法など)を含めると、ユーザーにとっても便利です:
- hosts: monitoring
roles:
- role: "mateothegreat.sensu_go_backend"
vars:
sensu_backend:
delete_if_exists: "true"
namespace: "default"
state_dir: "/var/lib/sensu/sensu-backend"
auth:
username: "admin"
password: "supersecret"
api:
url: "http://localhost:8080"
port: "8080"
agent:
port: "8081"
dashboard:
port: "8082"
default:
interval: "15"
timeout: "10"
handlers:
- "slack"
assets:
- name: "sensu/sensu-ruby-runtime"
rename: "sensu-ruby-runtime"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-load-checks"
rename: "load"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-disk-checks"
rename: "disk"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-io-checks"
rename: "io"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-memory-checks"
rename: "memory"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-network-checks"
rename: "network"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-process-checks"
rename: "processes"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-http"
rename: "http"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-redis"
rename: "redis"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-elasticsearch"
rename: "elasticsearch"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-influxdb"
rename: "influxdb"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "betorvs/sensu-opsgenie-handler"
rename: "opsgenie"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
- name: "sensu-plugins/sensu-plugins-aws"
rename: "aws"
namespaces: [ "apps", "cam", "mlfabric", "pulse-corona", "relationalgraph", "sandbox" ]
checks:
- name: "disk"
namespaces: [ "default", "cam", "pulse-corona", "relationalgraph", "mlfabric" ]
command: "check-disk-usage.rb -w 70 -c 80"
assets: [ "disk" ]
subscriptions: [ "all" ]
- name: "memory"
namespaces: [ "default", "cam", "pulse-corona", "relationalgraph", "mlfabric" ]
command: "check-memory.rb -w 75 -c 90"
assets: [ "memory" ]
subscriptions: [ "all" ]
- name: "node_exporter"
namespaces: [ "default", "cam", "pulse-corona", "relationalgraph", "mlfabric" ]
command: "check-process.rb -W 1 -c 2 -p 'prometheus-exporter-node'"
assets: [ "processes" ]
subscriptions: [ "all" ]
- name: "filebeat"
namespaces: [ "default", "cam", "pulse-corona", "relationalgraph", "mlfabric" ]
command: "check-process.rb -W 1 -c 2 -p 'filebeat'"
assets: [ "processes" ]
subscriptions: [ "all" ]
- name: "elasticsearch-node-status"
namespaces: [ "mlfabric" ]
command: "check-es-node-status.rb --host $(ip -o route get to 1.1.1.1 | sed -n 's/.*src \\([0-9.]\\+\\).*/\\1/p')"
assets: [ "elasticsearch" ]
subscriptions: [ "elasticsearch" ]
- name: "elasticsearch-rest-api"
namespaces: [ "mlfabric" ]
command: "check-http.rb -u http://$(ip -o route get to 1.1.1.1 | sed -n 's/.*src \\([0-9.]\\+\\).*/\\1/p'):9200"
assets: [ "http" ]
subscriptions: [ "elasticsearch" ]
- name: "elasticsearch-kibana-ui"
namespaces: [ "mlfabric" ]
command: "check-http.rb -u http://$(ip -o route get to 1.1.1.1 | sed -n 's/.*src \\([0-9.]\\+\\).*/\\1/p'):5601/app/home"
assets: [ "http" ]
subscriptions: [ "kibana" ]
- name: "app-mlfabric-ui"
namespaces: [ "apps" ]
command: "/usr/lib64/nagios/plugins/check_http -H mlfabric.moodysanalytics.com"
assets: [ "http" ]
subscriptions: [ "apps" ]
- name: "app-mlfabric-api"
namespaces: [ "apps" ]
command: "/usr/lib64/nagios/plugins/check_http -H api.mlfabric.moodysanalytics.com -e 403"
assets: [ "http" ]
subscriptions: [ "apps" ]
- name: "app-pulse-coronra-ui"
namespaces: [ "apps" ]
command: "/usr/lib64/nagios/plugins/check_http -H pulse.moodysanalytics.com"
assets: [ "http" ]
subscriptions: [ "apps" ]
- name: "app-pulse-corona-api"
namespaces: [ "apps" ]
command: "/usr/lib64/nagios/plugins/check_http --ssl -H lsclydaje0.execute-api.us-east-1.amazonaws.com -u /prod/top-issuers -e 403"
assets: [ "http" ]
subscriptions: [ "apps" ]
handlers:
- name: "opsgenie"
env_vars:
- "OPSGENIE_AUTHTOKEN=<your api token>"
- "OPSGENIE_TEAM=<your team>"
filters:
- "is_incident"
ライセンス
MIT
作者情報
役割の作者が連絡先情報やウェブサイトを含めるためのオプションのセクション(HTML は許可されていません)。
インストール
ansible-galaxy install mateothegreat.sensu_go_backend
ライセンス
Unknown
ダウンロード
138
所有者
🚀 ☞ Senior Software Architect, Cloud Engineer & DevOps Advocate. ✌