Skip to content

Commit

Permalink
Added prometheus service annotation
Browse files Browse the repository at this point in the history
Signed-off-by: iamabhishek-dubey <[email protected]>
  • Loading branch information
iamabhishek-dubey committed Oct 10, 2022
1 parent ae19667 commit b142308
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions k8sutils/labels.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ func generateServiceAnots(stsMeta metav1.ObjectMeta) map[string]string {
anots := map[string]string{
"redis.opstreelabs.in": "true",
"redis.opstreelabs.instance": stsMeta.GetName(),
"prometheus.io/scrape": "true",
"prometheus.io/port": "9121",
}
for k, v := range stsMeta.GetAnnotations() {
anots[k] = v
Expand Down

0 comments on commit b142308

Please sign in to comment.