sed -i '/^old-value /s/=.*$/=new-value/' file-namecat terraform.tfvars.example
project_id = "gcp-123"
| version: "3.5" | |
| services: | |
| fluentbit: | |
| image: cr.fluentbit.io/fluent/fluent-bit | |
| ports: | |
| - "24224:24224" | |
| - "24224:24224/udp" | |
| volumes: | |
| - ./:/fluent-bit/etc/ | |
| flog: |
| [PARSER] | |
| Name apache | |
| Format regex | |
| Regex ^(?<host>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] "(?<method>\S+)(?: +(?<path>[^\"]*?)(?: +\S*)?)?" (?<code>[^ ]*) (?<size>[^ ]*)(?: "(?<referer>[^\"]*)" "(?<agent>[^\"]*)")?$ | |
| Time_Key time | |
| Time_Format %d/%b/%Y:%H:%M:%S %z | |
| [PARSER] | |
| Name nginx | |
| Format regex |
kubectl exec -it <metricbeat-pod-name> bash -n <namespace>
./metricbeat setup --dashboards -E setup.kibana.host=kibana-kibana:5601
| #!/bin/bash | |
| set -eu | |
| if ! command -v ssh-keygen &> /dev/null ;then | |
| echo "Cant seem to find 'ssh-keygen' binary, are you sure its installed ?" | |
| exit 1 | |
| fi | |
| if ! command -v ssh &> /dev/null ;then | |
| echo "Cant seem to find 'ssh' binary, are you sure its installed ?" |
| rbac: | |
| create: false | |
| podSecurityPolicy: | |
| enabled: false | |
| imagePullSecrets: | |
| # - name: "image-pull-secret" | |
| ## Define serviceAccount names for components. Defaults to component's fully qualified name. |
node_filesystem_free_bytes{} unless node_filesystem_free_bytes{instance="10.10.0.1",mountpoint="/dir"}
Stackoverflow answer : Link
| ### ALert Configuration | |
| - alert: KubePodReadinessFailure | |
| annotations: | |
| description: Readiness probe for the Pod {{ $labels.pod }} is failing for last 10 minutes | |
| expr: sum by(pod)( kube_pod_info{created_by_kind!="Job"} AND ON (pod, namespace) kube_pod_status_ready{condition="false"} == 1) > 0 | |
| for: 10m | |
| labels: | |
| severity: warning |
| version: '3.8' | |
| services: | |
| node-exporter: | |
| image: prom/node-exporter:latest | |
| container_name: node-exporter | |
| restart: unless-stopped | |
| volumes: | |
| - /proc:/host/proc:ro | |
| - /sys:/host/sys:ro |
| > docker images | |
| REPOSITORY TAG IMAGE ID CREATED SIZE | |
| registry.digitalocean.com/tanmaybhat/kube-ops-view latest a645de6a07a3 21 months ago 253MB | |
| registry.digitalocean.com/tanmaybhat/kube-ops-view v1.2.3 a645de6a07a3 21 months ago 253MB | |
| > docker tag registry.digitalocean.com/tanmaybhat/kube-ops-view:latest registry.digitalocean.com/tanmaybhat/kube-ops-view:v1.2.4 | |
| > docker images |