Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
RPCFetch []RPCFetchConfig `yaml:"rpc_fetch,omitempty"`
}
Config is a struct that holds the configuration for the application.
type Field ¶
type Field struct { Selector string `yaml:"selector,omitempty"` MetricName string `yaml:"metric_name,omitempty"` }
Field is a struct that holds the configuration for a field in the response.
type RPCFetchConfig ¶
type RPCFetchConfig struct { Method string `yaml:"method,omitempty"` URL string `yaml:"url,omitempty"` Body string `yaml:"body,omitempty"` Fields []Field `yaml:"fields,omitempty"` Labels []Label `yaml:"labels,omitempty"` }
RPCFetchConfig is a struct that holds conversion configuration for RPC response into Prometheus.
Click to show internal directories.
Click to hide internal directories.