Skip to content

ballerina-platform/module-ballerinax-metrics.logs

Repository files navigation

Package Overview

The Metrics Logs Observability Extension is used to enable Ballerina metrics logs to be observed by OpenSearch.

Enabling Metrics Logs Extension

To package the metrics logs extension into the Jar, follow the following steps.

  1. Add the following import to your program.
import ballerinax/metrics.logs as _;
  1. Add the following to the Ballerina.toml when building your program.
[package]
org = "my_org"
name = "my_package"
version = "1.0.0"

[build-options]
observabilityIncluded=true

To enable the extension and publish metrics logs to OpenSearch, add the following to the Config.toml when running your program.

[ballerina.observe]
metricsLogsEnabled=true

About

Ballerina Metrics Logs Extension Module

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •