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

the ask about config path #10

Open
slblcx opened this issue Sep 7, 2020 · 0 comments
Open

the ask about config path #10

slblcx opened this issue Sep 7, 2020 · 0 comments

Comments

@slblcx
Copy link

slblcx commented Sep 7, 2020

exporter_port: 9158 # Port on which prometheus can call this exporter to get metrics
log_level: info
json_data_url: http://stubonweb.herokuapp.com/kong-cluster-status # Url to get json data used for fetching metric values
metric_name_prefix: kong_cluster # All metric names will be prefixed with this value
metrics:

  • name: total_nodes # Final metric name will be kong_cluster_total_nodes
    description: Total number of nodes in kong cluster
    path: $.total
  • name: alive_nodes # Final metric name will be kong_cluster_alive_nodes
    description: Number of live nodes in kong cluster
    path: count($.data[@.status is "alive"])

hello,Can i ask a question,Can path use python syntax

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