Menu
Grafana Cloud

WSO2 Streaming Integrator integration for Grafana Cloud

WSO2 Streaming Integrator allows you to implement streaming ETL, change data capture (CDC), and process large files and real-time APIs. You can connect and realize event-driven architectures with distributed streaming systems such as Kafka, Amazon SQS, and more.

This integration was designed based on the dashboards publicly available on WSO2 Github. It is updated to use the most recent panel versions and enables both a course and fine grained evaluation of your Streaming Integrator instances and Siddhi server and applications.

This integration includes 11 pre-built dashboards to help monitor and visualize WSO2 Streaming Integrator metrics.

Before you begin

In order for this integration to work, you have to enable the Prometheus endpoint on your WSO2 Streaming Integrator nodes. Please refer to the official documentation.

Install WSO2 Streaming Integrator integration for Grafana Cloud

  1. In your Grafana Cloud stack, click Connections in the left-hand menu.
  2. Find WSO2 Streaming Integrator and click its tile to open the integration.
  3. Review the prerequisites in the Configuration Details tab and set up Grafana Agent to send WSO2 Streaming Integrator metrics to your Grafana Cloud instance.
  4. Click Install to add this integration’s pre-built dashboards to your Grafana Cloud instance, and you can start monitoring your WSO2 Streaming Integrator setup.

Post-install configuration for the WSO2 Streaming Integrator integration

After enabling the metrics generation, you should instruct Grafana Agent to scrape your WSO2 nodes.

WSO2 exposes a /metrics endpoint. To scrape it, add the provided snippet to your agent configuration file.

Make sure to change targets in the snippet according to your environment.

Configuration snippets for Grafana Agent

Below metrics.configs.scrape_configs, insert the following lines and change the URLs according to your environment:

yaml
    - job_name: integrations/wso2-streaming-integrator
      metrics_path: '/metric-service/metrics'
      relabel_configs:
        - replacement: '<your-instance-name>'
          target_label: instance
      static_configs:
        - targets: ['wso2si:9005']

Full example configuration for Grafana Agent

Refer to the following Grafana Agent configuration for a complete example that contains all the snippets used for the WSO2 Streaming Integrator integration. This example also includes metrics that are sent to monitor your Grafana Agent instance.

yaml
integrations:
  prometheus_remote_write:
  - basic_auth:
      password: <your_prom_pass>
      username: <your_prom_user>
    url: <your_prom_url>
  agent:
    enabled: true
    relabel_configs:
    - action: replace
      source_labels:
      - agent_hostname
      target_label: instance
    - action: replace
      target_label: job
      replacement: "integrations/agent-check"
    metric_relabel_configs:
    - action: keep
      regex: (prometheus_target_sync_length_seconds_sum|prometheus_target_scrapes_.*|prometheus_target_interval.*|prometheus_sd_discovered_targets|agent_build.*|agent_wal_samples_appended_total|process_start_time_seconds)
      source_labels:
      - __name__
  # Add here any snippet that belongs to the `integrations` section.
  # For a correct indentation, paste snippets copied from Grafana Cloud at the beginning of the line.
logs:
  configs:
  - clients:
    - basic_auth:
        password: <your_loki_pass>
        username: <your_loki_user>
      url: <your_loki_url>
    name: integrations
    positions:
      filename: /tmp/positions.yaml
    scrape_configs:
      # Add here any snippet that belongs to the `logs.configs.scrape_configs` section.
      # For a correct indentation, paste snippets copied from Grafana Cloud at the beginning of the line.
metrics:
  configs:
  - name: integrations
    remote_write:
    - basic_auth:
        password: <your_prom_pass>
        username: <your_prom_user>
      url: <your_prom_url>
    scrape_configs:
      # Add here any snippet that belongs to the `metrics.configs.scrape_configs` section.
      # For a correct indentation, paste snippets copied from Grafana Cloud at the beginning of the line.
    - job_name: integrations/wso2-streaming-integrator
      metrics_path: '/metric-service/metrics'
      relabel_configs:
        - replacement: '<your-instance-name>'
          target_label: instance
      static_configs:
        - targets: ['wso2si:9005']
  global:
    scrape_interval: 60s
  wal_directory: /tmp/grafana-agent-wal

Dashboards

The WSO2 Streaming Integrator integration installs the following dashboards in your Grafana Cloud instance to help monitor your system.

  • WSO2 Siddhi Aggregation Statistics
  • WSO2 Siddhi On-Demand Query Statistics
  • WSO2 Siddhi Overall Statistics
  • WSO2 Siddhi Query Statistics
  • WSO2 Siddhi Server Statistics
  • WSO2 Siddhi Sink Statistics
  • WSO2 Siddhi Source Statistics
  • WSO2 Siddhi Stream Statistics
  • WSO2 Siddhi Table Statistics
  • WSO2 Streaming Integrator App Statistics
  • WSO2 Streaming Integrator Overall Statistics

WSO2 Streaming Integrator Overview

WSO2 Streaming Integrator Overview

WSO2 Streaming Integrator App Overview

WSO2 Streaming Integrator App Overview

Siddhi Query Statistics

