cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

We would like to shorten Dynatrace REST API

ntanaka
Guide

Hi,

Our customer use Dynatrace Metric API to send metric to ServiceNow.
However, on ServiceNow, REST endpoint record is limited less than 200 characters long.
We are sometimes in trouble because REST endpoint is truncated like this.

 

e.g.) The following API is 204 characters long, so 4 characters are truncated.

https://xx.xx.x.xx/e/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/api/v2/metrics/query?metricSelector=builti...)


 

Do you have any idea to shorten REST endpoint?
We wish we could shorten environment id...

 

Best Regards
Natsumi Tanaka

2 REPLIES 2

skrystosik
DynaMight Guru
DynaMight Guru

It's not possible to shorten it. Only Idea I have is to create nginx/apache between SN and DT and there you can try use it as kind of proxy that may translate larger uris into shorter ones?

https://opensource.com/article/18/7/apache-url-shortener -> example

Sebastian

Regards, Sebastian

Hi, Sebastian, Thank you for your comment. Nice idea! I will ask our customer to use it!

Featured Posts