Team,
Company has some OTel services. We would like to put certain OTel endpoints into maintenance mode. Has anybody done this before? If so, how?
Example:
Service ingest channels: Traces (Ingest)
If I open endpoint in a notebook, here is result,
FETCH spans
| filter `dt.entity.service` == “SERVICE-*****************”
| filter `endpoint.name` == “query.**********”
Thanks,
1 Like
@AdrianaVillela ever done this?
Hi @Kenny_Gillette
Since you’re able to identify which services are produced by which entry point, you can assign them a tag, and then I can create a management zone based on that tag.
Unless I am missing something, can’t add tag to endpoints in services. Even requests in a service that has oneagent.
Not on endpoints, but yes on services.
correct. I don’t want the whole service in maintenance. I want the endpoint.
Then please use tagging on SERVICE_METHOD.
You can retrieve them via the API call entities/{entityId} for the services where SERVICE_METHOD_GROUP is present, and from there you can determine the corresponding SERVICE_METHOD values.
{ "entityId": "SERVICE_METHOD-1", "type": "SERVICE_METHOD", "displayName": "getBonus", "firstSeenTms": 1738679285054, "lastSeenTms": 1767585536630, "properties": { "detectedName": "getBonus"<br>},<br>"tags": [], "icon": { "primaryIconType": "services"<br>},<br>"fromRelationships": { "isServiceMethodOf": [ {<br>"id": "SERVICE_METHOD_GROUP-C", "type": "SERVICE_METHOD_GROUP"<br>}<br>]<br>}<br>}
I’m not sure that this will work. In my experience it’s not possible to tag service_methods and groups.
You also can’t put a single endpoint in a management zone for the same reason as mentioned above. If you really want to exclude a single endpoint, you should / could focus on moving it to a different service via service detection.
You then move the endpoint out of the initial service and tag the newly created service. This enables you to put it in maintenance but of course moves it out of the performance of the initial Otel service.
KR.
Michiel
1 Like
@Kenny_Gillette sorry, never have.
@Kenny_Gillette @michiel_otten
After that, there is no need to place anything into a management zone; it is sufficient to use the applied tag directly in maintenance.
{ “entityId”: “SERVICE_METHOD-4”, “type”: “SERVICE_METHOD”, “displayName”: “get”, “firstSeenTms”: 1756994783618, “lastSeenTms”: 1767860010808, “properties”: { “detectedName”: “getBannedClients”
},
“tags”: [ {
“context”: “CONTEXTLESS”, “key”: “Test”, “stringRepresentation”: “Test”, “source”: “User provided tags”
}
],
“icon”: { “primaryIconType”: “services”
},
“fromRelationships”: { “isServiceMethodOf”: [ {
“id”: “SERVICE_METHOD_GROUP-C”, “type”: “SERVICE_METHOD_GROUP”
}
]
}
}