From bdbd12a886651fb70ce44a482f2116473075fe03 Mon Sep 17 00:00:00 2001 From: ramisettyhp Date: Mon, 20 Apr 2026 12:53:34 +0530 Subject: [PATCH 1/2] JOBS-2089: Add RTFS metrics source in log-analytics-splunk Add RTFS (Real-Time File Store) metrics collection support to the Artifactory fluentd config for Splunk. This enables scraping metrics from the RTFS endpoint at artifactory/service/rtfs/api/v1/metrics and forwarding them to Splunk with the jfrog.rtfs metric prefix. Changes: - Add RTFS source block in fluent.conf.rt with target_platform SPLUNK - Add explicit target_platform to existing Artifactory source block - Update README with RTFS metrics documentation - Update CHANGELOG with new version entry Requires fluent-plugin-jfrog-metrics >= 0.2.16 Parent ticket: JOBS-1897 --- CHANGELOG.md | 5 +++++ README.md | 9 ++++++++- fluent.conf.rt | 18 ++++++++++++++++++ 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a074cda..b4cf3e0 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All changes to the log analytics integration will be documented in this file. +## [1.0.14] - April 2026 + +* Added RTFS (Real-Time File Store) metrics collection support in Artifactory fluentd config (JOBS-1897) +* Requires fluent-plugin-jfrog-metrics >= 0.2.16 + ## [1.0.13] - April 22, 2025 * Upgrade Splunk App to version 1.2.9. Changes are available [here](./CHANGELOG-splunkbase.md) diff --git a/README.md b/README.md index d325a17..1740cfb 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,10 @@ artifactory: Once this configuration is done and the application is restarted, metrics will be available in Open Metrics Format -Metrics are enabled by default in Xray. +:bulb: Metrics are enabled by default in Xray. + +:bulb: **RTFS Metrics**: If your Artifactory deployment includes RTFS (Real-Time File Store), metrics are automatically collected from the `artifactory/service/rtfs/api/v1/metrics` endpoint. No additional configuration is required -- the fluentd config already includes an RTFS metrics source block that runs alongside the standard Artifactory metrics collection. Requires `fluent-plugin-jfrog-metrics` >= 0.2.16. + For Kubernetes-based installations, openMetrics is enabled in the helm install commands listed below ## Fluentd Installation @@ -545,6 +548,10 @@ JFrog Artifactory Dashboard is divided into multiple sections Application, Audit * **Heap Metrics** - This section tracks Heap Memory and Garbage Collection * **Connection Metrics** - This section tracks Database connections and HTTP Connections +#### JFrog RTFS Metrics + +When RTFS is deployed as part of Artifactory, RTFS metrics are collected from `artifactory/service/rtfs/api/v1/metrics` and forwarded to Splunk with the `jfrog.rtfs` metric prefix. These metrics are available alongside standard Artifactory metrics in Splunk for monitoring RTFS-specific performance and health. + ### Xray dashboard JFrog Xray Dashboard is divided into three sections Logs, Violations and Metrics diff --git a/fluent.conf.rt b/fluent.conf.rt index 1aebd9f..3895975 100644 --- a/fluent.conf.rt +++ b/fluent.conf.rt @@ -9,6 +9,24 @@ username "#{ENV['JPD_ADMIN_USERNAME']}" token "#{ENV['JFROG_ADMIN_TOKEN']}" common_jpd "#{ENV['COMMON_JPD']}" + target_platform "SPLUNK" + # @log_level debug + # request_timeout 30s + # verify_ssl "#{ENV['SPLUNK_VERIFY_SSL']}" + +# JFROG RTFS METRICS SOURCE +# Requires fluent-plugin-jfrog-metrics >= 0.2.16 and RTFS enabled in the Artifactory deployment + + @type jfrog_metrics + @id metrics_http_rtfs + tag jfrog.metrics.rtfs + execution_interval 60s + metric_prefix 'jfrog.rtfs' + jpd_url "#{ENV['JPD_URL']}" + username "#{ENV['JPD_ADMIN_USERNAME']}" + token "#{ENV['JFROG_ADMIN_TOKEN']}" + common_jpd "#{ENV['COMMON_JPD']}" + target_platform "SPLUNK" # @log_level debug # request_timeout 30s # verify_ssl "#{ENV['SPLUNK_VERIFY_SSL']}" From b7975c1c435cc79c04e099a53a34a72c13438b4e Mon Sep 17 00:00:00 2001 From: ramisettyhp Date: Tue, 21 Apr 2026 17:06:29 +0530 Subject: [PATCH 2/2] Fix RTFS description: Artifactory Federation Service, not Real-Time File Store Also updated metrics endpoint URL from artifactory/service/rtfs/api/v1/metrics to rtfs/api/v1/metrics to match the actual working endpoint. --- CHANGELOG.md | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4cf3e0..59e49e7 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All changes to the log analytics integration will be documented in this file. ## [1.0.14] - April 2026 -* Added RTFS (Real-Time File Store) metrics collection support in Artifactory fluentd config (JOBS-1897) +* Added RTFS (JFrog Artifactory Federation Service) metrics collection support in Artifactory fluentd config (JOBS-1897) * Requires fluent-plugin-jfrog-metrics >= 0.2.16 ## [1.0.13] - April 22, 2025 diff --git a/README.md b/README.md index 1740cfb..2b7ab89 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ Once this configuration is done and the application is restarted, metrics will b :bulb: Metrics are enabled by default in Xray. -:bulb: **RTFS Metrics**: If your Artifactory deployment includes RTFS (Real-Time File Store), metrics are automatically collected from the `artifactory/service/rtfs/api/v1/metrics` endpoint. No additional configuration is required -- the fluentd config already includes an RTFS metrics source block that runs alongside the standard Artifactory metrics collection. Requires `fluent-plugin-jfrog-metrics` >= 0.2.16. +:bulb: **RTFS Metrics**: If your Artifactory deployment includes RTFS (JFrog Artifactory Federation Service), metrics are automatically collected from the `rtfs/api/v1/metrics` endpoint. No additional configuration is required -- the fluentd config already includes an RTFS metrics source block that runs alongside the standard Artifactory metrics collection. Requires `fluent-plugin-jfrog-metrics` >= 0.2.16. For Kubernetes-based installations, openMetrics is enabled in the helm install commands listed below @@ -550,7 +550,7 @@ JFrog Artifactory Dashboard is divided into multiple sections Application, Audit #### JFrog RTFS Metrics -When RTFS is deployed as part of Artifactory, RTFS metrics are collected from `artifactory/service/rtfs/api/v1/metrics` and forwarded to Splunk with the `jfrog.rtfs` metric prefix. These metrics are available alongside standard Artifactory metrics in Splunk for monitoring RTFS-specific performance and health. +When RTFS is deployed as part of Artifactory, RTFS metrics are collected from `rtfs/api/v1/metrics` and forwarded to Splunk with the `jfrog.rtfs` metric prefix. These metrics are available alongside standard Artifactory metrics in Splunk for monitoring RTFS-specific performance and health. ### Xray dashboard