March 2020
Intermediate to advanced
626 pages
14h 45m
English
Prometheus, which runs as part of Linkerd's control plane, retains data for approximately 6 hours. If further data retention is required, the metrics can be exported to a data store such as the Elasticsearch, Logstash, and Kibana (ELK) stack or to a dedicated Prometheus instance.
The Prometheus federation API or ServiceMonitors can be used to copy data using the /federate path from Linkerd Prometheus to the dedicated Prometheus store.
Alternatively, you can call the federation API directly, and then it can be ingested by a Kafka stream, which can then dump it to an ELK stack, like so:
$ curl -G \ --data-urlencode 'match[]={job="linkerd-proxy"}' \ --data-urlencode 'match[]={job="linkerd-controller"}' \ http://linkerd-prometheus.linkerd.svc.cluster.local:9090/federate ...Read now
Unlock full access