Пример #1
0
    "source_address",
    "Optional (defaults to '%s'). The IP address to be used as the source address when fetching "
    "the status URL.  Many servers require this to be 127.0.0.1 because they only server the status "
    "page to requests from localhost." % httpSourceAddress,
    default=httpSourceAddress,
)
define_config_option(
    __monitor__,
    "id",
    "Optional (defaults to empty string).  Included in each log message generated by this monitor, "
    "as a field named ``instance``. Allows you to distinguish between different nginx instances "
    "running on the same server.",
    convert_to=str,
)

define_log_field(__monitor__, "monitor", "Always ``nginx_monitor``.")
define_log_field(
    __monitor__,
    "metric",
    "The metric name.  See the metric tables for more information.",
)
define_log_field(__monitor__, "value", "The value of the metric.")
define_log_field(__monitor__, "instance",
                 "The ``id`` value from the monitor configuration.")

define_metric(
    __monitor__,
    "nginx.connections.active",
    "This is the number of connections currently opened to the "
    "server.  The total number of allowed connections is a function "
    "of the number of worker_processes and the number of "
Пример #2
0
define_config_option(__monitor__, 'module',
                     'Always ``scalyr_agent.builtin_monitors.nginx_monitor``',
                     convert_to=str, required_option=True)
define_config_option(__monitor__, 'status_url',
                     'Optional (defaults to \'http://localhost/nginx_status\').  The URL the monitor will fetch'
                     'to retrieve the nginx status information.', default='http://localhost/nginx_status')
define_config_option(__monitor__, 'source_address',
                     'Optional (defaults to \'%s\'). The IP address to be used as the source address when fetching '
                     'the status URL.  Many servers require this to be 127.0.0.1 because they only server the status '
                     'page to requests from localhost.' % httpSourceAddress, default=httpSourceAddress)
define_config_option(__monitor__, 'id',
                     'Optional (defaults to empty string).  Included in each log message generated by this monitor, '
                     'as a field named ``instance``. Allows you to distinguish between different nginx instances '
                     'running on the same server.', convert_to=str)

define_log_field(__monitor__, 'monitor', 'Always ``nginx_monitor``.')
define_log_field(__monitor__, 'metric', 'The metric name.  See the metric tables for more information.')
define_log_field(__monitor__, 'value', 'The value of the metric.')
define_log_field(__monitor__, 'instance', 'The ``id`` value from the monitor configuration.')

define_metric(__monitor__, 'nginx.connections.active', 'This is the number of connections currently opened to the '
                                                       'server.  The total number of allowed connections is a function '
                                                       'of the number of worker_processes and the number of '
                                                       'worker_connections configured within your Nginx configuration '
                                                       'file.')
define_metric(__monitor__, 'nginx.connections.reading', 'The number of connections currently reading from the clients.')
define_metric(__monitor__, 'nginx.connections.writing', 'The number of connections currently writing to the clients.')
define_metric(__monitor__, 'nginx.connections.waiting', 'The number of connections currently idle/sending keep alives.')


# Taken from:
Пример #3
0
define_config_option(
    __monitor__,
    'source_address',
    'Optional (defaults to \'%s\'). The IP address to be used as the source address when fetching '
    'the status URL.  Many servers require this to be 127.0.0.1 because they only server the status '
    'page to requests from localhost.' % httpSourceAddress,
    default=httpSourceAddress)
define_config_option(
    __monitor__,
    'id',
    'Optional (defaults to empty string).  Included in each log message generated by this monitor, '
    'as a field named ``instance``. Allows you to distinguish between different nginx instances '
    'running on the same server.',
    convert_to=str)

define_log_field(__monitor__, 'monitor', 'Always ``nginx_monitor``.')
define_log_field(
    __monitor__, 'metric',
    'The metric name.  See the metric tables for more information.')
define_log_field(__monitor__, 'value', 'The value of the metric.')
define_log_field(__monitor__, 'instance',
                 'The ``id`` value from the monitor configuration.')

define_metric(
    __monitor__, 'nginx.connections.active',
    'This is the number of connections currently opened to the '
    'server.  The total number of allowed connections is a function '
    'of the number of worker_processes and the number of '
    'worker_connections configured within your Nginx configuration '
    'file.')
define_metric(__monitor__, 'nginx.connections.reading',