Exemplo n.º 1
0
                title="User CPU Usage",
                targets=[
                    Target(target='Mean User CPU Rate', ),
                    Target(target='Max User CPU Rate', ),
                ],
                yAxes=YAxes(left=YAxis(max=105, format="percent")),
            ),
            Graph(
                title="System CPU Usage",
                targets=[
                    Target(target='Mean System CPU Rate', ),
                    Target(target='Max System CPU Rate', ),
                ],
                yAxes=YAxes(left=YAxis(max=105, format="percent")),
            ),
        ]),
        Row(panels=[
            Graph(
                title="Resident Memory",
                targets=[
                    Target(target='Mean Resident Memory MB', ),
                    Target(target='Max Resident Memory MB', ),
                ],
                yAxes=YAxes(left=YAxis(format="decmbytes")),
            ),
        ]),
    ],
).auto_panel_ids()

dashboard = add_data_source(dashboard, CLIENT_LOAD_STATS_DATA_SOURCE)
Exemplo n.º 2
0
                        'sum(rate(api_method_latency_count{status="SUCCESS"}[10m]))',
                        legendFormat="Successful Calls Rate",
                    ),
                ],
            ),
            Graph(
                title="API Calls Count Rate by other statuses (not SUCCESS)",
                targets=[
                    Target(
                        expr=
                        'rate(api_method_latency_count{status!="SUCCESS"}[10m])',
                        legendFormat="Unsuccessful Calls Rate",
                    ),
                ],
            ),
            Graph(
                title="API Access Probe Latency",
                targets=[
                    Target(
                        expr=
                        'rate(api_access_probe_latency_sum[10m]) / rate(api_access_probe_latency_count[10m])',
                        legendFormat="Latency - Method: {{method_name}}",
                    ),
                ],
            ),
        ]),
    ],
).auto_panel_ids()

dashboard = add_data_source(dashboard, GRAFANA_DATA_SOURCE)
Exemplo n.º 3
0
                    ),
                ],
                yAxes=YAxes(left=YAxis(format=SECONDS_FORMAT)),
            ),
            Graph(
                title="Payload Bytes Saved per Service",
                targets=[
                    Target(
                        expr=
                        'sum by (service) (rate(fleetspeak_messages_saved_payload_bytes_size[10m]))',
                        legendFormat="{{service}}",
                    ),
                ],
                yAxes=YAxes(left=YAxis(format=BYTES_FORMAT)),
            ),
            Graph(
                title="Payload Bytes Ingested per Destination Service",
                targets=[
                    Target(
                        expr=
                        'sum by (destination_service) (rate(fleetspeak_messages_ingested_payload_bytes_size[10m]))',
                        legendFormat="{{destination_service}}",
                    ),
                ],
                yAxes=YAxes(left=YAxis(format=BYTES_FORMAT)),
            ),
        ])
    ]).auto_panel_ids()

dashboard = add_data_source(dashboard, "fleetspeak")