Siddhi Query Statistics

Metrics

The most important metrics provided by the WSO2 Streaming Integrator integration, which are used on the pre-built dashboards, are as follows:

  • jvm_class_loading_loaded_current
  • jvm_class_loading_loaded_total
  • jvm_class_loading_unloaded_total
  • jvm_memory_heap_max
  • jvm_memory_heap_usage
  • jvm_memory_heap_used
  • jvm_os_cpu_load_process
  • jvm_os_cpu_load_system
  • jvm_os_file_descriptor_open_count
  • jvm_os_physical_memory_free_size
  • jvm_os_physical_memory_total_size
  • jvm_os_swap_space_free_size
  • jvm_os_swap_space_total_size
  • jvm_os_system_load_average
  • jvm_threads_blocked_count
  • jvm_threads_count
  • jvm_threads_daemon_count
  • siddhi_aggregation_latency
  • siddhi_aggregation_memory
  • siddhi_aggregation_throughput_total
  • siddhi_cdc_source_listening_mode_db_status
  • siddhi_cdc_source_listening_mode_event_count
  • siddhi_cdc_source_listening_mode_events_per_table
  • siddhi_cdc_source_listening_mode_idle_time
  • siddhi_cdc_source_listening_mode_last_receive_time
  • siddhi_cdc_source_listening_mode_total_error_count
  • siddhi_cdc_source_listening_mode_total_valid_events_count
  • siddhi_cdc_source_polling_mode_db_status
  • siddhi_cdc_source_polling_mode_event_count
  • siddhi_cdc_source_polling_mode_events_in_last_polling_interval
  • siddhi_cdc_source_polling_mode_idle_time
  • siddhi_cdc_source_polling_mode_last_receive_time
  • siddhi_cdc_source_polling_mode_total_error_count
  • siddhi_cdc_source_polling_mode_total_valid_events_count
  • siddhi_file_sink_dropped_events
  • siddhi_file_sink_elapsed_time
  • siddhi_file_sink_event_count
  • siddhi_file_sink_file_size
  • siddhi_file_sink_file_status
  • siddhi_file_sink_lines_count
  • siddhi_file_sink_total_error_count
  • siddhi_file_source_elapse_time
  • siddhi_file_source_error_count
  • siddhi_file_source_event_count
  • siddhi_file_source_file_size
  • siddhi_file_source_file_status
  • siddhi_file_source_started_time
  • siddhi_file_source_total_valid_events_count
  • siddhi_http_sink_average_latency
  • siddhi_http_sink_error_count
  • siddhi_http_sink_event_count
  • siddhi_http_sink_request_size
  • siddhi_http_sink_status
  • siddhi_http_source_error_count
  • siddhi_http_source_event_count
  • siddhi_http_source_request_size
  • siddhi_http_source_status
  • siddhi_kafka_sink_current_offset
  • siddhi_kafka_sink_error_count
  • siddhi_kafka_sink_error_count_per_stream
  • siddhi_kafka_sink_per_stream_last_message_latency_in_millis
  • siddhi_kafka_sink_per_stream_last_message_published_at
  • siddhi_kafka_sink_per_stream_last_message_size_in_bytes
  • siddhi_kafka_sink_write_count_per_stream
  • siddhi_kafka_source_error_count_per_stream
  • siddhi_kafka_source_per_stream_last_message_consumed_at
  • siddhi_kafka_source_per_stream_with_partition_consumer_lag
  • siddhi_kafka_source_per_topic_total_valid_events_count
  • siddhi_kafka_source_read_count_per_stream
  • siddhi_ondemandquery_latency
  • siddhi_query_latency
  • siddhi_query_memory
  • siddhi_sink_throughput_total
  • siddhi_sinkmapper_latency
  • siddhi_source_throughput_total
  • siddhi_sourcemapper_latency
  • siddhi_store_rdbms_db_status
  • siddhi_store_rdbms_idle_time
  • siddhi_store_rdbms_last_change_time
  • siddhi_store_rdbms_processing_time
  • siddhi_store_rdbms_total_error_count
  • siddhi_store_rdbms_total_writes
  • siddhi_stream_throughput_total
  • siddhi_table_latency
  • siddhi_table_throughput_total
  • siddhi_total_reads
  • siddhi_total_writes

Changelog

md
# 1.0.0 - February 2024

* Update mixin to replace all Angular panels with React based panels.

# 0.0.3 - September 2023

* New Filter Metrics option for configuring the Grafana Agent, which saves on metrics cost by dropping any metric not used by this integration. Beware that anything custom built using metrics that are not on the snippet will stop working.
* New hostname relabel option, which applies the instance name you write on the text box to the Grafana Agent configuration snippets, making it easier and less error prone to configure this mandatory label.

# 0.0.2 - January 2023

* Add job variable filter to all dashboards.

# 0.0.1 - January 2022

* Initial release

Cost

By connecting your WSO2 Streaming Integrator instance to Grafana Cloud, you might incur charges. To view information on the number of active series that your Grafana Cloud account uses for metrics included in each Cloud tier, see Active series and dpm usage and Cloud tier pricing.