Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add interval to prometheus service monitor
We have a use-case where we need to modify the default scrape interval on a number of apps, including coredns. This PR simply adds support to change it. (It should be backwards compatible with existing implmentations.) Test/verification: ``` $ helm template charts/coredns --set prometheus.monitor.enabled=true --set prometheus.monitor.interval=60s |grep servicemonitor.yaml -A 22 apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: RELEASE-NAME-coredns labels: app.kubernetes.io/managed-by: "Helm" app.kubernetes.io/instance: "RELEASE-NAME" helm.sh/chart: "coredns-1.16.5" k8s-app: "coredns" kubernetes.io/cluster-service: "true" kubernetes.io/name: "CoreDNS" app.kubernetes.io/name: coredns spec: selector: matchLabels: app.kubernetes.io/instance: "RELEASE-NAME" k8s-app: "coredns" app.kubernetes.io/name: coredns app.kubernetes.io/component: metrics endpoints: - port: metrics interval: 60s ``` Signed-off-by: Craig Sebenik <csebenik@aurora.tech>
- Loading branch information