Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 765 Bytes

File metadata and controls

24 lines (19 loc) · 765 Bytes

Node Exporter Docker Container

Basic Auth

create config file web.yml and add bellow content:

basic_auth_users:
  prom: $2b$12$0Edpca4VZIPPyLVM6wJAEOVcNRzRViWwiuKxfzZNov.M1sOTV5qZe

Default user and password is prom:prom.

You can use bellow python scripts to generate youself account:

import getpass
import bcrypt

password = getpass.getpass("password: ")
hashed_password = bcrypt.hashpw(password.encode("utf-8"), bcrypt.gensalt())
print(hashed_password.decode())

Reference