istio: istio.io/istio/mixer/adapter/metadata Index | Files

package metadata

import "istio.io/istio/mixer/adapter/metadata"

Package metadata contains all compiled-in adapter metadata

Index

Package Files

inventory.go

Variables

var (
    Infos = []adapter.Info{
        {
            Name:        "bypass",
            Impl:        "istio.io/istio/mixer/adapter/bypass",
            Description: "Calls gRPC backends via the inline adapter model (useful for testing)",
            SupportedTemplates: []string{
                checknothing.TemplateName,
                reportnothing.TemplateName,
                metric.TemplateName,
                quota.TemplateName,
            },
            DefaultConfig: &bypass.Params{},
        },

        {
            Name:        "circonus",
            Description: "Emit metrics to Circonus.com monitoring endpoint",
            SupportedTemplates: []string{
                metric.TemplateName,
            },
            DefaultConfig: &circonus.Params{SubmissionUrl: "", SubmissionInterval: 10 * time.Second},
        },

        {
            Name:        "cloudwatch",
            Description: "Sends metrics to cloudwatch and logs to cloudwatchlogs",
            SupportedTemplates: []string{
                metric.TemplateName,
                logentry.TemplateName,
            },
            DefaultConfig: &cloudwatch.Params{},
        },

        {
            Name:        "denier",
            Impl:        "istio.io/istio/mixer/adapter/denier",
            Description: "Rejects any check and quota request with a configurable error",
            SupportedTemplates: []string{
                checknothing.TemplateName,
                listentry.TemplateName,
                quota.TemplateName,
            },
            DefaultConfig: &denier.Params{
                Status:        status.New(rpc.FAILED_PRECONDITION),
                ValidDuration: 5 * time.Second,
                ValidUseCount: 1000,
            },
        },

        {
            Name:        "dogstatsd",
            Description: "Produces dogstatsd metrics",
            SupportedTemplates: []string{
                metric.TemplateName,
            },
            DefaultConfig: &dogstatsd.Params{
                Address:      "localhost:8125",
                Prefix:       "istio.",
                BufferLength: 0,
                GlobalTags:   map[string]string{},
            },
        },

        {
            Name:        "fluentd",
            Description: "Sends logentrys to a fluentd instance",
            SupportedTemplates: []string{
                logentry.TemplateName,
            },
            DefaultConfig: &fluentd.Params{
                Address: "localhost:24224",
            },
        },

        {
            Name:        "kubernetesenv",
            Impl:        "istio.io/istio/mixer/adapter/kubernetesenv",
            Description: "Provides platform specific functionality for the kubernetes environment",
            SupportedTemplates: []string{
                ktmpl.TemplateName,
            },
            DefaultConfig: &kubernetesenv.Params{
                KubeconfigPath: "",

                CacheRefreshDuration:       5 * time.Minute,
                ClusterRegistriesNamespace: "",
            },
        },

        {
            Name:               "listchecker",
            Impl:               "istio.io/istio/mixer/adapter/list",
            Description:        "Checks whether an entry is present in a list",
            SupportedTemplates: []string{listentry.TemplateName},
            DefaultConfig: &list.Params{
                RefreshInterval: 60 * time.Second,
                Ttl:             300 * time.Second,
                CachingInterval: 300 * time.Second,
                CachingUseCount: 10000,
                EntryType:       list.STRINGS,
                Blacklist:       false,
            },
        },

        {
            Name:        "memquota",
            Impl:        "istio.io/istio/mixer/adapter/memquota",
            Description: "Volatile memory-based quota tracking",
            SupportedTemplates: []string{
                quota.TemplateName,
            },
            DefaultConfig: &memquota.Params{
                MinDeduplicationDuration: 1 * time.Second,
            },
        },

        {
            Name:        "noop",
            Impl:        "istio.io/istio/mixer/adapter/noop",
            Description: "Does nothing (useful for testing)",
            SupportedTemplates: []string{
                authorization.TemplateName,
                checknothing.TemplateName,
                reportnothing.TemplateName,
                listentry.TemplateName,
                logentry.TemplateName,
                metric.TemplateName,
                quota.TemplateName,
                tracespan.TemplateName,
            },
            DefaultConfig: &types.Empty{},
        },

        {
            Name:        "opa",
            Impl:        "istio.io/istio/mixer/adapter/opa",
            Description: "Istio Authorization with Open Policy Agent engine",
            SupportedTemplates: []string{
                authorization.TemplateName,
            },
            DefaultConfig: &opa.Params{},
        },

        {
            Name:        "prometheus",
            Impl:        "istio.io/istio/mixer/adapter/prometheus",
            Description: "Publishes prometheus metrics",
            SupportedTemplates: []string{
                metric.TemplateName,
            },
            DefaultConfig: &prometheus.Params{},
        },

        {
            Name:        "redisquota",
            Impl:        "istio.io/mixer/adapter/redisquota",
            Description: "Redis-based quotas.",
            SupportedTemplates: []string{
                quota.TemplateName,
            },
            DefaultConfig: &redisquota.Params{
                RedisServerUrl:     "localhost:6379",
                ConnectionPoolSize: 10,
            },
        },

        {
            Name:        "signalfx",
            Description: "Sends metrics and traces to SignalFx",
            SupportedTemplates: []string{
                metric.TemplateName,
                tracespan.TemplateName,
            },
            DefaultConfig: &signalfx.Params{
                EnableMetrics:            true,
                EnableTracing:            true,
                DatapointInterval:        10 * time.Second,
                TracingBufferSize:        1000,
                TracingSampleProbability: 1.0,
            },
        },

        {
            Name:        "solarwinds",
            Impl:        "istio.io/istio/mixer/adapter/solarwinds",
            Description: "Publishes metrics to appoptics and logs to papertrail",
            SupportedTemplates: []string{
                metric.TemplateName,
                logentry.TemplateName,
            },
            DefaultConfig: &solarwinds.Params{},
        },

        {
            Name:        "stackdriver",
            Impl:        "istio.io/istio/mixer/adapter/stackdriver",
            Description: "Publishes StackDriver metrics, logs and traces.",
            SupportedTemplates: []string{
                edgepb.TemplateName,
                logentry.TemplateName,
                metric.TemplateName,
                tracespan.TemplateName,
            },
            DefaultConfig: &stackdriver.Params{},
        },

        {
            Name:        "statsd",
            Impl:        "istio.io/istio/mixer/adapter/statsd",
            Description: "Produces statsd metrics",
            SupportedTemplates: []string{
                metric.TemplateName,
            },
            DefaultConfig: &statsd.Params{
                Address:       "localhost:8125",
                Prefix:        "",
                FlushDuration: 300 * time.Millisecond,
                FlushBytes:    512,
                SamplingRate:  1.0,
            },
        },

        {
            Name:        "stdio",
            Impl:        "istio.io/istio/mixer/adapter/stdio",
            Description: "Writes logs and metrics to a standard I/O stream",
            SupportedTemplates: []string{
                logentry.TemplateName,
                metric.TemplateName,
            },
            DefaultConfig: &stdio.Params{
                LogStream:                  stdio.STDOUT,
                MetricLevel:                stdio.INFO,
                OutputLevel:                stdio.INFO,
                OutputAsJson:               true,
                MaxDaysBeforeRotation:      30,
                MaxMegabytesBeforeRotation: 100 * 1024 * 1024,
                MaxRotatedFiles:            1000,
                SeverityLevels: map[string]stdio.Params_Level{
                    "INFORMATIONAL": stdio.INFO,
                    "informational": stdio.INFO,
                    "INFO":          stdio.INFO,
                    "info":          stdio.INFO,
                    "WARNING":       stdio.WARNING,
                    "warning":       stdio.WARNING,
                    "WARN":          stdio.WARNING,
                    "warn":          stdio.WARNING,
                    "ERROR":         stdio.ERROR,
                    "error":         stdio.ERROR,
                    "ERR":           stdio.ERROR,
                    "err":           stdio.ERROR,
                    "FATAL":         stdio.ERROR,
                    "fatal":         stdio.ERROR,
                },
            },
        },

        {
            Name:        "zipkin",
            Impl:        "istio.io/istio/mixer/adapter/zipkin",
            Description: "Publishes traces to Zipkin.",
            SupportedTemplates: []string{
                tracespan.TemplateName,
            },
            DefaultConfig: &zipkin.Params{},
        },
    }
)

func GetInfo Uses

func GetInfo(name string) adapter.Info

GetInfo looks up an adapter info from the declaration list by name

func InfoMap Uses

func InfoMap() map[string]*adapter.Info

InfoMap returns an indexed map of adapter infos.

Package metadata imports 34 packages (graph) and is imported by 34 packages. Updated 2019-08-28. Refresh now. Tools for package owners.