diff --git a/deployment/values.yaml b/deployment/values.yaml index f180e7d6..44107d60 100644 --- a/deployment/values.yaml +++ b/deployment/values.yaml @@ -19,7 +19,8 @@ image: # for the image tag, e.g: tag: 3.1.8-3.1.5-ubuntu20.04 -# Comment the following line to stop profiling metrics from DCGM +# Change the following reference to "/etc/dcgm-exporter/default-counters.csv" +# to stop profiling metrics from DCGM arguments: ["-f", "/etc/dcgm-exporter/dcp-metrics-included.csv"] # NOTE: in general, add any command line arguments to arguments above # and they will be passed through. diff --git a/pkg/dcgmexporter/server.go b/pkg/dcgmexporter/server.go index 442e3b60..f86e3c02 100644 --- a/pkg/dcgmexporter/server.go +++ b/pkg/dcgmexporter/server.go @@ -40,6 +40,8 @@ func NewMetricsServer(c *Config, metrics chan string) (*MetricsServer, func(), e } router.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("X-Content-Type-Options", "nosniff") + w.WriteHeader(http.StatusOK) w.Write([]byte(`