-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
4.9
-
-
-
Low
-
None
-
Unspecified
-
If docs needed, set a value
Description of problem:
The "thanos-querier" somehow rewrites the "cluster"-field with the name of the Openshift-cluster, as opposed to when doing the exact same query but on the "prometheus" API endpoint
Version-Release number of selected component (if applicable):
4.9
How reproducible:
Customer is able to reproduce at will.
Steps to Reproduce:
Thanos-querier API endpoint :
$ curl --noproxy "*" -sLk --data-urlencode "query=opensearch_cluster_nodes_number" -H "Authorization: Bearer xxxx" "https://thanos-querier-openshift-monitoring.apps.smals-75.paas.acc.cloud.smals.be/api/v1/query" | jq-win64.exe
...
{
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"_name_": "opensearch_cluster_nodes_number",
"cluster": "smals-75",
"container": "opensearch",
"endpoint": "http",
...
Prometheus API endpoint :
$ curl --noproxy "*" -sLk --data-urlencode "query=opensearch_cluster_nodes_number" -H "Authorization: Bearer xxxx" "https://prometheus-k8s-openshift-monitoring.apps.smals-75.paas.acc.cloud.smals.be/api/v1/query" | jq-win64.exe
...
{
"status": "success",
"data": {
"resultType": "vector",
"result": [
{
"metric": {
"_name_": "opensearch_cluster_nodes_number",
"cluster": "opensearch-test",
"container": "opensearch",
"endpoint": "http",
Actual results:
Expected results:
Additional info:
- is documented by
-
OBSDOCS-179 Document about externalLabels field in prometheus config
- Closed