c483d95b0b
DD's service_check function does not exist in Monasca, since these metrics are still valuable they have been replaced with gauge checks. Also adding corresponding monasca_setup detection plugin for supervisord Change-Id: I0276a51aaea21b5684ec114b4e31e05ad0dddfdf
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
# (C) Copyright 2016 Hewlett Packard Enterprise Development Company LP
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
#
|
|
# There are two ways to get started with the supervisord check.
|
|
#
|
|
# You can configure inet_http_server in /etc/supervisord.conf. Below is an
|
|
# example inet_http_server configuration:
|
|
#
|
|
# [inet_http_server]
|
|
# port:localhost:9001
|
|
# username:user # optional
|
|
# password:pass # optional
|
|
#
|
|
# OR, you can use supervisorctl socket to communicate with supervisor.
|
|
# If supervisor is running as root, make sure chmod property is set
|
|
# to a permission accessible to non-root users. See the example below:
|
|
#
|
|
# [supervisorctl]
|
|
# serverurl=unix:///var/run//supervisor.sock
|
|
#
|
|
# [unix_http_server]
|
|
# file=/var/run/supervisor.sock
|
|
# chmod=775
|
|
#
|
|
# Reload supervisor, specify the inet or unix socket server information
|
|
# in this yaml file along with an optional list of the processes you want
|
|
# to monitor per instance, and you're good to go!
|
|
#
|
|
# See http://supervisord.org/configuration.html for more information on
|
|
# configuring supervisord sockets and inet http servers.
|
|
#
|
|
|
|
init_config:
|
|
|
|
instances:
|
|
# - name: server0 # Required. An arbitrary name to identify the supervisord server
|
|
# host: localhost # Optional. Defaults to localhost. The host where supervisord server is running
|
|
# port: 9001 # Optional. Defaults to 9001. The port number.
|
|
# user: user # Optional. Required only if a username is configured.
|
|
# pass: pass # Optional. Required only if a password is configured.
|
|
# proc_regex: # Optional. Regex pattern[s] matching the names of processes to monitor
|
|
# - 'myprocess-\d\d$'
|
|
# proc_names: # Optional. The process to monitor within this supervisord instance.
|
|
# - apache2 # If not specified, the check will monitor all processes.
|
|
# - webapp
|
|
# - java
|
|
# proc_uptime_check: False # Optional. Defaults to True.
|
|
# proc_details_check: False # Optional. Defaults to True.
|
|
# - name: server1
|
|
# host: localhost
|
|
# port: 9002
|
|
# - name: server2
|
|
# socket: unix:///var/run//supervisor.sock
|
|
# host: http://127.0.0.1 # Optional. Defaults to http://127.0.0.1 |