We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In order to make kube-notary discovered by the prometheus operator:
labels: k8s-app: kube-notary
apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: name: kube-notary spec: endpoints: - interval: 15s port: metrics-port selector: matchLabels: k8s-app: kube-notary
TODOs:
The text was updated successfully, but these errors were encountered:
I solved that differently by adding an additional Scrape Config to Prometheus operator.
create config file
- job_name: 'kubernetes-pods' kubernetes_sd_configs: - role: pod relabel_configs: - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape] action: keep regex: true - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path] action: replace target_label: __metrics_path__ regex: (.+) - source_labels: [__address__, __meta_kubernetes_pod_annotation_prometheus_io_port] action: replace regex: ([^:]+)(?::\d+)?;(\d+) replacement: $1:$2 target_label: __address__ - action: labelmap regex: __meta_kubernetes_pod_label_(.+) - source_labels: [__meta_kubernetes_namespace] action: replace target_label: kubernetes_namespace - source_labels: [__meta_kubernetes_pod_name] action: replace target_label: kubernetes_pod_name
create a secret
kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run -oyaml > additional-scrape-configs.yaml
apply the config to the namespace prometheus operator is running
kubectl apply -f additional-scrape-configs.yaml --namespace=monitoring
edit the runtime
kubectl edit Prometheus kube-prometheus --namespace=monitoring
under spec
spec: additionalScrapeConfigs: key: prometheus-additional.yaml name: additional-scrape-configs
Sorry, something went wrong.
leogr
No branches or pull requests
In order to make kube-notary discovered by the prometheus operator:
TODOs:
The text was updated successfully, but these errors were encountered: