e13de8083e
Now the user will be able to configure one, default Keystone for all services in `http_check.yml` instead of providing them one by one for every instance. Setting Keystone config in every instance is marked as depreciated. Story: 2001843 Task: 12610 Change-Id: If52b52efab6cc14a7df583b1dc2596b04e6813bc
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
# (C) Copyright 2015 Hewlett Packard Enterprise Development Company LP
|
|
|
|
init_config:
|
|
# If your service uses keystone for authentication, you can optionally
|
|
# specify the information to collect a token to be used in the check.
|
|
# This information should follow the same guidelines presented in
|
|
# agent.yaml.template
|
|
# https://github.com/openstack/monasca-agent/blob/master/agent.yaml.template
|
|
# keystone_config:
|
|
# keystone_url: http://endpoint.com/v3/
|
|
# project_name: project
|
|
# username: user
|
|
# password: password
|
|
|
|
instances:
|
|
# - name: Some Service Name
|
|
# url: http://some.url.example.com
|
|
# timeout: 1
|
|
|
|
# If your service uses basic authentication, you can optionally
|
|
# specify a username and password that will be used in the check.
|
|
# username: user
|
|
# password: pass
|
|
|
|
# If use_keystone=True then Keystone information from `init_config`
|
|
# will be used, and if it's not there then Keystone configuration
|
|
# from the agent config will be used.
|
|
# use_keystone: True
|
|
|
|
# The (optional) match_pattern parameter will instruct the check
|
|
# to match the HTTP response body against a regular-expression-
|
|
# compatible pattern. If the pattern matches the check will
|
|
# return 0 for OK. Otherwise, it will return 1 for an error
|
|
|
|
# match_pattern: '.*OK.*OK.*OK.*OK.*OK'
|
|
|
|
# The (optional) collect_response_time parameter will instruct the
|
|
# check to create a metric 'network.http.response_time', tagged with
|
|
# the url, reporting the response time in seconds.
|
|
|
|
# collect_response_time: true
|
|
|
|
# The (optional) disable_ssl_validation will instruct the check
|
|
# to skip the validation of the SSL certificate of the URL being tested.
|
|
# This is mostly useful when checking SSL connections signed with
|
|
# certificates that are not themselves signed by a public authority.
|
|
# When true, the check logs a warning in collector.log
|
|
|
|
# disable_ssl_validation: true
|
|
|
|
# The (optional) headers parameter allows you to send extra headers
|
|
# with the request. This is useful for explicitly specifying the host
|
|
# header or perhaps adding headers for authorisation purposes. Note
|
|
# that the http client library converts all headers to lowercase.
|
|
# This is legal according to RFC2616
|
|
# (See: http://tools.ietf.org/html/rfc2616#section-4.2)
|
|
# but may be problematic with some HTTP servers
|
|
# (See: https://code.google.com/p/httplib2/issues/detail?id=169)
|
|
|
|
# headers:
|
|
# Host: alternative.host.example.com
|
|
# X-Auth-Token: SOME-AUTH-TOKEN
|
|
|
|
# dimensions:
|
|
# dim1: value1
|