Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExportedMetrics (0.26 sec)

  1. pkg/collateral/metrics/otel.go

    )
    
    var charReplacer = strings.NewReplacer("/", "_", ".", "_", " ", "_", "-", "")
    
    func promName(metricName string) string {
    	s := strings.TrimPrefix(metricName, "/")
    	return charReplacer.Replace(s)
    }
    
    func ExportedMetrics() []monitoring.MetricDefinition {
    	return slices.Map(monitoring.ExportMetricDefinitions(), func(e monitoring.MetricDefinition) monitoring.MetricDefinition {
    		e.Name = promName(e.Name)
    		return e
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/collateral/metrics/otel_test.go

    import (
    	"testing"
    
    	"istio.io/istio/pkg/collateral/metrics"
    	"istio.io/istio/pkg/monitoring"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func TestExportedMetrics(t *testing.T) {
    	assert.Equal(t, metrics.ExportedMetrics(), want)
    }
    
    var (
    	// AttributesTotal is a measure of the number of known attributes.
    	AttributesTotal = monitoring.NewGauge(
    		"mixer/config/attributes_total",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 17 20:25:52 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  3. pkg/collateral/control.go

    	g.emit(`<h2 id="metrics">Exported metrics</h2>
    <table class="metrics">
    <thead>
    <tr><th>Metric Name</th><th>Type</th><th>Description</th></tr>
    </thead>
    <tbody>`)
    
    	for _, metric := range metrics.ExportedMetrics() {
    		if !selectFn(metric) {
    			continue
    		}
    		g.emit("<tr><td><code>", metric.Name, "</code></td><td><code>", metric.Type, "</code></td><td>", metric.Description, "</td></tr>")
    	}
    
    	g.emit(`</tbody>
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 10 03:51:36 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top