Documentation ¶
Index ¶
- func AppDashboard(w http.ResponseWriter, r *http.Request)
- func AppDetails(w http.ResponseWriter, r *http.Request)
- func AppHealth(request *restful.Request, response *restful.Response)
- func AppList(w http.ResponseWriter, r *http.Request)
- func AppMetrics(request *restful.Request, response *restful.Response)
- func Config(w http.ResponseWriter, r *http.Request)
- func CustomDashboard(w http.ResponseWriter, r *http.Request)
- func GetGrafanaInfo(w http.ResponseWriter, r *http.Request)
- func GetJaegerInfo(w http.ResponseWriter, r *http.Request)
- func GetNamespaceGraph(request *restful.Request, response *restful.Response)
- func GetToken(w http.ResponseWriter, r *http.Request)
- func GraphNamespaces(request *restful.Request, response *restful.Response)
- func GraphNode(request *restful.Request, response *restful.Response)
- func IstioConfigCreate(w http.ResponseWriter, r *http.Request)
- func IstioConfigDelete(w http.ResponseWriter, r *http.Request)
- func IstioConfigDetails(w http.ResponseWriter, r *http.Request)
- func IstioConfigList(w http.ResponseWriter, r *http.Request)
- func IstioConfigUpdate(w http.ResponseWriter, r *http.Request)
- func NamespaceHealth(request *restful.Request, response *restful.Response)
- func NamespaceList(w http.ResponseWriter, r *http.Request)
- func NamespaceMetrics(request *restful.Request, response *restful.Response)
- func RespondWithCode(w http.ResponseWriter, code int)
- func RespondWithError(w http.ResponseWriter, code int, message string)
- func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
- func RespondWithJSONIndent(w http.ResponseWriter, code int, payload interface{})
- func Root(w http.ResponseWriter, r *http.Request)
- func ServiceDashboard(w http.ResponseWriter, r *http.Request)
- func ServiceDetails(w http.ResponseWriter, r *http.Request)
- func ServiceHealth(request *restful.Request, response *restful.Response)
- func ServiceList(w http.ResponseWriter, r *http.Request)
- func ServiceMetrics(request *restful.Request, response *restful.Response)
- func WorkloadDashboard(w http.ResponseWriter, r *http.Request)
- func WorkloadDetails(w http.ResponseWriter, r *http.Request)
- func WorkloadHealth(request *restful.Request, response *restful.Response)
- func WorkloadList(w http.ResponseWriter, r *http.Request)
- func WorkloadMetrics(request *restful.Request, response *restful.Response)
- type PrometheusConfig
- type PrometheusPartialConfig
- type PublicConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppDashboard ¶
func AppDashboard(w http.ResponseWriter, r *http.Request)
AppDashboard is the API handler to fetch Istio dashboard, related to a single app
func AppDetails ¶
func AppDetails(w http.ResponseWriter, r *http.Request)
AppDetails is the API handler to fetch all details to be displayed, related to a single app
func AppHealth ¶
func AppHealth(request *restful.Request, response *restful.Response)
AppHealth is the API handler to get health of a single app
func AppList ¶
func AppList(w http.ResponseWriter, r *http.Request)
AppList is the API handler to fetch all the apps to be displayed, related to a single namespace
func AppMetrics ¶
func AppMetrics(request *restful.Request, response *restful.Response)
AppMetrics is the API handler to fetch metrics to be displayed, related to an app-label grouping
func Config ¶
func Config(w http.ResponseWriter, r *http.Request)
Config is a REST http.HandlerFunc serving up the Kiali configuration made public to clients.
func CustomDashboard ¶
func CustomDashboard(w http.ResponseWriter, r *http.Request)
CustomDashboard is the API handler to fetch runtime metrics to be displayed, related to a single app
func GetGrafanaInfo ¶
func GetGrafanaInfo(w http.ResponseWriter, r *http.Request)
GetGrafanaInfo provides the Grafana URL and other info, first by checking if a config exists then (if not) by inspecting the Kubernetes Grafana service in namespace istio-system
func GetJaegerInfo ¶
func GetJaegerInfo(w http.ResponseWriter, r *http.Request)
Get JaegerInfo provides the proxy Jaeger URL
func GetNamespaceGraph ¶
func GetNamespaceGraph(request *restful.Request, response *restful.Response)
func GraphNamespaces ¶
func GraphNamespaces(request *restful.Request, response *restful.Response)
GraphNamespaces is a REST http.HandlerFunc handling graph generation for 1 or more namespaces
func GraphNode ¶
func GraphNode(request *restful.Request, response *restful.Response)
GraphNode is a REST http.HandlerFunc handling node-detail graph config generation.
func IstioConfigCreate ¶
func IstioConfigCreate(w http.ResponseWriter, r *http.Request)
func IstioConfigDelete ¶
func IstioConfigDelete(w http.ResponseWriter, r *http.Request)
func IstioConfigDetails ¶
func IstioConfigDetails(w http.ResponseWriter, r *http.Request)
func IstioConfigList ¶
func IstioConfigList(w http.ResponseWriter, r *http.Request)
func IstioConfigUpdate ¶
func IstioConfigUpdate(w http.ResponseWriter, r *http.Request)
func NamespaceHealth ¶
func NamespaceHealth(request *restful.Request, response *restful.Response)
NamespaceHealth is the API handler to get app-based health of every services in the given namespace
func NamespaceList ¶
func NamespaceList(w http.ResponseWriter, r *http.Request)
func NamespaceMetrics ¶
func NamespaceMetrics(request *restful.Request, response *restful.Response)
NamespaceMetrics is the API handler to fetch metrics to be displayed, related to all services in the namespace
func RespondWithCode ¶
func RespondWithCode(w http.ResponseWriter, code int)
func RespondWithError ¶
func RespondWithError(w http.ResponseWriter, code int, message string)
func RespondWithJSON ¶
func RespondWithJSON(w http.ResponseWriter, code int, payload interface{})
func RespondWithJSONIndent ¶
func RespondWithJSONIndent(w http.ResponseWriter, code int, payload interface{})
func ServiceDashboard ¶
func ServiceDashboard(w http.ResponseWriter, r *http.Request)
ServiceDashboard is the API handler to fetch Istio dashboard, related to a single service
func ServiceDetails ¶
func ServiceDetails(w http.ResponseWriter, r *http.Request)
ServiceDetails is the API handler to fetch full details of an specific service
func ServiceHealth ¶
func ServiceHealth(request *restful.Request, response *restful.Response)
ServiceHealth is the API handler to get health of a single service
func ServiceList ¶
func ServiceList(w http.ResponseWriter, r *http.Request)
ServiceList is the API handler to fetch the list of services in a given namespace
func ServiceMetrics ¶
func ServiceMetrics(request *restful.Request, response *restful.Response)
ServiceMetrics is the API handler to fetch metrics to be displayed, related to a single service
func WorkloadDashboard ¶
func WorkloadDashboard(w http.ResponseWriter, r *http.Request)
WorkloadDashboard is the API handler to fetch Istio dashboard, related to a single workload
func WorkloadDetails ¶
func WorkloadDetails(w http.ResponseWriter, r *http.Request)
WorkloadDetails is the API handler to fetch all details to be displayed, related to a single workload
func WorkloadHealth ¶
func WorkloadHealth(request *restful.Request, response *restful.Response)
WorkloadHealth is the API handler to get health of a single workload
func WorkloadList ¶
func WorkloadList(w http.ResponseWriter, r *http.Request)
WorkloadList is the API handler to fetch all the workloads to be displayed, related to a single namespace
func WorkloadMetrics ¶
func WorkloadMetrics(request *restful.Request, response *restful.Response)
WorkloadMetrics is the API handler to fetch metrics to be displayed, related to a single workload
Types ¶
type PrometheusConfig ¶
type PrometheusConfig struct { GlobalScrapeInterval int64 `json:"globalScrapeInterval,omitempty"` StorageTsdbRetention int64 `json:"storageTsdbRetention,omitempty"` }
PrometheusConfig holds actual Prometheus configuration that is useful to Kiali. All durations are in seconds.
type PrometheusPartialConfig ¶
type PrometheusPartialConfig struct { Global struct { Scrape_interval string } }
type PublicConfig ¶
type PublicConfig struct { IstioNamespace string `json:"istioNamespace,omitempty"` IstioLabels config.IstioLabels `json:"istioLabels,omitempty"` Prometheus PrometheusConfig `json:"prometheus,omitempty"` }
PublicConfig is a subset of Kiali configuration that can be exposed to clients to help them interact with the system.