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=<你的API令牌>"
                - "OPSGENIE_TEAM=<你的团队>"
              filters:
                - "is_incident"

许可证

MIT

作者信息

角色作者可以选择性地在此处提供联系信息或网站(不允许使用HTML)。

关于项目

Install & configure the sensu go backend.

安装
ansible-galaxy install mateothegreat.sensu_go_backend
许可证
Unknown
下载
138
拥有者
🚀 ☞ Senior Software Architect, Cloud Engineer & DevOps Advocate. ✌