# Some of the microservice deployed in the tenant are not supporting the end point service/xyz/prometheus

**URL:** <https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501>\
**Category:** Forum\
**Tags:** microservices, cumulocity\
**Created:** [September 15, 2023, 12:31pm UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501 "2023-09-15T12:31:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkpatil1010](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jkpatil1010](https://community.cumulocity.com/u/jkpatil1010)\
**Post date:** [September 15, 2023, 12:31pm UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501/1 "2023-09-15T12:31:44Z")

</div>

Hi I have created the prometheus jobs for the microservices in the instance and using metric path as instance/service/xyz/prometheus.

But it is observed that some of the microservices which are active in the tenant are giving error 404 , when the endpoint service/xyz/prometheus is called.  
And some are giving metrics fine.

What might the issue with this.  
And how can it be resolved.

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [September 15, 2023, 1:29pm UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501/2 "2023-09-15T13:29:43Z")

</div>

Hi @jkpatil1010 ,

this depends on a few things. The prometheus endpoint is only exposed for custom microservice developed using the Microservice SDK Java which uses Spring Boot & Spring Actuator.

So for any non-custom microservices or non-java microservices this endpoint must be enabled by the microservice owner/developer manually or using a prometheus client/lib.

Here is an article where I described that in detail and gave an example for python microservices & one using the SDK.

> [@Advanced Cumulocity IoT Microservice Monitoring - Part 1](https://community.cumulocity.com/t/advanced-cumulocity-iot-microservice-monitoring-part-1/7825#microservice-preparation-6):
>
> Overview In the [other article about basic Microservice Monitoring](https://community.cumulocity.com/t/basic-cumulocity-iot-microservice-monitoring/7640) we demonstrated an easy and low effort way to monitor microservices within a cumulocity tenant. While this is sufficient for small and limited use cases in more advanced use cases, where you have multiple microservices deployed in different tenants, you need a more advanced monitoring solution. In this series of articles of Advanced Cumulocity IoT Microservice Monitoring I will guide you to … [Prepare your microservices for mo…](https://community.cumulocity.com/t/advanced-cumulocity-iot-microservice-monitoring-part-1/7825)

---

<div class="post-metadata">

**Author:** ![jkpatil1010](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jkpatil1010](https://community.cumulocity.com/u/jkpatil1010)\
**Post date:** [September 15, 2023, 2:19pm UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501/3 "2023-09-15T14:19:49Z")

</div>

Hi @Stefan_Witschel

But, We are receiving the Prometheus endpoint response for out-of-the-box microservices like APAMA, but not for DataHub, which is not customized, and the owner is SAG. So, the question is, why are Prometheus metrics added for some out-of-the-box microservices but not for microservices like DataHub? We don’t have access to the DataHub code to add Prometheus endpoint by ourselves, and we would like to monitor DataHub via Prometheus. What can be done to get the endpoint working for DataHub?

---

<div class="post-metadata">

**Author:** ![Stefan\_Witschel](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/stefan_witschel/32/31955_2.png) [@Stefan\_Witschel](https://community.cumulocity.com/u/Stefan_Witschel)\
**Post date:** [September 18, 2023, 8:06am UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501/4 "2023-09-18T08:06:02Z")

</div>

Hi @Jaya

I’m wondering that Apama prometheus endpoint is enabled. Are you in a public cloud environment or dedicated/own instance?  
I don’t think you can monitor datahub via Prometheus, only on Kubernetes level when having a private/dedicated instance. In our public cloud environment the SAG microservices are monitored by SAG operations so no individual monitoring is required…that’s the reason the prometheus endpoints are not available (except for apama it seems).

Regards  
Stefan

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [March 16, 2024, 8:06am UTC](https://community.cumulocity.com/t/some-of-the-microservice-deployed-in-the-tenant-are-not-supporting-the-end-point-service-xyz-prometheus/7501/5 "2024-03-16T08:06:46Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
