Types of Metrics
Prometheus supports 4 types of metrics:
...
Code Block |
---|
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-azure-sink
labels:
app: kafka-azure-sink
spec:
replicas: 1
selector:
matchLabels:
app: kafka-azure-sink
template:
metadata:
labels:
app: kafka-azure-sink
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/metrics"
spec:
containers:
... |
Important Metrics
Name | Description |
---|
go_memstats_sys_bytes | Total Used Memory |
go_memstats_heap_sys_bytes | Memory In Heap |
go_memstats_mcache_sys_bytes | Meomory In Off Heap |
go_memstats_stack_inuse_bytes | Memory In Stack |
go_goroutines | Go Routines |
Adding Scraping Config to Prometheus
Values.yaml
Code Block |
---|
grafana:
defaultDashboardsTimezone: America/Toronto
adminPassword: admin
prometheus-node-exporter:
hostRootFsMount:
enabled: false
prometheus:
prometheusSpec:
additionalScrapeConfigs:
- job_name: kafka-azure-sink
static_configs:
- targets: ['kafka-azure-sink:8080']
- job_name: kafka-stream-operator
static_configs:
- targets: ['kafka-stream-operator:8080']
|
References