nginxplusreceiver

package
v3.0.0-...-f3ec0d7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

NGINX Plus Receiver

This receiver can fetch stats from a NGINX Plus instance via the ngx_http_api_module module's api endpoint.

Configuration

NGINX Module

You must configure NGINX Plus to expose api information by editing the NGINX configuration.
Please see ngx_http_api_module for a guide to configuring the NGINX stats module ngx_http_api_module.

Receiver Config

The following settings are required:

  • endpoint (default: http://localhost:80/api): The URL of the NGINX Plus API endpoint

The following settings are optional:

  • collection_interval (default = 10s): This receiver collects metrics on an interval. This value must be a string readable by Golang's time.ParseDuration. Valid time units are ns, us (or µs), ms, s, m, h.

  • initial_delay (default = 1s): defines how long this receiver waits before starting.

Example:

receivers:
  nginxplus:
    endpoint: "http://localhost:80/api"
    collection_interval: 10s

Documentation

Overview

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Copyright (c) F5, Inc.

This source code is licensed under the Apache License, Version 2.0 license found in the LICENSE file in the root directory of this source tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() receiver.Factory

nolint: ireturn

Types

type Config

type Config struct {
	confighttp.ClientConfig        `mapstructure:",squash"`
	scraperhelper.ControllerConfig `mapstructure:",squash"`
	MetricsBuilderConfig           metadata.MetricsBuilderConfig `mapstructure:",squash"`
}

func (*Config) Validate

func (cfg *Config) Validate() error

Validate checks if the receiver configuration is valid

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL