DEV Community

Cover image for JSON + Prometheus SECURELY
Adam Gardner
Adam Gardner

Posted on

1

JSON + Prometheus SECURELY

A while ago I wrote this post where I demonstrated how to scrape JSON-based metrics into Prometheus.

A YouTube user commented to ask how they'd do this securely - ie. if the endpoint was behind basic auth.

In this new video, I demonstrate how to scrape a JSON endpoint that is "secured" behind basic authentication. As a bonus, I also put the json_exporter probe endpoints behind basic authentication.

As always a GitHub repo is available for the hands-on.

Top comments (0)

Billboard image

Try REST API Generation for Snowflake

DevOps for Private APIs. Automate the building, securing, and documenting of internal/private REST APIs with built-in enterprise security on bare-metal, VMs, or containers.

  • Auto-generated live APIs mapped from Snowflake database schema
  • Interactive Swagger API documentation
  • Scripting engine to customize your API
  • Built-in role-based access control

Learn more

πŸ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay