Skip to content

Commit

Permalink
Add /api/v1/receive route to config and change ns
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
  • Loading branch information
saswatamcode committed Mar 1, 2022
1 parent 1c5b302 commit 094d498
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions resources/services/metric-federation-rule-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ objects:
- "headers":
"THANOS-TENANT": "770c1124-6ae8-4324-a9d4-9ce08590094b"
"name": "receive-rhobs"
"url": "http://observatorium-thanos-receive.${THANOS_QUERIER_NAMESPACE}.svc.cluster.local:19291"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291/api/v1/receive"
"write_relabel_configs":
- "action": "keep"
"regex": "770c1124-6ae8-4324-a9d4-9ce08590094b"
Expand All @@ -59,7 +59,7 @@ objects:
- "headers":
"THANOS-TENANT": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"name": "receive-telemeter"
"url": "http://observatorium-thanos-receive.${THANOS_QUERIER_NAMESPACE}.svc.cluster.local:19291"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291/api/v1/receive"
"write_relabel_configs":
- "action": "keep"
"regex": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
Expand Down
4 changes: 2 additions & 2 deletions resources/services/observatorium-metrics-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ objects:
- "headers":
"THANOS-TENANT": "770c1124-6ae8-4324-a9d4-9ce08590094b"
"name": "receive-rhobs"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291/api/v1/receive"
"write_relabel_configs":
- "action": "keep"
"regex": "770c1124-6ae8-4324-a9d4-9ce08590094b"
Expand All @@ -1704,7 +1704,7 @@ objects:
- "headers":
"THANOS-TENANT": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
"name": "receive-telemeter"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291"
"url": "http://observatorium-thanos-receive.${NAMESPACE}.svc.cluster.local:19291/api/v1/receive"
"write_relabel_configs":
- "action": "keep"
"regex": "FB870BF3-9F3A-44FF-9BF7-D7A047A52F43"
Expand Down
12 changes: 10 additions & 2 deletions services/observatorium-metrics.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,11 @@ local oauthProxy = import './sidecars/oauth-proxy.libsonnet';
},
data: {
[statelessRulerKey]: std.manifestYamlDoc(remoteWriteConfig({
url: 'http://observatorium-thanos-receive.%s.svc.cluster.local:19291' % thanosSharedConfig.namespace,
url: 'http://%s.%s.svc.cluster.local:%d/api/v1/receive' % [
thanos.receiversService.metadata.name,
thanosSharedConfig.namespace,
thanos.receiversService.spec.ports[2].port,
],
})),
},
},
Expand Down Expand Up @@ -259,7 +263,11 @@ local oauthProxy = import './sidecars/oauth-proxy.libsonnet';
},
data: {
[statelessRulerKey]: std.manifestYamlDoc(remoteWriteConfig({
url: 'http://observatorium-thanos-receive.%s.svc.cluster.local:19291' % '${THANOS_QUERIER_NAMESPACE}',
url: 'http://%s.%s.svc.cluster.local:%d/api/v1/receive' % [
thanos.receiversService.metadata.name,
thanosSharedConfig.namespace,
thanos.receiversService.spec.ports[2].port,
],
})),
},
},
Expand Down

0 comments on commit 094d498

Please sign in to comment.