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

/flags does not reflect log.level flag #2330

Closed
cburroughs opened this Issue Jan 9, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@cburroughs
Copy link

cburroughs commented Jan 9, 2017

What did you do?

  • set -log.level=error or -log.level=debug
  • went to /flags

What did you expect to see?

log.level on /flags to have the value I set.

What did you see instead? Under which circumstances?

log.level on /flags always shows "info"

It is unclear to me if this is purely a reporting issue, or if the log level is not being used correctly. When I set the log level to error I see no INFO messages on stderr (as expected), but if I set it to debug the only additional message I see is DEBU[0011] Target manager stopped source=targetmanager.go:89 on shutdown.

Environment

  • System information:

# uname -srm Linux 4.3.0 x86_64

  • Prometheus version:
# ./prometheus -version
prometheus, version 1.4.1 (branch: master, revision: 2a89e8733f240d3cd57a6520b52c36ac4744ce12)
  build user:       root@e685d23d8809
  build date:       20161128-09:59:22
  go version:       go1.7.3
  • Prometheus configuration file:
global:
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  # scrape_timeout is set to the global default (10s).

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
      monitor: 'codelab-monitor'

rule_files:
  # - "first.rules"

scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'

    static_configs:
      - targets: ['localhost:9090']
  - job_name: 'pushgateway'
    honor_labels: true
    static_configs:
      - targets: ['localhost:9091']
  - job_name: 'localyolo'
    scrape_interval: 5s
    honor_labels: true
    static_configs:
     - targets: ['localhost:8000']

  • Logs:
    at debug
INFO[0000] Starting prometheus (version=1.4.1, branch=master, revision=2a89e8733f240d3cd57a6520b52c36ac4744ce12)  source=main.go:77
INFO[0000] Build context (go=go1.7.3, user=root@e685d23d8809, date=20161128-09:59:22)  source=main.go:78
INFO[0000] Loading configuration file prometheus.yml     source=main.go:250
INFO[0000] Loading series map and head chunks...         source=storage.go:354
INFO[0000] 506 series loaded.                            source=storage.go:359
INFO[0000] Starting target manager...                    source=targetmanager.go:63
INFO[0000] Listening on :9090                            source=web.go:248
^CWARN[0013] Received SIGTERM, exiting gracefully...       source=main.go:232
INFO[0013] See you next time!                            source=main.go:239
INFO[0013] Stopping target manager...                    source=targetmanager.go:77
DEBU[0013] Target manager stopped                        source=targetmanager.go:89
INFO[0013] Stopping rule manager...                      source=manager.go:374
INFO[0013] Rule manager stopped.                         source=manager.go:380
INFO[0013] Stopping notification handler...              source=notifier.go:369
INFO[0013] Stopping local storage...                     source=storage.go:377
INFO[0013] Stopping maintenance loop...                  source=storage.go:379
INFO[0013] Maintenance loop stopped.                     source=storage.go:1237
INFO[0013] Stopping series quarantining...               source=storage.go:383
INFO[0013] Series quarantining stopped.                  source=storage.go:1648
INFO[0013] Stopping chunk eviction...                    source=storage.go:387
INFO[0013] Chunk eviction stopped.                       source=storage.go:1057
INFO[0013] Checkpointing in-memory metrics and chunks...  source=persistence.go:549
INFO[0013] Done checkpointing in-memory metrics and chunks in 10.635958ms.  source=persistence.go:573
INFO[0013] Checkpointing fingerprint mappings...         source=persistence.go:1372
INFO[0013] Done checkpointing fingerprint mappings in 604.014µs.  source=persistence.go:1395
INFO[0013] Local storage stopped.                        source=storage.go:402
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Apr 4, 2017

Confirmed.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 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 23, 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.