Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion deploy/services/helm-charts/dss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ prometheus:
evaluation_interval: 5s

podAnnotations:
serverFilesVersion: "2" # Since the prometheus helm chart does not detect changes in server files, this value is used to force the redeployment following the update of the serverFiles defined below.
serverFilesVersion: "3" # Since the prometheus helm chart does not detect changes in server files, this value is used to force the redeployment following the update of the serverFiles defined below.

extraFlags:
- "web.config.file=/etc/config/web-config.yml"
Expand Down Expand Up @@ -119,6 +119,16 @@ prometheus:

prometheus.yml:
scrape_configs:
- job_name: 'prometheus'
scheme: 'https'
tls_config:
ca_file: '/certs/ca.crt'
cert_file: '/certs/node.crt'
key_file: '/certs/node.key'
insecure_skip_verify: true # Don't verify as it's localhost (so it's safe) and hostname doesn't match
static_configs:
- targets:
- '127.0.0.1:9090'
- job_name: K8s-Endpoints
tls_config:
insecure_skip_verify: true
Expand Down
6 changes: 3 additions & 3 deletions deploy/services/tanka/prometheus.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
local base = import 'base.libsonnet';
local k8sEndpoints = import 'prometheus_configs/k8s-endpoints.libsonnet';
local scrapeConfigs = import 'prometheus_configs/scrape-configs.libsonnet';
local crdbAggregation = import 'prometheus_configs/crdb-aggregation.libsonnet';


Expand All @@ -17,7 +17,7 @@ local PrometheusConfig(metadata) = {
'aggregation.rules.yml',
'custom.rules.yml',
],
scrape_configs: k8sEndpoints.scrape_configs,
scrape_configs: scrapeConfigs.scrape_configs,
};

local PrometheusWebConfig(metadata) = {
Expand Down Expand Up @@ -137,7 +137,7 @@ local externalLB(metadata, name, ip) =
annotations+: {
"checksum/config": std.native('sha256')(std.manifestJson(PrometheusConfig(metadata))),
"checksum/webconfig": std.native('sha256')(std.manifestJson(PrometheusWebConfig(metadata))),
"checksum/k8sEndpoints": std.native('sha256')(std.manifestJson(k8sEndpoints)),
"checksum/scrapeConfigs": std.native('sha256')(std.manifestJson(scrapeConfigs)),
"checksum/crdbAggregation": std.native('sha256')(std.manifestJson(crdbAggregation)),
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
{
scrape_configs: [
{
job_name: 'prometheus',
scheme: 'https',
tls_config: {
ca_file: '/certs/ca.crt',
cert_file: '/certs/node.crt',
key_file: '/certs/node.key',
insecure_skip_verify: true, # Don't verify as it's localhost (so it's safe) and hostname doesn't match
},
static_configs: [
{
targets: [
'127.0.0.1:9090',
]
},
],
},
{
job_name: 'K8s-Endpoints',
kubernetes_sd_configs: [
Expand Down
Loading