...
Here are a few examples of how to retrieve metrics directly in Prometheus.
Example: Nodes
...
cpuLoadPercentage{name="Docker GW 1"}
memoryLoadPercentage{hostPort="host.docker.internal:8444"}
cpuLoadPercentage
...
Example: APIs
...
allRequestsCount{name="APIIDA Metrics API"}
allRequestsCount{job="Docker GW 1 APIIDA Metrics API"}
allRequestsCount{nodeID="2"}
...
...
Jobs, Labels and Metric Names
All possible filters can also be viewed there here or directly on the PushGateway.
...
Jobs
https://prometheus.io/docs/concepts/jobs_instances/
The name of the job consists of the name of the gateway and the name of the API.
Labels
id
Id of the API or Node
name
Name of the API or Node
nodeId
Id of the node on which the API is running
type
Type of job, either “api” or “node”. Influences which metrics are available.
Metric Names
https://prometheus.io/docs/practices/naming/#metric-names
All Metric Names for APIs
allRequestsCount
averageBackendResponseTimeMillis
averageFrontendResponseTimeMillis
maxBackendResponseTimeMillis
maxFrontendResponseTimeMillis
minBackendResponseTimeMillis
minFrontendResponseTimeMillis
policyViolationCount
routingFailureCount
successfulRequestsCount
All Metric Names for Nodes
cpuLoadPercentage
memoryLoadPercentage
diskSpacePercentage
totalDiskSpaceMB
freeDiskSpaceMB
sqlDelay
Useful
Grafan user: admin pass: admin
...