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

Unknown fields in metric - static labels #103

Open
ndelic0 opened this issue Sep 28, 2021 · 0 comments
Open

Unknown fields in metric - static labels #103

ndelic0 opened this issue Sep 28, 2021 · 0 comments

Comments

@ndelic0
Copy link

ndelic0 commented Sep 28, 2021

 ./sql_exporter -version
sql_exporter, version 0.5 (branch: master, revision: fc5ed07ee38c5b90bab285392c43edfe32d271c5)
  build user:       root@f24ba5099571
  build date:       20190114-09:24:06
  go version:       go1.11.3

collector definition:

collector_name: test_data

metrics:
  - metric_name: test_data
    static_labels:
      foo: bar 
    type: counter
    ...

when starting sql exporter I'm getting

I0928 03:09:09.036610    4796 config.go:18] Loading configuration from sql_exporter.yaml
F0928 03:09:09.038664    4796 main.go:56] Error creating exporter: unknown fields in metric: static_labels

Is static_labels field supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant