Docs
Plugin HubCategoriesObservabilitySkyWalkingConfiguration

SkyWalking Configuration

Configuration reference for the SkyWalking plugin (`skywalking`): the static configurations and parameters, each attribute with its type, whether it is required, its default and its accepted values.

Static Configurations

By default, service names and endpoint address for the plugin are pre-configured in the default configuration.

The file to update depends on how the gateway is deployed:

For host or Docker deployments, configure the following settings:

config.yaml
plugin_attr:
  skywalking:
    report_interval: 3      # Reporting interval time in seconds.
    service_name: APISIX    # Service name for SkyWalking reporter.
    service_instance_name: "APISIX Instance Name"   # Service instance name for SkyWalking reporter.
                                                    # Set to $hostname to get the local hostname.
    endpoint_addr: http://127.0.0.1:12800           # SkyWalking HTTP endpoint.

Then reload the gateway for changes to take effect.

Parameters

See plugin common configurations (opens in Apache APISIX docs) for configuration options available to all plugins.

sample_ratio — number · optional · default: 1 · since APISIX 1.4 · API7 Gateway 3.2.16.3

Valid values: between 0.00001 and 1 inclusive

Frequency of request sampling. Setting the sample ratio to 1 means to sample all requests.