Skip to content
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

Config mismatch #4051

Closed
dbluxo opened this Issue Apr 6, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@dbluxo
Copy link

dbluxo commented Apr 6, 2018

What did you do?

Compare prometheus.yml config with the loaded prometheus config in ui https://prometheus-url/config

What did you expect to see?

Config in prometheus.yml is the same as the shown config in prometheus ui

What did you see instead? Under which circumstances?

Config mismatch, example:

In prometheus.yml:

      - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
        action: replace
        target_label: __metrics_path__
        regex: (.+)

Loaded config shown in prometheus ui:

  - source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_path]
    separator: ;
    regex: (.+)
    target_label: __metrics_path__
    replacement: $1
    action: replace

Environment

We are using prometheus 2.2.1 inside kubernetes.

  • System information:

    Linux 4.9.75-rancher x86_64

  • Prometheus version:

    prometheus, version 2.2.1 (branch: HEAD, revision: bc6058c)
    build user: root@149e5b3f0829
    build date: 20180314-14:15:45
    go version: go1.10

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 6, 2018

This is expected, to hide secrets we need to marshall and unmarshall the config so you end up seeing all the defaults.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.