Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Types of Metrics

Prometheus supports 4 types of metrics:

...

NameDescription
go_memstats_sys_bytesTotal Used Memory
go_memstats_heap_sys_bytesMemory In Heap
go_memstats_mcache_sys_bytesMeomory In Off Heap
go_memstats_stack_inuse_bytesMemory In Stack
go_goroutinesGo 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

ReferenceURL
INSTRUMENTING A GO APPLICATION FOR PROMETHEUShttps://prometheus.io/docs/guides/go-application/

...