Skip to content

Commit

Permalink
Add prometheus annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
joyrex2001 committed May 24, 2019
1 parent 05a6948 commit f12713a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ scanner:
- "development-2"
- "development-3"
default:
id: default-dev ## optional id, if set, the replica metric is available
id: "default-dev" ## optional id, if set, replica metric is available
schedule:
- "Mon-Fri 8:00 replicas=1 state=restore"
- "Mon-Fri 18:00 replicas=0 state=save"
deployment:
- id: shell-dev ## optional id, if set, the replica metric is available
- id: "shell-dev" ## optional id, if set, replica metric is available
selector:
- "app=shell"
- "app=nightshift"
Expand Down
4 changes: 4 additions & 0 deletions examples/openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ objects:
type: "Recreate"
template:
metadata:
annotations:
prometheus.io/path: "/metrics"
prometheus.io/port: "8080"
prometheus.io/scrape: "true"
labels:
name: "${NAME}"
name: "${NAME}"
Expand Down

0 comments on commit f12713a

Please sign in to comment.