Skip to main content

Static Configurations

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

To customize these values, add the corresponding configurations to config.yaml. For example:

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.

Reload APISIX for changes to take effect.

If you are using API7 Enterprise, you should configure these parameters in the dashboard Plugin Settings > Plugin Metadata:

{
"report_interval": 3,
"service_name": "APISIX",
"service_instance_name": "APISIX Instance Name",
"endpoint_addr": "http://127.0.0.1:12800"
}

Parameters

See plugin common configurations for configuration options available to all plugins.

  • sample_ratio

    number


    required


    vaild vaule:

    between 0.00001 and 1 inclusive


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

API7.ai Logo

The digital world is connected by APIs,
API7.ai exists to make APIs more efficient, reliable, and secure.

Sign up for API7 newsletter

Product

API7 Gateway

SOC2 Type IIISO 27001HIPAAGDPRRed Herring

Copyright © APISEVEN PTE. LTD 2019 – 2025. Apache, Apache APISIX, APISIX, and associated open source project names are trademarks of the Apache Software Foundation