メインコンテンツへスキップ

証明書の不一致が原因でPrometheusとStorageGRIDの統合が失敗する

Views:
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

環境

  • StorageGRID
  • Prometheus

問題

  • 外部の Prometheus を NetApp StorageGRID と統合する場合、メトリックを取得できません。
  • Prometheus GUIに表示されるエラーメッセージ:

Error scraping target: Get "https://[target-url]/federate?match%5B%5D=%7B__name__%3D~%22alertmanager_.%2A%7Ccassandra_.%2A%7Cnode_.%2A%7Cstoragegrid_.%2A%22%7D": tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match [target-url]

  • 対応する証明書を指定してcurl経由で接続をテストすると、結果は The SSL certificate errorと表示されます

例:

[root@localhost ~]# curl https://xxxx:9091/federate -v --cert /etc/prometheus/cert/certificate.pem --key /etc/prometheus/cert/private_key.pem --cacert /etc/prometheus/cert/ca_certificate.pem
*   Trying x.x.x.x:9091...
...
<body>
<center><h1>400 Bad Request</h1></center>
<center>The SSL certificate error</center>
<hr><center>nginx</center>
</body>

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.