k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/monitoring/grafana_configmaps.yaml (about)

     1  ---
     2  apiVersion: v1
     3  kind: ConfigMap
     4  metadata:
     5    namespace: prow-monitoring
     6    name: grafana-nginx
     7  data:
     8    nginx.conf: |
     9      pid        /tmp/nginx.pid;
    10  
    11      events { }
    12  
    13      http {
    14          client_body_temp_path /tmp/client_temp;
    15          proxy_temp_path       /tmp/proxy_temp_path;
    16          fastcgi_temp_path     /tmp/fastcgi_temp;
    17          uwsgi_temp_path       /tmp/uwsgi_temp;
    18          scgi_temp_path        /tmp/scgi_temp;
    19  
    20          server {
    21              listen 8080 default_server;
    22              server_name _;
    23              if ($request_uri = '/healthy') {
    24                  return 200 'ok';
    25              }
    26              if ($http_x_forwarded_proto != 'https') {
    27                  return 301 https://$host$request_uri;
    28              }
    29              location / {
    30                  proxy_pass          http://localhost:3001;
    31              }
    32          }
    33      }
    34  ---
    35  apiVersion: v1
    36  kind: ConfigMap
    37  metadata:
    38    namespace: prow-monitoring
    39    name: grafana-datasources
    40  data:
    41    datasources.yaml: |
    42      ---
    43      apiVersion: 1
    44      datasources:
    45        - name: prometheus
    46          type: prometheus
    47          access: proxy
    48          url: http://prometheus.prow-monitoring.svc:9090
    49          version: 1
    50          orgId: 1
    51          editable: false
    52  ---
    53  apiVersion: v1
    54  kind: ConfigMap
    55  metadata:
    56    namespace: prow-monitoring
    57    name: grafana-config
    58  data:
    59    grafana.ini: |
    60      [auth.basic]
    61      enabled = false
    62      [auth.anonymous]
    63      enabled = true
    64      org_role = Viewer
    65      [auth]
    66      disable_login_form = true
    67      [paths]
    68      data = /var/lib/grafana
    69      logs = /var/lib/grafana/logs
    70      plugins = /var/lib/grafana/plugins
    71      provisioning = /etc/grafana/provisioning
    72      [security]
    73      disable_gravatar = true
    74      [server]
    75      http_port = 3001
    76  ---
    77  apiVersion: v1
    78  kind: ConfigMap
    79  metadata:
    80    namespace: prow-monitoring
    81    name: grafana-dashboards
    82  data:
    83    dashboards.yaml: |
    84      apiVersion: 1
    85      providers:
    86      - folder: ''
    87        name: '0'
    88        options:
    89          path: "/grafana-dashboard-definitions/0"
    90        orgId: 1
    91        type: file