Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to validate the Hashmod config #14101

Closed
velu4689 opened this issue May 15, 2024 · 1 comment
Closed

Request to validate the Hashmod config #14101

velu4689 opened this issue May 15, 2024 · 1 comment

Comments

@velu4689
Copy link

What did you do?

We have used following hashmod config in our prometheus (on prometheus operator with horizontally scalable)

In relabel_config, we have used the following: replicas (2), shards (3)
- source_labels: [__meta_kubernetes_pod_label_nfId]
modulus: 3
target_label: __tmp_hash
action: hashmod
- source_labels: [__tmp_hash]
regex: ^1$
action: keep

However, we are unable to add get the data for certain hosts. However we receive data when we use the following scrape config, replicas (1), shards (3)
- source_labels: [__meta_kubernetes_pod_label_nfId]
modulus: 3
target_label: __tmp_hash
action: hashmod

Kindly review & let me know if this is correct. Also, if second config is really valid.

What did you expect to see?

Data from all hosts

What did you see instead? Under which circumstances?

No data

System information

Linux

Prometheus version

No response

Prometheus configuration file

No response

Alertmanager version

No response

Alertmanager configuration file

No response

Logs

No response

@machine424
Copy link
Collaborator

machine424 commented May 15, 2024

This looks like a support request, I'll convert this into a discussion.
Don't hesitate to reach out to the community over slack https://prometheus.io/community/ (there is more activity there)

@prometheus prometheus locked and limited conversation to collaborators May 15, 2024
@machine424 machine424 converted this issue into discussion #14110 May 15, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants