github.com/verrazzano/verrazzano@v1.7.0/platform-operator/helm_config/overrides/prometheus-operator-values.yaml (about)

     1  # Copyright (c) 2022, 2023, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  grafana:
     5    enabled: false
     6    forceDeployDashboards: true
     7    namespaceOverride: verrazzano-system
     8    sidecar:
     9      dashboards:
    10        label: grafana_dashboard
    11        labelValue: "1"
    12        annotations:
    13          k8s-sidecar-target-directory: "Verrazzano Monitoring"
    14  nodeExporter:
    15    enabled: true
    16  kubeStateMetrics:
    17    enabled: false
    18  prometheus:
    19    prometheusSpec:
    20      securityContext:
    21        fsGroup: 65534
    22        runAsGroup: 65534
    23        runAsNonRoot: true
    24        runAsUser: 65534
    25        seccompProfile:
    26          type: RuntimeDefault
    27      additionalScrapeConfigsSecret:
    28        enabled: true
    29        name: additional-scrape-configs
    30        key: jobs
    31      serviceMonitorSelector:
    32        matchExpressions:
    33        - key: release
    34          operator: In
    35          values:
    36          - prometheus-operator
    37          - prometheus-node-exporter
    38          - kube-state-metrics
    39          - prometheus-pushgateway
    40      scrapeInterval: 20s
    41      containers:
    42        - name: prometheus
    43          securityContext:
    44            privileged: false
    45        - name: config-reloader
    46          securityContext:
    47            privileged: false
    48      initContainers:
    49        - name: init-config-reloader
    50          securityContext:
    51            privileged: false
    52    serviceMonitor:
    53      relabelings:
    54        - action: replace
    55          targetLabel: verrazzano_cluster
    56          replacement: local
    57    thanosService:
    58      enabled: true
    59    thanosServiceMonitor:
    60      enabled: true
    61  
    62  alertmanager:
    63    enabled: false
    64    alertmanagerSpec:
    65      securityContext:
    66        fsGroup: 65534
    67        runAsGroup: 65534
    68        runAsNonRoot: true
    69        runAsUser: 65534
    70        seccompProfile:
    71          type: RuntimeDefault
    72      containers:
    73        - name: alertmanager
    74          securityContext:
    75            privileged: false
    76        - name: config-reloader
    77          securityContext:
    78            privileged: false
    79      version: 0.25.0
    80      podMetadata:
    81        annotations:
    82          sidecar.istio.io/inject: "false"
    83  prometheusOperator:
    84    labels:
    85      sidecar.istio.io/inject: 'false'
    86    admissionWebhooks:
    87      enabled: true
    88      patch:
    89        enabled: true
    90    tls:
    91      enabled: true
    92    serviceMonitor:
    93      relabelings:
    94        - action: replace
    95          targetLabel: verrazzano_cluster
    96          replacement: local
    97    securityContext:
    98      seccompProfile:
    99        type: RuntimeDefault
   100    containerSecurityContext:
   101      privileged: false
   102      capabilities:
   103        drop:
   104          - ALL
   105  
   106  kubelet:
   107    serviceMonitor:
   108      relabelings:
   109        - action: replace
   110          targetLabel: verrazzano_cluster
   111          replacement: local
   112      cAdvisorRelabelings:
   113        - sourceLabels: [__metrics_path__]
   114          targetLabel: metrics_path
   115        - action: replace
   116          targetLabel: verrazzano_cluster
   117          replacement: local
   118      cAdvisorMetricRelabelings:
   119        # Drop less useful container CPU metrics.
   120        - sourceLabels: [__name__]
   121          action: drop
   122          regex: 'container_cpu_(cfs_throttled_seconds_total|load_average_10s|system_seconds_total|user_seconds_total)'
   123        # Drop less useful container / always zero filesystem metrics.
   124        - sourceLabels: [__name__]
   125          action: drop
   126          regex: 'container_fs_(io_current|io_time_seconds_total|io_time_weighted_seconds_total|reads_merged_total|sector_reads_total|sector_writes_total|writes_merged_total)'
   127        # Drop less useful / always zero container memory metrics.
   128        - sourceLabels: [__name__]
   129          action: drop
   130          regex: 'container_memory_(mapped_file|swap)'
   131        # Drop less useful container process metrics.
   132        - sourceLabels: [__name__]
   133          action: drop
   134          regex: 'container_(file_descriptors|tasks_state|threads_max)'
   135        # Drop container spec metrics that overlap with kube-state-metrics.
   136        - sourceLabels: [__name__]
   137          action: drop
   138          regex: 'container_spec.*'
   139        # Drop cgroup metrics with no pod.
   140        - sourceLabels: [id, pod]
   141          action: drop
   142          regex: '.+;'
   143        # Add verrazzano_component label
   144        - action: replace
   145          regex: (verrazzano-monitoring);(alertManager);(alertmanager-[a-z0-9-]+)(.*)
   146          replacement: $2
   147          separator: ;alertManager;
   148          sourceLabels:
   149          - namespace
   150          - pod
   151          targetLabel: verrazzano_component
   152        - action: replace
   153          regex: (verrazzano-system);(applicationOperator);(verrazzano-application-operator-[a-z0-9-]+)(.*)
   154          replacement: $2
   155          separator: ;applicationOperator;
   156          sourceLabels:
   157          - namespace
   158          - pod
   159          targetLabel: verrazzano_component
   160        - action: replace
   161          regex: (argocd);(argoCd);(argocd-[a-z0-9-]+)(.*)
   162          replacement: $2
   163          separator: ;argoCd;
   164          sourceLabels:
   165          - namespace
   166          - pod
   167          targetLabel: verrazzano_component
   168        - action: replace
   169          regex: (verrazzano-system);(authProxy);(verrazzano-authproxy-[a-z0-9-]+)(.*)
   170          replacement: $2
   171          separator: ;authProxy;
   172          sourceLabels:
   173          - namespace
   174          - pod
   175          targetLabel: verrazzano_component
   176        - action: replace
   177          regex: (cert-manager);(certManager);(cert-manager-[a-z0-9-]+)(.*)
   178          replacement: $2
   179          separator: ;certManager;
   180          sourceLabels:
   181          - namespace
   182          - pod
   183          targetLabel: verrazzano_component
   184        - action: replace
   185          regex: (verrazzano-system);(clusterOperator);(verrazzano-cluster-operator-[a-z0-9-]+)(.*)
   186          replacement: $2
   187          separator: ;clusterOperator;
   188          sourceLabels:
   189          - namespace
   190          - pod
   191          targetLabel: verrazzano_component
   192        - action: replace
   193          regex: (verrazzano-capi);(clusterAPI);(capi-[a-z0-9-]+)(.*)
   194          replacement: $2
   195          separator: ;clusterAPI;
   196          sourceLabels:
   197          - namespace
   198          - pod
   199          targetLabel: verrazzano_component
   200        - action: replace
   201          regex: (verrazzano-system);(coherenceOperator);(coherence-operator-[a-z0-9-]+)(.*)
   202          replacement: $2
   203          separator: ;coherenceOperator;
   204          sourceLabels:
   205          - namespace
   206          - pod
   207          targetLabel: verrazzano_component
   208        - action: replace
   209          regex: (verrazzano-system);(console);(verrazzano-console-[a-z0-9-]+)(.*)
   210          replacement: $2
   211          separator: ;console;
   212          sourceLabels:
   213          - namespace
   214          - pod
   215          targetLabel: verrazzano_component
   216        - action: replace
   217          regex: (cert-manager);(dns);(external-dns-[a-z0-9-]+)(.*)
   218          replacement: $2
   219          separator: ;dns;
   220          sourceLabels:
   221          - namespace
   222          - pod
   223          targetLabel: verrazzano_component
   224        - action: replace
   225          regex: (verrazzano-system);(fluentd);(fluentd-[a-z0-9-]+)(.*)
   226          replacement: $2
   227          separator: ;fluentd;
   228          sourceLabels:
   229          - namespace
   230          - pod
   231          targetLabel: verrazzano_component
   232        - action: replace
   233          regex: (verrazzano-system);(fluentOperator);(fluent-operator-[a-z0-9-]+)(.*)
   234          replacement: $2
   235          separator: ;fluentOperator;
   236          sourceLabels:
   237          - namespace
   238          - pod
   239          targetLabel: verrazzano_component
   240        - action: replace
   241          regex: (verrazzano-system);(fluentbitOpensearchOutput);(fluent-bit-[a-z0-9-]+)(.*)
   242          replacement: $2
   243          separator: ;fluentbitOpensearchOutput;
   244          sourceLabels:
   245          - namespace
   246          - pod
   247          targetLabel: verrazzano_component
   248        - action: replace
   249          regex: (verrazzano-system);(grafana);(vmi-system-grafana-[a-z0-9-]+)(.*)
   250          replacement: $2
   251          separator: ;grafana;
   252          sourceLabels:
   253          - namespace
   254          - pod
   255          targetLabel: verrazzano_component
   256        - action: replace
   257          regex: (verrazzano-system);(grafana);(vmi-system-grafana-[a-z0-9-]+)(.*)
   258          replacement: $2
   259          separator: ;grafana;
   260          sourceLabels:
   261          - namespace
   262          - persistentvolumeclaim
   263          targetLabel: verrazzano_component
   264        - action: replace
   265          regex: (ingress-nginx);(ingressNGINX);(ingress-controller-ingress-nginx-[a-z0-9-]+)(.*)
   266          replacement: $2
   267          separator: ;ingressNGINX;
   268          sourceLabels:
   269          - namespace
   270          - pod
   271          targetLabel: verrazzano_component
   272        - action: replace
   273          regex: (istio-system);(istio);(istio[a-z0-9-]+)(.*)
   274          replacement: $2
   275          separator: ;istio;
   276          sourceLabels:
   277          - namespace
   278          - pod
   279          targetLabel: verrazzano_component
   280        - action: replace
   281          regex: (verrazzano-monitoring);(jaegerOperator);(jaeger-[a-z0-9-]+)(.*)
   282          replacement: $2
   283          separator: ;jaegerOperator;
   284          sourceLabels:
   285          - namespace
   286          - pod
   287          targetLabel: verrazzano_component
   288        - action: replace
   289          regex: (keycloak);(keycloak);(keycloak-[a-z0-9-]+|mysql-[a-z0-9-]+)(.*)
   290          replacement: $2
   291          separator: ;keycloak;
   292          sourceLabels:
   293          - namespace
   294          - pod
   295          targetLabel: verrazzano_component
   296        - action: replace
   297          regex: (keycloak);(keycloak);(datadir-[a-z0-9-]+)(.*)
   298          replacement: $2
   299          separator: ;keycloak;
   300          sourceLabels:
   301          - namespace
   302          - persistentvolumeclaim
   303          targetLabel: verrazzano_component
   304        - action: replace
   305          regex: (verrazzano-system);(kiali);(vmi-system-kiali-[a-z0-9-]+)(.*)
   306          replacement: $2
   307          separator: ;kiali;
   308          sourceLabels:
   309          - namespace
   310          - pod
   311          targetLabel: verrazzano_component
   312        - action: replace
   313          regex: (verrazzano-monitoring);(kubeStateMetrics);(kube-state-metrics-[a-z0-9-]+)(.*)
   314          replacement: $2
   315          separator: ;kubeStateMetrics;
   316          sourceLabels:
   317          - namespace
   318          - pod
   319          targetLabel: verrazzano_component
   320        - action: replace
   321          regex: (verrazzano-system);(monitoringOperator);(verrazzano-monitoring-operator-[a-z0-9-]+)(.*)
   322          replacement: $2
   323          separator: ;monitoringOperator;
   324          sourceLabels:
   325          - namespace
   326          - pod
   327          targetLabel: verrazzano_component
   328        - action: replace
   329          regex: (mysql-operator);(mySQLOperator);(mysql-operator-[a-z0-9-]+)(.*)
   330          replacement: $2
   331          separator: ;mySQLOperator;
   332          sourceLabels:
   333          - namespace
   334          - pod
   335          targetLabel: verrazzano_component
   336        - action: replace
   337          regex: (verrazzano-system);(oam);(oam-kubernetes-runtime-[a-z0-9-]+)(.*)
   338          replacement: $2
   339          separator: ;oam;
   340          sourceLabels:
   341          - namespace
   342          - pod
   343          targetLabel: verrazzano_component
   344        - action: replace
   345          regex: (verrazzano-system);(opensearch);(vmi-system-es-[a-z0-9-]+)(.*)
   346          replacement: $2
   347          separator: ;opensearch;
   348          sourceLabels:
   349          - namespace
   350          - pod
   351          targetLabel: verrazzano_component
   352        - action: replace
   353          regex: (verrazzano-system);(opensearch);(vmi-system-es-[a-z0-9-]+|elasticsearch-[a-z0-9-]+)(.*)
   354          replacement: $2
   355          separator: ;opensearch;
   356          sourceLabels:
   357          - namespace
   358          - persistentvolumeclaim
   359          targetLabel: verrazzano_component
   360        - action: replace
   361          regex: (verrazzano-system);(opensearchDashboards);(vmi-system-osd-[a-z0-9-]+)(.*)
   362          replacement: $2
   363          separator: ;opensearchDashboards;
   364          sourceLabels:
   365          - namespace
   366          - pod
   367          targetLabel: verrazzano_component
   368        - action: replace
   369          regex: (verrazzano-install);(platformOperator);(verrazzano-platform-operator-[a-z0-9-]+)(.*)
   370          replacement: $2
   371          separator: ;platformOperator;
   372          sourceLabels:
   373          - namespace
   374          - pod
   375          targetLabel: verrazzano_component
   376        - action: replace
   377          regex: (verrazzano-monitoring);(prometheus);(prometheus-prometheus-operator-kube-p-prometheus-[a-z0-9-]+)(.*)
   378          replacement: $2
   379          separator: ;prometheus;
   380          sourceLabels:
   381          - namespace
   382          - pod
   383          targetLabel: verrazzano_component
   384        - action: replace
   385          regex: (verrazzano-monitoring);(prometheus);(prometheus-[a-z0-9-]+)(.*)
   386          replacement: $2
   387          separator: ;prometheus;
   388          sourceLabels:
   389          - namespace
   390          - persistentvolumeclaim
   391          targetLabel: verrazzano_component
   392        - action: replace
   393          regex: (verrazzano-monitoring);(prometheusAdapter);(prometheus-adapter-[a-z0-9-]+)(.*)
   394          replacement: $2
   395          separator: ;prometheusAdapter;
   396          sourceLabels:
   397          - namespace
   398          - pod
   399          targetLabel: verrazzano_component
   400        - action: replace
   401          regex: (verrazzano-monitoring);(prometheusNodeExporter);(prometheus-node-exporter-[a-z0-9-]+)(.*)
   402          replacement: $2
   403          separator: ;prometheusNodeExporter;
   404          sourceLabels:
   405          - namespace
   406          - pod
   407          targetLabel: verrazzano_component
   408        - action: replace
   409          regex: (verrazzano-monitoring);(prometheusOperator);(prometheus-operator-kube-p-operator-[a-z0-9-]+)(.*)
   410          replacement: $2
   411          separator: ;prometheusOperator;
   412          sourceLabels:
   413          - namespace
   414          - pod
   415          targetLabel: verrazzano_component
   416        - action: replace
   417          regex: (cattle-fleet-system|cattle-fleet-local-system|cattle-system);(rancher);(rancher-[a-z0-9-]+|fleet-[a-z0-9-]+|gitjob-[a-z0-9-]+)(.*)
   418          replacement: $2
   419          separator: ;rancher;
   420          sourceLabels:
   421          - namespace
   422          - pod
   423          targetLabel: verrazzano_component
   424        - action: replace
   425          regex: (cattle-resources-system);(rancherBackup);(rancher-backup-[a-z0-9-]+)(.*)
   426          replacement: $2
   427          separator: ;rancherBackup;
   428          sourceLabels:
   429          - namespace
   430          - pod
   431          targetLabel: verrazzano_component
   432        - action: replace
   433          regex: (verrazzano-backup);(velero);(restic-[a-z0-9-]+|velero-[a-z0-9-]+)(.*)
   434          replacement: $2
   435          separator: ;velero;
   436          sourceLabels:
   437          - namespace
   438          - pod
   439          targetLabel: verrazzano_component
   440        - action: replace
   441          regex: (verrazzano-monitoring);(thanos);(thanos-[a-z0-9-]+)(.*)
   442          replacement: $2
   443          separator: ;thanos;
   444          sourceLabels:
   445          - namespace
   446          - pod
   447          targetLabel: verrazzano_component
   448        - action: replace
   449          regex: (verrazzano-system);(weblogicOperator);(weblogic-operator-[a-z0-9-]+)(.*)
   450          replacement: $2
   451          separator: ;weblogicOperator;
   452          sourceLabels:
   453          - namespace
   454          - pod
   455          targetLabel: verrazzano_component
   456      probesMetricRelabelings:
   457        # Add verrazzano_component label
   458        - action: replace
   459          regex: (verrazzano-monitoring);(alertManager);(alertmanager-[a-z0-9-]+)(.*)
   460          replacement: $2
   461          separator: ;alertManager;
   462          sourceLabels:
   463          - namespace
   464          - pod
   465          targetLabel: verrazzano_component
   466        - action: replace
   467          regex: (verrazzano-system);(applicationOperator);(verrazzano-application-operator-[a-z0-9-]+)(.*)
   468          replacement: $2
   469          separator: ;applicationOperator;
   470          sourceLabels:
   471          - namespace
   472          - pod
   473          targetLabel: verrazzano_component
   474        - action: replace
   475          regex: (argocd);(argoCd);(argocd-[a-z0-9-]+)(.*)
   476          replacement: $2
   477          separator: ;argoCd;
   478          sourceLabels:
   479          - namespace
   480          - pod
   481          targetLabel: verrazzano_component
   482        - action: replace
   483          regex: (verrazzano-system);(authProxy);(verrazzano-authproxy-[a-z0-9-]+)(.*)
   484          replacement: $2
   485          separator: ;authProxy;
   486          sourceLabels:
   487          - namespace
   488          - pod
   489          targetLabel: verrazzano_component
   490        - action: replace
   491          regex: (cert-manager);(certManager);(cert-manager-[a-z0-9-]+)(.*)
   492          replacement: $2
   493          separator: ;certManager;
   494          sourceLabels:
   495          - namespace
   496          - pod
   497          targetLabel: verrazzano_component
   498        - action: replace
   499          regex: (verrazzano-capi);(clusterAPI);(capi-[a-z0-9-]+)(.*)
   500          replacement: $2
   501          separator: ;clusterAPI;
   502          sourceLabels:
   503          - namespace
   504          - pod
   505          targetLabel: verrazzano_component
   506        - action: replace
   507          regex: (verrazzano-system);(clusterOperator);(verrazzano-cluster-operator-[a-z0-9-]+)(.*)
   508          replacement: $2
   509          separator: ;clusterOperator;
   510          sourceLabels:
   511          - namespace
   512          - pod
   513          targetLabel: verrazzano_component
   514        - action: replace
   515          regex: (verrazzano-system);(coherenceOperator);(coherence-operator-[a-z0-9-]+)(.*)
   516          replacement: $2
   517          separator: ;coherenceOperator;
   518          sourceLabels:
   519          - namespace
   520          - pod
   521          targetLabel: verrazzano_component
   522        - action: replace
   523          regex: (verrazzano-system);(console);(verrazzano-console-[a-z0-9-]+)(.*)
   524          replacement: $2
   525          separator: ;console;
   526          sourceLabels:
   527          - namespace
   528          - pod
   529          targetLabel: verrazzano_component
   530        - action: replace
   531          regex: (cert-manager);(dns);(external-dns-[a-z0-9-]+)(.*)
   532          replacement: $2
   533          separator: ;dns;
   534          sourceLabels:
   535          - namespace
   536          - pod
   537          targetLabel: verrazzano_component
   538        - action: replace
   539          regex: (verrazzano-system);(fluentd);(fluentd-[a-z0-9-]+)(.*)
   540          replacement: $2
   541          separator: ;fluentd;
   542          sourceLabels:
   543          - namespace
   544          - pod
   545          targetLabel: verrazzano_component
   546        - action: replace
   547          regex: (verrazzano-system);(fluentbitOpensearchOutput);(fluent-bit-[a-z0-9-]+)(.*)
   548          replacement: $2
   549          separator: ;fluentbitOpensearchOutput;
   550          sourceLabels:
   551          - namespace
   552          - pod
   553          targetLabel: verrazzano_component
   554        - action: replace
   555          regex: (verrazzano-system);(fluentOperator);(fluent-operator-[a-z0-9-]+)(.*)
   556          replacement: $2
   557          separator: ;fluentOperator;
   558          sourceLabels:
   559          - namespace
   560          - pod
   561          targetLabel: verrazzano_component
   562        - action: replace
   563          regex: (verrazzano-system);(grafana);(vmi-system-grafana-[a-z0-9-]+)(.*)
   564          replacement: $2
   565          separator: ;grafana;
   566          sourceLabels:
   567          - namespace
   568          - pod
   569          targetLabel: verrazzano_component
   570        - action: replace
   571          regex: (verrazzano-system);(grafana);(vmi-system-grafana-[a-z0-9-]+)(.*)
   572          replacement: $2
   573          separator: ;grafana;
   574          sourceLabels:
   575          - namespace
   576          - persistentvolumeclaim
   577          targetLabel: verrazzano_component
   578        - action: replace
   579          regex: (ingress-nginx);(ingressNGINX);(ingress-controller-ingress-nginx-[a-z0-9-]+)(.*)
   580          replacement: $2
   581          separator: ;ingressNGINX;
   582          sourceLabels:
   583          - namespace
   584          - pod
   585          targetLabel: verrazzano_component
   586        - action: replace
   587          regex: (istio-system);(istio);(istio[a-z0-9-]+)(.*)
   588          replacement: $2
   589          separator: ;istio;
   590          sourceLabels:
   591          - namespace
   592          - pod
   593          targetLabel: verrazzano_component
   594        - action: replace
   595          regex: (verrazzano-monitoring);(jaegerOperator);(jaeger-[a-z0-9-]+)(.*)
   596          replacement: $2
   597          separator: ;jaegerOperator;
   598          sourceLabels:
   599          - namespace
   600          - pod
   601          targetLabel: verrazzano_component
   602        - action: replace
   603          regex: (keycloak);(keycloak);(keycloak-[a-z0-9-]+|mysql-[a-z0-9-]+)(.*)
   604          replacement: $2
   605          separator: ;keycloak;
   606          sourceLabels:
   607          - namespace
   608          - pod
   609          targetLabel: verrazzano_component
   610        - action: replace
   611          regex: (keycloak);(keycloak);(datadir-[a-z0-9-]+)(.*)
   612          replacement: $2
   613          separator: ;keycloak;
   614          sourceLabels:
   615          - namespace
   616          - persistentvolumeclaim
   617          targetLabel: verrazzano_component
   618        - action: replace
   619          regex: (verrazzano-system);(kiali);(vmi-system-kiali-[a-z0-9-]+)(.*)
   620          replacement: $2
   621          separator: ;kiali;
   622          sourceLabels:
   623          - namespace
   624          - pod
   625          targetLabel: verrazzano_component
   626        - action: replace
   627          regex: (verrazzano-monitoring);(kubeStateMetrics);(kube-state-metrics-[a-z0-9-]+)(.*)
   628          replacement: $2
   629          separator: ;kubeStateMetrics;
   630          sourceLabels:
   631          - namespace
   632          - pod
   633          targetLabel: verrazzano_component
   634        - action: replace
   635          regex: (verrazzano-system);(monitoringOperator);(verrazzano-monitoring-operator-[a-z0-9-]+)(.*)
   636          replacement: $2
   637          separator: ;monitoringOperator;
   638          sourceLabels:
   639          - namespace
   640          - pod
   641          targetLabel: verrazzano_component
   642        - action: replace
   643          regex: (mysql-operator);(mySQLOperator);(mysql-operator-[a-z0-9-]+)(.*)
   644          replacement: $2
   645          separator: ;mySQLOperator;
   646          sourceLabels:
   647          - namespace
   648          - pod
   649          targetLabel: verrazzano_component
   650        - action: replace
   651          regex: (verrazzano-system);(oam);(oam-kubernetes-runtime-[a-z0-9-]+)(.*)
   652          replacement: $2
   653          separator: ;oam;
   654          sourceLabels:
   655          - namespace
   656          - pod
   657          targetLabel: verrazzano_component
   658        - action: replace
   659          regex: (verrazzano-system);(opensearch);(vmi-system-es-[a-z0-9-]+)(.*)
   660          replacement: $2
   661          separator: ;opensearch;
   662          sourceLabels:
   663          - namespace
   664          - pod
   665          targetLabel: verrazzano_component
   666        - action: replace
   667          regex: (verrazzano-system);(opensearch);(vmi-system-es-[a-z0-9-]+|elasticsearch-[a-z0-9-]+)(.*)
   668          replacement: $2
   669          separator: ;opensearch;
   670          sourceLabels:
   671          - namespace
   672          - persistentvolumeclaim
   673          targetLabel: verrazzano_component
   674        - action: replace
   675          regex: (verrazzano-system);(opensearchDashboards);(vmi-system-osd-[a-z0-9-]+)(.*)
   676          replacement: $2
   677          separator: ;opensearchDashboards;
   678          sourceLabels:
   679          - namespace
   680          - pod
   681          targetLabel: verrazzano_component
   682        - action: replace
   683          regex: (verrazzano-install);(platformOperator);(verrazzano-platform-operator-[a-z0-9-]+)(.*)
   684          replacement: $2
   685          separator: ;platformOperator;
   686          sourceLabels:
   687          - namespace
   688          - pod
   689          targetLabel: verrazzano_component
   690        - action: replace
   691          regex: (verrazzano-monitoring);(prometheus);(prometheus-prometheus-operator-kube-p-prometheus-[a-z0-9-]+)(.*)
   692          replacement: $2
   693          separator: ;prometheus;
   694          sourceLabels:
   695          - namespace
   696          - pod
   697          targetLabel: verrazzano_component
   698        - action: replace
   699          regex: (verrazzano-monitoring);(prometheus);(prometheus-[a-z0-9-]+)(.*)
   700          replacement: $2
   701          separator: ;prometheus;
   702          sourceLabels:
   703          - namespace
   704          - persistentvolumeclaim
   705          targetLabel: verrazzano_component
   706        - action: replace
   707          regex: (verrazzano-monitoring);(prometheusAdapter);(prometheus-adapter-[a-z0-9-]+)(.*)
   708          replacement: $2
   709          separator: ;prometheusAdapter;
   710          sourceLabels:
   711          - namespace
   712          - pod
   713          targetLabel: verrazzano_component
   714        - action: replace
   715          regex: (verrazzano-monitoring);(prometheusNodeExporter);(prometheus-node-exporter-[a-z0-9-]+)(.*)
   716          replacement: $2
   717          separator: ;prometheusNodeExporter;
   718          sourceLabels:
   719          - namespace
   720          - pod
   721          targetLabel: verrazzano_component
   722        - action: replace
   723          regex: (verrazzano-monitoring);(prometheusOperator);(prometheus-operator-kube-p-operator-[a-z0-9-]+)(.*)
   724          replacement: $2
   725          separator: ;prometheusOperator;
   726          sourceLabels:
   727          - namespace
   728          - pod
   729          targetLabel: verrazzano_component
   730        - action: replace
   731          regex: (cattle-fleet-system|cattle-fleet-local-system|cattle-system);(rancher);(rancher-[a-z0-9-]+|fleet-[a-z0-9-]+|gitjob-[a-z0-9-]+)(.*)
   732          replacement: $2
   733          separator: ;rancher;
   734          sourceLabels:
   735          - namespace
   736          - pod
   737          targetLabel: verrazzano_component
   738        - action: replace
   739          regex: (cattle-resources-system);(rancherBackup);(rancher-backup-[a-z0-9-]+)(.*)
   740          replacement: $2
   741          separator: ;rancherBackup;
   742          sourceLabels:
   743          - namespace
   744          - pod
   745          targetLabel: verrazzano_component
   746        - action: replace
   747          regex: (verrazzano-backup);(velero);(restic-[a-z0-9-]+|velero-[a-z0-9-]+)(.*)
   748          replacement: $2
   749          separator: ;velero;
   750          sourceLabels:
   751          - namespace
   752          - pod
   753          targetLabel: verrazzano_component
   754        - action: replace
   755          regex: (verrazzano-monitoring);(thanos);(thanos-[a-z0-9-]+)(.*)
   756          replacement: $2
   757          separator: ;thanos;
   758          sourceLabels:
   759          - namespace
   760          - pod
   761          targetLabel: verrazzano_component
   762        - action: replace
   763          regex: (verrazzano-system);(weblogicOperator);(weblogic-operator-[a-z0-9-]+)(.*)
   764          replacement: $2
   765          separator: ;weblogicOperator;
   766          sourceLabels:
   767          - namespace
   768          - pod
   769          targetLabel: verrazzano_component
   770  coreDns:
   771    serviceMonitor:
   772      relabelings:
   773        - action: replace
   774          targetLabel: verrazzano_cluster
   775          replacement: local
   776  kubeApiServer:
   777    serviceMonitor:
   778      relabelings:
   779        - action: replace
   780          targetLabel: verrazzano_cluster
   781          replacement: local
   782  kubeControllerManager:
   783    serviceMonitor:
   784      relabelings:
   785        - action: replace
   786          targetLabel: verrazzano_cluster
   787          replacement: local
   788  kubeEtcd:
   789    serviceMonitor:
   790      relabelings:
   791        - action: replace
   792          targetLabel: verrazzano_cluster
   793          replacement: local
   794  kubeProxy:
   795    serviceMonitor:
   796      relabelings:
   797        - action: replace
   798          targetLabel: verrazzano_cluster
   799          replacement: local
   800  kubeScheduler:
   801    serviceMonitor:
   802      relabelings:
   803        - action: replace
   804          targetLabel: verrazzano_cluster
   805          replacement: local
   806  
   807    sidecar.istio.io/inject: "false"
   808  
   809  # Disable "absent" rules by default
   810  defaultRules:
   811    disabled:
   812      KubeAPIDown: true
   813      KubeletDown: true
   814    rules:
   815      kubeControllerManager: false
   816      kubeProxy: false
   817      kubeSchedulerAlerting: false