Skip to content

Commit

Permalink
Merge pull request #348 from iamabhishek-dubey/prometheus-annots
Browse files Browse the repository at this point in the history
[BugFix]Added prometheus service annotation
  • Loading branch information
sandy724 authored Oct 10, 2022
2 parents ae19667 + b142308 commit 8de4f15
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 8de4f15

Please sign in to comment.