Galosoft.IaaS.OpenTelemetry
24.12.17.1-nj
This is a prerelease version of Galosoft.IaaS.OpenTelemetry.
dotnet add package Galosoft.IaaS.OpenTelemetry --version 24.12.17.1-nj
NuGet\Install-Package Galosoft.IaaS.OpenTelemetry -Version 24.12.17.1-nj
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Galosoft.IaaS.OpenTelemetry" Version="24.12.17.1-nj" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Galosoft.IaaS.OpenTelemetry --version 24.12.17.1-nj
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Galosoft.IaaS.OpenTelemetry, 24.12.17.1-nj"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Galosoft.IaaS.OpenTelemetry as a Cake Addin #addin nuget:?package=Galosoft.IaaS.OpenTelemetry&version=24.12.17.1-nj&prerelease // Install Galosoft.IaaS.OpenTelemetry as a Cake Tool #tool nuget:?package=Galosoft.IaaS.OpenTelemetry&version=24.12.17.1-nj&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
⇒ 仅用于framework项目的集成,方便使用
AspNetCore.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"description": "ASP.NET Core metrics from OpenTelemetry NuGet",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 17706,
"graphTooltip": 0,
"id": 12,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-green",
"mode": "continuous-GrYlRd",
"seriesBy": "max"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 50,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"p50"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": false
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 40,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"min",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.50, sum(rate(http_server_request_duration_s_bucket[$__rate_interval])) by (le))",
"legendFormat": "p50",
"range": true,
"refId": "p50"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.75, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p75",
"range": true,
"refId": "p75"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.90, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p90",
"range": true,
"refId": "p90"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p95",
"range": true,
"refId": "p95"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.98, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p98",
"range": true,
"refId": "p98"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p99",
"range": true,
"refId": "p99"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.999, sum(rate(request_duration_s_bucket{job=\"$job\", instance=\"$instance\"}[$__rate_interval])) by (le))",
"hide": false,
"legendFormat": "p99.9",
"range": true,
"refId": "p99.9"
}
],
"title": "Requests Duration",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic",
"seriesBy": "max"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 50,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "All"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "4XX"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "5XX"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"id": 47,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"min",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(http_server_request_duration_s_count{status_code=~\"4..|5..\"}[$__rate_interval]) or vector(0)) / sum(rate(http_server_request_duration_s_count[$__rate_interval]))",
"legendFormat": "All",
"range": true,
"refId": "All"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(request_duration_s_count{job=\"$job\", instance=\"$instance\", status_code=~\"4..\"}[$__rate_interval]) or vector(0)) / sum(rate(request_duration_s_count{job=\"$job\", instance=\"$instance\"}[$__rate_interval]))",
"hide": false,
"legendFormat": "4XX",
"range": true,
"refId": "4XX"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(request_duration_s_count{job=\"$job\", instance=\"$instance\", status_code=~\"5..\"}[$__rate_interval]) or vector(0)) / sum(rate(request_duration_s_count{job=\"$job\", instance=\"$instance\"}[$__rate_interval]))",
"hide": false,
"legendFormat": "5XX",
"range": true,
"refId": "5XX"
}
],
"title": "Errors Rate",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 0,
"y": 9
},
"id": 49,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum( kestrel_current_connections)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Current Connections",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 6,
"x": 6,
"y": 9
},
"id": 55,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(http_server_current_requests)",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Current Requests",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 9
},
"id": 58,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "value"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(http_server_request_duration_s_count)",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Total Requests",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-red",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 9
},
"id": 59,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "center",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "value"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum( http_server_request_duration_s_count )",
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
],
"title": "Total Unhandled Exceptions",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "green",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 13
},
"id": 60,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum by (scheme) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n )",
"legendFormat": "{{scheme}}",
"range": true,
"refId": "A"
}
],
"title": "Requests Secured",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 13
},
"id": 42,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum by (protocol) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n )",
"legendFormat": "{{protocol}}",
"range": true,
"refId": "A"
}
],
"title": "Requests HTTP Protocol",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Requests"
},
"properties": [
{
"id": "custom.width",
"value": 675
},
{
"id": "custom.cellOptions",
"value": {
"mode": "gradient",
"type": "gauge"
}
},
{
"id": "color",
"value": {
"mode": "continuous-BlPu"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Endpoint"
},
"properties": [
{
"id": "links",
"value": [
{
"targetBlank": false,
"title": "Test",
"url": "/d/NagEsjE4z/asp-net-core-endpoint-details?var-route=${__data.fields.route}&var-method=${__data.fields.method}&${__url_time_range}"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "route"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
},
{
"matcher": {
"id": "byName",
"options": "method"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 17
},
"hideTimeOverride": false,
"id": 51,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Requests"
}
]
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"exemplar": false,
"expr": " topk(10,\r\n sum by (route, method,method_route) (\r\n label_join(max_over_time(http_server_request_duration_s_count{ route!=\"\"}[$__rate_interval]), \"method_route\",\" \",\"method\", \"route\")\r\n ))",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "{{route}}",
"range": false,
"refId": "A"
}
],
"title": "Top 10 Requested Endpoints",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"method": false,
"route": false
},
"indexByName": {
"Time": 0,
"Value": 4,
"method": 2,
"method_route": 3,
"route": 1
},
"renameByName": {
"Value": "Requests",
"method": "",
"method_route": "Endpoint",
"route": ""
}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Requests"
},
"properties": [
{
"id": "custom.width",
"value": 756
},
{
"id": "custom.cellOptions",
"value": {
"mode": "gradient",
"type": "gauge"
}
},
{
"id": "color",
"value": {
"mode": "continuous-YlRd"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Endpoint"
},
"properties": [
{
"id": "links",
"value": [
{
"title": "",
"url": "/d/NagEsjE4z/asp-net-core-endpoint-details?var-route=${__data.fields.route}&var-method=${__data.fields.method}&${__url_time_range}"
}
]
}
]
},
{
"matcher": {
"id": "byName",
"options": "route"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
},
{
"matcher": {
"id": "byName",
"options": "method"
},
"properties": [
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 17
},
"hideTimeOverride": false,
"id": 54,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": [
{
"desc": true,
"displayName": "Requests"
}
]
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"exemplar": false,
"expr": " topk(10,\r\n sum by (route, method, method_route) (\r\n label_join(max_over_time(http_server_request_duration_s_count{route!=\"\"}[$__rate_interval]), \"method_route\",\" \", \"method\", \"route\")\r\n ))",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "{{route}}",
"range": false,
"refId": "A"
}
],
"title": "Top 10 Unhandled Exception Endpoints",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"method": false
},
"indexByName": {
"Time": 0,
"Value": 4,
"method": 2,
"method_route": 3,
"route": 1
},
"renameByName": {
"Value": "Requests",
"method": "",
"method_route": "Endpoint",
"route": ""
}
}
}
],
"type": "table"
}
],
"refresh": "5s",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [
"dotnet",
"prometheus",
"aspnetcore"
],
"templating": {
"list": [
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(current_requests, job)",
"hide": 0,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
"options": [],
"query": {
"query": "label_values(current_requests, job)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(current_requests{job=~\"$job\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "Instance",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(current_requests{job=~\"$job\"}, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "2023-07-19T01:57:59.569Z",
"to": "2023-07-19T02:57:59.569Z"
},
"timepicker": {},
"timezone": "",
"title": "ASP.NET Core",
"uid": "KdDACDp4a",
"version": 2,
"weekStart": ""
}
ASP.NET Core Endpoint.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 13,
"links": [
{
"asDropdown": false,
"icon": "dashboard",
"includeVars": false,
"keepTime": true,
"tags": [],
"targetBlank": false,
"title": " ASP.NET Core",
"tooltip": "",
"type": "link",
"url": "/d/KdDACDp4z/asp-net-core-metrics"
}
],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "dark-green",
"mode": "continuous-GrYlRd",
"seriesBy": "max"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 50,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "s"
},
"overrides": [
{
"__systemRef": "hideSeriesFrom",
"matcher": {
"id": "byNames",
"options": {
"mode": "exclude",
"names": [
"p50"
],
"prefix": "All except:",
"readOnly": true
}
},
"properties": [
{
"id": "custom.hideFrom",
"value": {
"legend": false,
"tooltip": false,
"viz": false
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 40,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"min",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.50, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"legendFormat": "p50",
"range": true,
"refId": "p50"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.75, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p75",
"range": true,
"refId": "p75"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.90, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p90",
"range": true,
"refId": "p90"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.95, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p95",
"range": true,
"refId": "p95"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.98, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p98",
"range": true,
"refId": "p98"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.99, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p99",
"range": true,
"refId": "p99"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "histogram_quantile(0.999, sum(rate(http_server_request_duration_s_bucket[5m])) by (le))",
"hide": false,
"legendFormat": "p99.9",
"range": true,
"refId": "p99.9"
}
],
"title": "Requests Duration - $method $route",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic",
"seriesBy": "max"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 50,
"gradientMode": "opacity",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"lineInterpolation": "smooth",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "percentunit"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "All"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-orange",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "4XX"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "yellow",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "5XX"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-red",
"mode": "fixed"
}
}
]
}
]
},
"gridPos": {
"h": 9,
"w": 12,
"x": 12,
"y": 0
},
"id": 46,
"options": {
"legend": {
"calcs": [
"lastNotNull",
"min",
"max"
],
"displayMode": "table",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "multi",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(http_server_request_duration_s_count{ status_code=~\"4..|5..\"}[5m]) or vector(0)) / sum(rate(http_server_request_duration_s_count[5m]))",
"legendFormat": "All",
"range": true,
"refId": "All"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(http_server_request_duration_s_count{status_code=~\"4..\"}[5m]) or vector(0)) / sum(rate(http_server_request_duration_s_count[5m]))",
"hide": false,
"legendFormat": "4XX",
"range": true,
"refId": "4XX"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum(rate(http_server_request_duration_s_count{status_code=~\"5..\"}[5m]) or vector(0)) / sum(rate(http_server_request_duration_s_count[5m]))",
"hide": false,
"legendFormat": "5XX",
"range": true,
"refId": "5XX"
}
],
"title": "Errors Rate - $method $route",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "thresholds"
},
"custom": {
"align": "auto",
"cellOptions": {
"type": "auto"
},
"inspect": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Requests"
},
"properties": [
{
"id": "custom.width",
"value": 711
},
{
"id": "custom.cellOptions",
"value": {
"mode": "gradient",
"type": "gauge"
}
},
{
"id": "color",
"value": {
"mode": "continuous-YlRd"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Route"
},
"properties": [
{
"id": "links",
"value": [
{
"title": "",
"url": "/d/NagEsjE4z/asp-net-core-endpoint-details?var-route=${__data.fields.Route}&var-method=${__data.fields.Method}&${__url_time_range}"
}
]
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 9
},
"hideTimeOverride": false,
"id": 44,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"exemplar": false,
"expr": "sum by (exception_name) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n)",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "{{route}}",
"range": false,
"refId": "A"
}
],
"title": "Unhandled Exceptions",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"method": false
},
"indexByName": {
"Time": 0,
"Value": 2,
"exception_name": 1
},
"renameByName": {
"Value": "Requests",
"exception_name": "Exception",
"method": "Method",
"route": "Route"
}
}
}
],
"type": "table"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "blue",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 12,
"x": 12,
"y": 9
},
"id": 42,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum by (status_code) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n )",
"legendFormat": "Status {{status_code}}",
"range": true,
"refId": "A"
}
],
"title": "Requests HTTP Status Code",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "green",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 12,
"y": 13
},
"id": 48,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum by (scheme) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n )",
"legendFormat": "{{scheme}}",
"range": true,
"refId": "A"
}
],
"title": "Requests Secured",
"type": "stat"
},
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"fixedColor": "purple",
"mode": "fixed"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 6,
"x": 18,
"y": 13
},
"id": 50,
"options": {
"colorMode": "background",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"max"
],
"fields": "",
"values": false
},
"textMode": "value_and_name"
},
"pluginVersion": "10.0.2",
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"editorMode": "code",
"expr": "sum by (protocol) (\r\n max_over_time(http_server_request_duration_s_count[$__rate_interval])\r\n )",
"legendFormat": "{{protocol}}",
"range": true,
"refId": "A"
}
],
"title": "Requests HTTP Protocol",
"type": "stat"
}
],
"refresh": "",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"tags": [
"dotnet",
"prometheus",
"aspnetcore"
],
"templating": {
"list": [
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(current_requests, job)",
"hide": 0,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
"options": [],
"query": {
"query": "label_values(current_requests, job)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(current_requests{job=~\"$job\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "Instance",
"multi": false,
"name": "instance",
"options": [],
"query": {
"query": "label_values(current_requests{job=~\"$job\"}, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(request_duration_s_count, route)",
"description": "Route",
"hide": 0,
"includeAll": false,
"label": "Route",
"multi": false,
"name": "route",
"options": [],
"query": {
"query": "label_values(request_duration_s_count, route)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"isNone": true,
"selected": false,
"text": "None",
"value": ""
},
"datasource": {
"type": "prometheus",
"uid": "c06c3fbe-abc6-4ee9-9943-ebc44315b994"
},
"definition": "label_values(request_duration_s_count{route=~\"$route\"}, method)",
"hide": 0,
"includeAll": false,
"label": "Method",
"multi": false,
"name": "method",
"options": [],
"query": {
"query": "label_values(request_duration_s_count{route=~\"$route\"}, method)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
}
]
},
"time": {
"from": "now-30m",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "ASP.NET Core Endpoint",
"uid": "NagEsjE4a",
"version": 2,
"weekStart": ""
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Galosoft.IaaS.Core (>= 24.12.17.1-nj)
- OpenTelemetry.Exporter.Console (>= 1.8.0)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.8.0)
- OpenTelemetry.Exporter.Prometheus.AspNetCore (>= 1.5.0-rc.1)
- OpenTelemetry.Extensions.Hosting (>= 1.8.0)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.10.1)
- OpenTelemetry.Instrumentation.ElasticsearchClient (>= 1.0.0-beta.5)
- OpenTelemetry.Instrumentation.EntityFrameworkCore (>= 1.10.0-beta.1)
- OpenTelemetry.Instrumentation.Http (>= 1.10.0)
- OpenTelemetry.Instrumentation.Process (>= 1.10.0-beta.1)
- OpenTelemetry.Instrumentation.Quartz (>= 1.10.0-beta.1)
- OpenTelemetry.Instrumentation.Runtime (>= 1.10.0)
- OpenTelemetry.Instrumentation.SqlClient (>= 1.10.0-beta.1)
- OpenTelemetry.Instrumentation.StackExchangeRedis (>= 1.10.0-beta.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Galosoft.IaaS.OpenTelemetry:
Package | Downloads |
---|---|
Galosoft.Micro.App
Galosoft.IaaS快速开发库 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.12.17.1-nj | 43 | 12/18/2024 |
24.12.17-nj | 43 | 12/17/2024 |
24.12.16-nj | 41 | 12/17/2024 |