Similar to the example linked in the epic, within the BigBang monitoring passthrough values add the values below so they get conditionally added to the monitoring package, conditional on a "hidden" value which will dig for a false setting.
additionalScrapeConfig added in BB monitoring values
Logic to handle customer provided additionalScrapeConfigs overrides
0 of 2 checklist items completed
· Edited
Designs
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related or that one is blocking others.
Learn more.
monitoring:values:prometheus:prometheusSpec:additionalScrapeConfigs:# Scrape config for service endpoints.## The relabeling allows the actual service scrape endpoint to be configured# via the following annotations:## * `prometheus.io/scrape`: Only scrape services that have a value of `true`# * `prometheus.io/scheme`: If the metrics endpoint is secured then you will need# to set this to `https` & most likely set the `tls_config` of the scrape config.# * `prometheus.io/path`: If the metrics path is not `/metrics` override this.# * `prometheus.io/port`: If the metrics are exposed on a different port to the# service then set this appropriately.-job_name:'kubernetes-service-endpoints'kubernetes_sd_configs:-role:endpointsrelabel_configs:-source_labels:[__meta_kubernetes_service_label_prometheus_io_scrape]action:keepregex:true-source_labels:[__meta_kubernetes_service_label_prometheus_io_scheme]action:replacetarget_label:__scheme__regex:(https?)-source_labels:[__meta_kubernetes_service_label_prometheus_io_path]action:replacetarget_label:__metrics_path__regex:(.+)-source_labels:[__address__,__meta_kubernetes_service_label_prometheus_io_port]action:replacetarget_label:__address__regex:([^:]+)(?::\d+)?;(\d+)replacement:$1:$2-action:labelmapregex:__meta_kubernetes_service_label_(.+)-source_labels:[__meta_kubernetes_namespace]action:replacetarget_label:kubernetes_namespace-source_labels:[__meta_kubernetes_service_name]action:replacetarget_label:kubernetes_name-source_labels:[__meta_kubernetes_service_name]action:dropregex:'(.+)node-exporter'-source_labels:[__meta_kubernetes_service_name]action:dropregex:'(.+)dns'-source_labels:[__meta_kubernetes_service_name]action:dropregex:'(.+)kube-state-metrics'# Example scrape config for pods## The relabeling allows the actual pod scrape endpoint to be configured via the# following annotations:## * `prometheus.io/scrape`: Only scrape pods that have a value of `true`# * `prometheus.io/path`: If the metrics path is not `/metrics` override this.# * `prometheus.io/port`: Scrape the pod on the indicated port instead of the default of `9102`.-job_name:'kubernetes-pods'kubernetes_sd_configs:-role:podrelabel_configs:-source_labels:[__meta_kubernetes_pod_annotation_prometheus_io_scrape]action:keepregex:true-source_labels:[__meta_kubernetes_pod_annotation_prometheus_io_path]action:replacetarget_label:__metrics_path__regex:(.+)-source_labels:[__address__,__meta_kubernetes_pod_annotation_prometheus_io_port]action:replaceregex:([^:]+)(?::\d+)?;(\d+)replacement:$1:$2target_label:__address__-action:labelmapregex:__meta_kubernetes_pod_label_(.+)-source_labels:[__meta_kubernetes_namespace]action:replacetarget_label:kubernetes_namespace-source_labels:[__meta_kubernetes_pod_name]action:replacetarget_label:kubernetes_pod_name
@ryan.j.garcia this issue has been inactive for 30 days and is being labelled as stale. If this issue is still required please take action by removing the stale label and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 60 days.
@ryan.j.garcia this issue has been inactive for 60 days and is being labelled as marked-for-auto-close. If this issue is still required please take action by removing the stale and marked-for-auto-close labels and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 30 days.
@ryan.j.garcia this issue has been inactive for 30 days and is being labelled as stale. If this issue is still required please take action by removing the stale label and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 60 days.
@ryan.j.garcia this issue has been inactive for 60 days and is being labelled as marked-for-auto-close. If this issue is still required please take action by removing the stale and marked-for-auto-close labels and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 30 days.
@ryan.j.garcia this issue has been inactive for 30 days and is being labelled as stale. If this issue is still required please take action by removing the stale label and commenting with an update, status, or justification. If this issue is not required please close it or label it as delete-me. If no action is taken this issue will be auto closed in 60 days.