Skip to content
New issue

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

Bugfix: EdDSA provider not supported #659

Merged
merged 1 commit into from
Feb 21, 2023
Merged

Conversation

caibenxiang
Copy link
Contributor

当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:

  • name: storage
    priority: 0
    fields:
    • field: "total_storage"
      type: 0
      unit: 'MB'
    • field: "data_used"
      type: 0
      unit: 'MB'
    • field: "log_uesd"
      type: 0
      unit: 'MB'
    • field: "usage"
      type: 0
      unit: '%'
      aliasFields:
    • total
    • used
    • pgdata
    • pglog
      calculates:
    • total_storage=total
    • data_used=pgdata-pglog
    • log_uesd=pglog
    • usage=(used / total) * 100
      protocol: ssh
      ssh:
      host: ^^host^^
      port: ^^port^^
      username: ^^username^^
      password: ^^password^^
      timeout: ^^timeout^^
      script: kubectl --token='^^token^^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^^deployment^^ -n ^^namespace^^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^^token^^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^^deployment^^ -n ^^namespace^^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^^token^^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^^deployment^^ -n ^^namespace^^ -- du -d 1 -m /var/lib/postgresql/data/ | awk 'END {print}' | awk '{print $1}';kubectl --token='^^token^^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^^deployment^^ -n ^^namespace^^ -- du -d 1 -m /var/lib/postgresql/data/log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"

当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field: "total_storage"
        type: 0
        unit: 'MB'
      - field: "data_used"
        type: 0
        unit: 'MB'
      - field: "log_uesd"
        type: 0
        unit: 'MB'
      - field: "usage"
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used / total) * 100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/ | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!👍👍

@tomsun28 tomsun28 added enhancement New feature or request good first pull request Good for newcomers labels Feb 21, 2023
@tomsun28
Copy link
Contributor

@all-contributors please add @caibenxiang for code

@allcontributors
Copy link
Contributor

@tomsun28

I've put up a pull request to add @caibenxiang! 🎉

@tomsun28 tomsun28 merged commit 0460927 into apache:master Feb 21, 2023
tomsun28 pushed a commit that referenced this pull request Jan 16, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field: "total_storage"
        type: 0
        unit: 'MB'
      - field: "data_used"
        type: 0
        unit: 'MB'
      - field: "log_uesd"
        type: 0
        unit: 'MB'
      - field: "usage"
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used / total) * 100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/ | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field: "total_storage"
        type: 0
        unit: 'MB'
      - field: "data_used"
        type: 0
        unit: 'MB'
      - field: "log_uesd"
        type: 0
        unit: 'MB'
      - field: "usage"
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used / total) * 100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/ | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
tomsun28 pushed a commit that referenced this pull request Mar 9, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field: "total_storage"
        type: 0
        unit: 'MB'
      - field: "data_used"
        type: 0
        unit: 'MB'
      - field: "log_uesd"
        type: 0
        unit: 'MB'
      - field: "usage"
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used / total) * 100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/ | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server="https://10.96.0.1" --insecure-skip-tls-verify exec -it deploy/^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m /var/lib/postgresql/data/log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat /etc/os-release 
NAME="Red Hat Enterprise Linux Server"
VERSION="7.9 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.9"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.9 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.9:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.9"
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field:  total_storage 
        type: 0
        unit: 'MB'
      - field:  data_used 
        type: 0
        unit: 'MB'
      - field:  log_uesd 
        type: 0
        unit: 'MB'
      - field:  usage 
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used   total)   100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data  | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat  etc os-release 
NAME= Red Hat Enterprise Linux Server 
VERSION= 7.9 (Maipo) 
ID= rhel 
ID_LIKE= fedora 
VARIANT= Server 
VARIANT_ID= server 
VERSION_ID= 7.9 
PRETTY_NAME= Red Hat Enterprise Linux Server 7.9 (Maipo) 
ANSI_COLOR= 0;31 
CPE_NAME= cpe: o:redhat:enterprise_linux:7.9:GA:server 
HOME_URL= https:  www.redhat.com  
BUG_REPORT_URL= https:  bugzilla.redhat.com  

REDHAT_BUGZILLA_PRODUCT= Red Hat Enterprise Linux 7 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT= Red Hat Enterprise Linux 
REDHAT_SUPPORT_PRODUCT_VERSION= 7.9
tomsun28 pushed a commit that referenced this pull request Mar 10, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field:  total_storage 
        type: 0
        unit: 'MB'
      - field:  data_used 
        type: 0
        unit: 'MB'
      - field:  log_uesd 
        type: 0
        unit: 'MB'
      - field:  usage 
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used   total)   100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data  | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat  etc os-release 
NAME= Red Hat Enterprise Linux Server 
VERSION= 7.9 (Maipo) 
ID= rhel 
ID_LIKE= fedora 
VARIANT= Server 
VARIANT_ID= server 
VERSION_ID= 7.9 
PRETTY_NAME= Red Hat Enterprise Linux Server 7.9 (Maipo) 
ANSI_COLOR= 0;31 
CPE_NAME= cpe: o:redhat:enterprise_linux:7.9:GA:server 
HOME_URL= https:  www.redhat.com  
BUG_REPORT_URL= https:  bugzilla.redhat.com  

