[ https://issues.apache.org/jira/browse/SLING-7055?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130469#comment-16130469 ]
Robert Munteanu edited comment on SLING-7055 at 8/17/17 2:23 PM: ----------------------------------------------------------------- > I'd love to remove that dependency, but at the same time I don't want to rely > on the directory where the Java process was started. Is there a Sling > property I could use as the base directory when Sling is present? You could either: * lookup the OSGi framework property named 'sling.home' using {{BundleContext#getProperty}}, or * rely only on the configured value, and when configured using the provisioning model the path property can be set to {{$\{sling.home\}/metrics/metrics.rrd}} was (Author: rombert): > I'd love to remove that dependency, but at the same time I don't want to rely > on the directory where the Java process was started. Is there a Sling > property I could use as the base directory when Sling is present? You could either: * lookup the OSGi framework property named 'sling.home' using {{BundleContext#getProperty}}, or * rely only on the configured value, and when configured using the provisioning model the path property can be set to {{${sling.home}/metrics/metrics.rrd}} > RRD4J metrics reporter > ---------------------- > > Key: SLING-7055 > URL: https://issues.apache.org/jira/browse/SLING-7055 > Project: Sling > Issue Type: New Feature > Components: Extensions > Reporter: Marcel Reutegger > Assignee: Robert Munteanu > Priority: Minor > Attachments: SLING-7055.patch > > > SLING-4080 introduced metrics in Sling. The proposal in this issue adds a new > commons module which writes those metrics to a time series database on the > local filesystem. The primary purpose is tracking metrics for diagnostics. > The bundle uses [RRD4J|https://github.com/rrd4j/rrd4j] as the time series > database implementation. The library is Apache License, Version 2.0. -- This message was sent by Atlassian JIRA (v6.4.14#64029)