Skip to content

Commit

Permalink
update grafana.json
Browse files Browse the repository at this point in the history
  • Loading branch information
prajjwalyd committed Jul 13, 2024
1 parent 821b1a1 commit 38ab8ea
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions LinkLoom-grafana.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -102,8 +101,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(flask_http_request_total{job=~\"analytics|api|qr-code-generator|url-shortener\"}) by (job, method, status)",
Expand All @@ -118,8 +116,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -222,8 +219,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "sum(rate(process_cpu_seconds_total{job=~\"analytics|api|qr-code-generator|url-shortener\"}[5m])) by (job)",
Expand All @@ -238,8 +234,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -317,8 +312,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "rate(flask_http_request_duration_seconds_sum{job=\"api\"}[5m]) / rate(flask_http_request_duration_seconds_count{job=\"api\"}[5m])",
Expand All @@ -333,8 +327,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -412,8 +405,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "go_memstats_alloc_bytes{job=\"qr-code-generator\"}",
Expand All @@ -428,8 +420,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -507,8 +498,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "flask_http_request_total{job=\"url-shortener\"}",
Expand All @@ -523,8 +513,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -602,8 +591,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "cdrjwoixqnpq8a"
"type": "prometheus"
},
"editorMode": "code",
"expr": "avg(process_resident_memory_bytes{job=~\"analytics|api|qr-code-generator|url-shortener\"}) by (job)",
Expand Down

0 comments on commit 38ab8ea

Please sign in to comment.