Giter VIP home page Giter VIP logo

Comments (3)

olivielpeau avatar olivielpeau commented on June 12, 2024

Hi @maniker, based on the inline docs of the prometheus check's config (https://github.com/DataDog/integrations-core/blob/bdf9216ba605ac7a60d1047cf8afc381d0fa1208/prometheus/datadog_checks/prometheus/data/conf.yaml.example#L90-L101), given that your certificate and your private key are in 2 different files, you should set ssl_cert to the path of your certificate and ssl_private_key to the path of your private key.

I'll go ahead and close this issue, but if you still have issues please contact our support and send them your logs, thanks!

from dd-agent.

maniker avatar maniker commented on June 12, 2024

Hi @olivielpeau, i have given the path to my .crt and .key and it worked i reckon, so after that I get the below error,

2019-05-08 10:34:39 CDT | ERROR | (runner.go:289 in work) | Error running check prometheus: [{"message": "HTTPSConnectionPool(host='Servername.com', port=9000): Max retries exceeded with url: /minio/prometheus/metrics (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))", "traceback": "Traceback (most recent call last):\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/base.py", line 387, in run\n self.check(copy.deepcopy(self.instances[0]))\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/prometheus/base_check.py", line 108, in check\n ignore_unmapped=True\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/prometheus/mixins.py", line 394, in process\n for metric in self.scrape_metrics(endpoint):\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/prometheus/mixins.py", line 358, in scrape_metrics\n response = self.poll(endpoint)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/datadog_checks/base/checks/prometheus/mixins.py", line 523, in poll\n verify=verify)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 75, in get\n return request('get', url, params=params, **kwargs)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 60, in request\n return session.request(method=method, url=url, **kwargs)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 533, in request\n resp = self.send(prep, **send_kwargs)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 646, in send\n r = adapter.send(request, **kwargs)\n File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/adapters.py", line 514, in send\n raise SSLError(e, request=request)\nSSLError: HTTPSConnectionPool(host='servername.com', port=9000): Max retries exceeded with url: /minio/prometheus/metrics (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))\n"}]

from dd-agent.

 avatar commented on June 12, 2024

@maniker just checking do you end up getting DataDog working with pulling data from the exposed minio prometheus metric's. If you did would you be willing to share your script or post it here?

We're wanting to do the same thing and so it would be nice to know if you got it all working

Thanks

Hass

from dd-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.