cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Transform Service with Prometheus

AOzil
Champ in-the-making
Champ in-the-making

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 ACCEPTED ANSWER

I have created a sample project in:

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

Hyland Developer Evangelist

View answer in original post

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

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

I have created a sample project in:

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

Hyland Developer Evangelist