Skip to content

Releases: ballerina-platform/module-ballerina-observe

module-ballerina-observe-v1.7.0

25 Nov 08:58

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.7.0'.

module-ballerina-observe-v1.5.1

04 Nov 10:30
5e1a5e4

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.5.1'.

module-ballerina-observe-v1.6.0

27 Oct 05:15

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.6.0'.

module-ballerina-observe-v1.5.0

12 Mar 05:56

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.5.0'.

Opensearch Observability Dashboard

25 Jul 06:03
92e7f58

Choose a tag to compare

Pre-release

Ballerina supports observability for OpenSearch, which is a community-driven, Apache 2.0-licensed open source search and analytics suite that makes it easy to ingest, search, visualize, and analyze data. It provides a highly scalable system for providing fast access and response to large volumes of data with an integrated visualization tool, OpenSearch Dashboards, that makes it easy for users to explore their data.

Provided opensearch-observability-dashboard.zip contains the set-up to observe Ballerina programs with OpenSearch.

Follow the steps given below to view Ballerina metrics, traces and logs in OpenSearch.

  1. Download and unzip the opensearch-observability-dashboard.zip in your local machine.
  2. Update OPENSEARCH_INITIAL_ADMIN_PASSWORD in the path/to/opensearch-observability-dashboard/config/.env file.
  3. Run docker compose to start the OpenSearch server.
    docker compose -f docker-compose.yml up -d
    
  4. Create a Ballerina service (e.g. shop service) with the following runtime configurations in the Config.toml file.
    [ballerina.observe]
    metricsLogsEnabled = true
    tracingEnabled=true
    tracingProvider="jaeger"
    
    [ballerinax.jaeger]
    agentHostname="localhost"
    agentPort=4317
    samplerType="const"
    samplerParam=1.0
    reporterFlushInterval=2000
    reporterBufferSize=1000
    
    [ballerinax.metrics.logs]
    logFilePath = "<PATH>/<TO>/opensearch-observability-dashboard/logs/ballerina/<NAME_FOR_SERVICE>/app.log"
  5. Open the main.bal file in the Ballerina package and add the following imports.
    import ballerinax/metrics.logs as _;
    import ballerinax/jaeger as _;
  6. Run the Ballerina service with the following command.
    $ bal run
    
  7. Send requests to your Ballerina service.
  8. Go to http://localhost:5601/ to view metrics, traces and logs in the OpenSearch dashboard.

module-ballerina-observe-v1.4.0

07 Feb 12:17

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.4.0'.

module-ballerina-observe-v1.3.0

20 Aug 05:54

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.3.0'.

module-ballerina-observe-v1.2.3

03 May 11:30

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.2.3'.

module-ballerina-observe-v1.2.2

19 Jan 04:20

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.2.2'.

module-ballerina-observe-v1.2.1

18 Jan 09:31

Choose a tag to compare

[Gradle Release Plugin] - creating tag:  'v1.2.1'.