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

Dynatrace Managed API : Get requests for process ?

peverard
Newcomer

Hi,

Is it possible to get requests for process with the API ?

For example :

Thanks.


9 REPLIES 9

Clould you include your example?


peverard
Newcomer

Hi,

Here the example.


Do you need number of requests or particular requests information?


peverard
Newcomer

Hi,

I need number of requests per process (not only Web server, also Jboss or Tomcat ...).

Pierrick.


You can use Timeseries API:

https://www.dynatrace.com/support/help/dynatrace-...

You have a few interesting parameters there:

  • timeseriesIdentifier
  • Count
  • etc

In theory, it should work. You must try it.

Radek


peverard
Newcomer

Thanks Radek,

I already used the API but it seem's that I can't get requests for PGI. I just need confirmation :

/opt/Tenedis/jobs/getManagedMetrics.py -H 'dynatrace.april.interne.fr' -T 'apiToken' -o 'tenant' -v metrics | grep -i pgi | sort | cut -d ';' -f 1,2
com.dynatrace.builtin:pgi.availability;Availability
com.dynatrace.builtin:pgi.availability.percent;Availability percentage
com.dynatrace.builtin:pgi.cpu.usage;Process CPU Usage
com.dynatrace.builtin:pgi.docker.container.perprocess;Docker: Number of Containers per Process
com.dynatrace.builtin:pgi.go.allocated_heap_objects_count;Heap allocated Go objects count
com.dynatrace.builtin:pgi.go.cf_auctioneer_fetch_states_duration;Auctioneer: Time to fetch cell states
com.dynatrace.builtin:pgi.go.cf_auctioneer_lrp_auctions_failed;Auctioneer: App instance placement failures
com.dynatrace.builtin:pgi.go.cf_auctioneer_lrp_auctions_started;Auctioneer: App instance starts
com.dynatrace.builtin:pgi.go.cf_auctioneer_task_auctions_failed;Auctioneer: Task placement failures
com.dynatrace.builtin:pgi.go.cgo_call_count;Go to C language (cgo) call count
com.dynatrace.builtin:pgi.go.gc_collection_count;Garbage collector invocation count
com.dynatrace.builtin:pgi.go.global_runqueue_size;Global Goroutine run queue size
com.dynatrace.builtin:pgi.go.heap_idle_size;Heap idle size
com.dynatrace.builtin:pgi.go.heap_live_size;Heap live size
com.dynatrace.builtin:pgi.go.http_bad_gateways;Gorouter: 502 response count
com.dynatrace.builtin:pgi.go.http_latency;Gorouter: Response latency
com.dynatrace.builtin:pgi.go.http_responses_5xx;Gorouter: 5xx response count
com.dynatrace.builtin:pgi.go.http_total_requests;Gorouter: Total request count
com.dynatrace.builtin:pgi.go.idle_p_count;Idle scheduling context count
com.dynatrace.builtin:pgi.go.idling_m_count;Parked worker thread count
com.dynatrace.builtin:pgi.go.m_count;Worker thread count
com.dynatrace.builtin:pgi.go.memory_pool_committed;Committed memory
com.dynatrace.builtin:pgi.go.memory_pool_used;Used memory
com.dynatrace.builtin:pgi.go.running_g_count;Application Goroutine count
com.dynatrace.builtin:pgi.go.spinning_m_count;Out of work worker thread count
com.dynatrace.builtin:pgi.go.sys_call_count;Go runtime system call count
com.dynatrace.builtin:pgi.go.system_g_count;System Goroutine count
com.dynatrace.builtin:pgi.jvm.committedmemory;JVM heap memory pool committed bytes
com.dynatrace.builtin:pgi.jvm.garbagecollectioncount;Garbage collection count
com.dynatrace.builtin:pgi.jvm.garbagecollectiontime;Garbage collection time
com.dynatrace.builtin:pgi.jvm.threadcount;JVM thread count
com.dynatrace.builtin:pgi.jvm.usedmemory;JVM heap memory pool used bytes
com.dynatrace.builtin:pgi.mem.usage;Process Memory
com.dynatrace.builtin:pgi.nic.bytesreceived;Bytes Received per Second
com.dynatrace.builtin:pgi.nic.bytessent;Bytes Sent per Second
com.dynatrace.builtin:pgi.responsiveness;Server Responsiveness
com.dynatrace.builtin:pgi.suspension;Garbage collection suspension time
com.dynatrace.builtin:pgi.workerprocesses;Process Process Count


You can use this metric:

com.dynatrace.builtin:app.custom.webrequestcount

Radek


Thanks but it's a custom metric .... I never got a value with it.


If I understand API properly, to get value from custom metric, you have to set up it first.