Slackbot
07/04/2023, 12:11 PMLuiz Augusto
07/04/2023, 1:32 PMhttp -> it can periodically send this JSON payload into an endpoint you want
• kafka -> it sends the metrics payload into a Kafka topic
• prometheus -> exposes metrics into a local endpoint so a Prometheus scrapper can fetch them
• there are others, like statsd , `influxdb`…
They are all useful depending on what your infrastructure supports. If your k8s cluster has Prometheus running, it’s prob the best for you, so choose prometheus and you prob just need to add some annotations in your deployment like:
spec:
template:
metadata:
annotations:
<http://prometheus.io/scrape|prometheus.io/scrape>: "true"
<http://prometheus.io/path|prometheus.io/path>: /metrics
<http://prometheus.io/port|prometheus.io/port>: "9102"
You prob have other deployments into your repo with a template you can useRatheesh Kumar
07/06/2023, 5:26 AMLuiz Augusto
07/06/2023, 9:06 AMRatheesh Kumar
07/06/2023, 4:29 PMRatheesh Kumar
07/09/2023, 11:07 AM