Those buckets/counts/sum are created due to default reporting type being “histogram”. You could change it by providing custom PrometheusConfig when you create a new registry. The way sample uses it now:
PrometheusMeterRegistry registry = new PrometheusMeterRegistry(PrometheusConfig.DEFAULT);
it gets the default HistogramFlavor.Prometheus
. See for example here for a little more info on histogram.
I believe since you deploy your applications yourself, you need to make sure that the metrics they expose are on endpoints that prometheus can scrape. In your prometheus config then you need to set up all these scrape points,
for server metrics, but also for all endpoints for metrics that your applications expose (workers, starters etc) . For example in your prometheus config:
global:
scrape_interval: 5s
external_labels:
monitor: 'temporal-monitor'
scrape_configs:
- job_name: 'prometheus'
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- 'temporal:8000'
- 'worker:8001'
- 'starter:8002'