Alfresco Transform Service with Prometheus

cancel
Showing results for 
Search instead for 
Did you mean: 
AOzil
Active Member

Alfresco Transform Service with Prometheus

Jump to solution

Hello,

I am working with Alfresco Transform Service, and I have seen on the documentation that it is possible to monitor the service using prometheus. What is the endpoint that gives the metrics to ATS ? 

I know in ACS we can achieve this by adding the below lines to "alfresco-global.properties",  the metrics can be fetched using the endpoint "/alfresco/s/prometheus". Is there anyway to fetch only the stats (CPU usage, RAM usage) from ATS ?

metrics.enabled=true

metrics.dbMetricsReporter.enabled=true
metrics.dbMetricsReporter.query.enabled=true
metrics.dbMetricsReporter.query.statements.enabled=true
metrics.jvmMetricsReporter.enabled=true
metrics.restMetricsReporter.enabled=true
metrics.restMetricsReporter.path.enabled=true

1 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Alfresco Transform Service with Prometheus

Jump to solution

I have created a sample project in:

https://github.com/aborroy/alfresco-transform-service-prometheus

Hyland Developer Evangelist

View solution in original post

2 Replies
angelborroy
Alfresco Employee

Re: Alfresco Transform Service with Prometheus

Jump to solution

ATS uses default Spring Boot Actuator feature.

The simplest way to get Prometheus configured is using default endpoint in prometheus.yml configuration.

scrape_configs:
  - job_name: 'router'
    scrape_interval: 5s
    metrics_path: /actuator/prometheus
    static_configs:
    - targets: ['router:8095']
Hyland Developer Evangelist
angelborroy
Alfresco Employee

Re: Alfresco Transform Service with Prometheus

Jump to solution

I have created a sample project in:

https://github.com/aborroy/alfresco-transform-service-prometheus

Hyland Developer Evangelist