March 2020
Intermediate to advanced
626 pages
14h 45m
English
To export data from Prometheus to another full-fledged metrics backend, you can either pull data directly from Linkerd proxies or federate data to a dedicated Prometheus cluster. You can also use Prometheus APIs to extract data from the local Prometheus store to your dedicated Prometheus data store. Let's get started:
$ curl -G --data-urlencode 'match[]={job="linkerd-proxy"}' --data-urlencode 'match[]={job="linkerd-controller"}' http://prometheus.linkerd.local/federateresponse_latency_ms_bucket{authority="webapp.linkerd-lab.svc.cluster.local:7000",control_plane_ns="linkerd",deployment="traffic",direction="outbound",dst_control_plane_ns="linkerd",dst_deployment="webapp",dst_namespace="linkerd-lab",dst_pod="webapp-64668f866c-qhnmz",dst_pod_template_hash="64668f866c",dst_service="webapp",dst_serviceaccount="default",instance="10.1.230.199:4191",job="linkerd-proxy",le="20",namespace="linkerd-lab",pod="traffic-f5b9987bd-9jjrk",server_id="default.linkerd-lab.serviceaccount.identity.linkerd.cluster.local",status_code="500",tls="true"} ...Read now
Unlock full access