Skip to content

the ask about config path #10

@slblcx

Description

@slblcx

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions