namespace level metrics
CPU:
sum by (namespace) (container_cpu_allocation)
Memory:
sum by (namespace) (container_memory_allocation_bytes/1024/1024)
namespace level metrics
CPU:
sum by (namespace) (container_cpu_allocation)
Memory:
sum by (namespace) (container_memory_allocation_bytes/1024/1024)
github : https://github.com/prometheus/prometheus/pull/8316
from v2.24.0 basic authentication and TLS is inbuilt into prometheus.
webconfig.yml
tls_server_config:
cert_file: /etc/prometheus/prometheus.cert
key_file: /etc/prometheus/prometheus.key
basic_auth_users:
admin: $2y$12$/B1Z0Ohq/g9z/BlD30mi/uRDNdBRs/VrtAZrJDtY73Ttjc8RYHJ2O
./prometheus --web.config.file=webconfig.yml