Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (26 sloc) 1.2 KB
syntax = "proto3";
package config.prometheus.io;
option go_package = "github.com/solo-io/supergloo/pkg/api/external/prometheus/v1";
import "gogoproto/gogo.proto";
option (gogoproto.equal_all) = true;
import "github.com/solo-io/solo-kit/api/v1/metadata.proto";
import "github.com/solo-io/solo-kit/api/v1/solo-kit.proto";
/*
PrometheusConfig represents a Kubernetes ConfigMap containing a
Prometheus config yaml stored with the key `prometheus.yml`.
SuperGloo uses conversion functions to convert from a configmap
to a typed Prometheus config.
*/
message PrometheusConfig {
option (core.solo.io.resource).short_name = "pc";
option (core.solo.io.resource).plural_name = "prometheusconfigs";
// Metadata contains the object metadata for this resource
core.solo.io.Metadata metadata = 101 [(gogoproto.nullable) = false];
// inline string containing the prometheus config
// json_name must refer to the data key in the configmap we expect
string prometheus = 1 [json_name="prometheus.yml"];
// inline string containing the alerts config. currently unused by supergloo
string alerts = 2;
// inline string containing the rules config. currently unused by supergloo
string rules = 3;
}
You can’t perform that action at this time.