REDHAT_BUGZILLA_PRODUCT= Red Hat Enterprise Linux 7 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT= Red Hat Enterprise Linux 
REDHAT_SUPPORT_PRODUCT_VERSION= 7.9
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field:  total_storage 
        type: 0
        unit: 'MB'
      - field:  data_used 
        type: 0
        unit: 'MB'
      - field:  log_uesd 
        type: 0
        unit: 'MB'
      - field:  usage 
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used   total)   100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data  | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat  etc os-release 
NAME= Red Hat Enterprise Linux Server 
VERSION= 7.9 (Maipo) 
ID= rhel 
ID_LIKE= fedora 
VARIANT= Server 
VARIANT_ID= server 
VERSION_ID= 7.9 
PRETTY_NAME= Red Hat Enterprise Linux Server 7.9 (Maipo) 
ANSI_COLOR= 0;31 
CPE_NAME= cpe: o:redhat:enterprise_linux:7.9:GA:server 
HOME_URL= https:  www.redhat.com  
BUG_REPORT_URL= https:  bugzilla.redhat.com  

REDHAT_BUGZILLA_PRODUCT= Red Hat Enterprise Linux 7 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT= Red Hat Enterprise Linux 
REDHAT_SUPPORT_PRODUCT_VERSION= 7.9
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field:  total_storage 
        type: 0
        unit: 'MB'
      - field:  data_used 
        type: 0
        unit: 'MB'
      - field:  log_uesd 
        type: 0
        unit: 'MB'
      - field:  usage 
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used   total)   100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data  | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat  etc os-release 
NAME= Red Hat Enterprise Linux Server 
VERSION= 7.9 (Maipo) 
ID= rhel 
ID_LIKE= fedora 
VARIANT= Server 
VARIANT_ID= server 
VERSION_ID= 7.9 
PRETTY_NAME= Red Hat Enterprise Linux Server 7.9 (Maipo) 
ANSI_COLOR= 0;31 
CPE_NAME= cpe: o:redhat:enterprise_linux:7.9:GA:server 
HOME_URL= https:  www.redhat.com  
BUG_REPORT_URL= https:  bugzilla.redhat.com  

REDHAT_BUGZILLA_PRODUCT= Red Hat Enterprise Linux 7 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT= Red Hat Enterprise Linux 
REDHAT_SUPPORT_PRODUCT_VERSION= 7.9
tomsun28 pushed a commit that referenced this pull request Mar 11, 2024
当使用如下自定义配置时,Collector日志报出 EdDSA provider not supporte 错误,导致采集失败。
metrics:
  - name: storage
    priority: 0
    fields:
      - field:  total_storage 
        type: 0
        unit: 'MB'
      - field:  data_used 
        type: 0
        unit: 'MB'
      - field:  log_uesd 
        type: 0
        unit: 'MB'
      - field:  usage 
        type: 0
        unit: '%'
    aliasFields:
      - total
      - used
      - pgdata
      - pglog
    calculates:
      - total_storage=total
      - data_used=pgdata-pglog
      - log_uesd=pglog
      - usage=(used   total)   100
    protocol: ssh
    ssh:
      host: ^_^host^_^
      port: ^_^port^_^
      username: ^_^username^_^
      password: ^_^password^_^
      timeout: ^_^timeout^_^
      script: kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $3}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- df -Tm | grep overlay | awk '{print $4}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data  | awk 'END {print}' | awk '{print $1}';kubectl --token='^_^token^_^' --server= https:  10.96.0.1  --insecure-skip-tls-verify exec -it deploy ^_^deployment^_^ -n ^_^namespace^_^ -- du -d 1 -m  var lib postgresql data log | awk 'END {print}' | awk '{print $1}'
      parseType: oneRow

操作系统信息:
[root@yizhanshi207 ~]# cat  etc os-release 
NAME= Red Hat Enterprise Linux Server 
VERSION= 7.9 (Maipo) 
ID= rhel 
ID_LIKE= fedora 
VARIANT= Server 
VARIANT_ID= server 
VERSION_ID= 7.9 
PRETTY_NAME= Red Hat Enterprise Linux Server 7.9 (Maipo) 
ANSI_COLOR= 0;31 
CPE_NAME= cpe: o:redhat:enterprise_linux:7.9:GA:server 
HOME_URL= https:  www.redhat.com  
BUG_REPORT_URL= https:  bugzilla.redhat.com  

REDHAT_BUGZILLA_PRODUCT= Red Hat Enterprise Linux 7 
REDHAT_BUGZILLA_PRODUCT_VERSION=7.9
REDHAT_SUPPORT_PRODUCT= Red Hat Enterprise Linux 
REDHAT_SUPPORT_PRODUCT_VERSION= 7.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix enhancement New feature or request good first pull request Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants