Skip to content

Commit

Permalink
add comment explaining metrics service annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ploxiln committed Oct 31, 2024
1 parent 68fe53a commit a8f90d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/nsq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ metrics:

service:
annotations:
# Prometheus does not connect to this service directly,
# instead it uses this port to connect to each target
# of the service (each nsqd).
# TODO: remove service and annotate pods instead?
prometheus.io/scrape: "true"
prometheus.io/port: "{{ .Values.metrics.containerPort }}"
prometheus.io/path: "/metrics"
Expand Down

0 comments on commit a8f90d2

Please sign in to comment.