Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/syou6162/mackerel-plugin-bigquery-query-result-importer

Mackerel plugin to post bigquery's query result
https://github.com/syou6162/mackerel-plugin-bigquery-query-result-importer

bigquery mackerel-plugin

Last synced: 4 months ago
JSON representation

Mackerel plugin to post bigquery's query result

Awesome Lists containing this project

README

        

# mackerel-plugin-bigquery-query-result-importer

## Synopsis

```console
% mackerel-plugin-bigquery-query-result-importer --project_id PROJECT --graph_name GRAPH_NAME --query QUERY
```

## Example of mackerel-agent.conf
Be careful about BigQuery Billing. Details and useful query examples are written in [blog entry](https://www.yasuhisay.info/entry/mackerel-plugin-bigquery-query-result-importer).

```conf
[plugin.metrics.bigquery-query-result-importer]
command = "/path/to/mackerel-plugin-bigquery-query-result-importer --project_id my-project --graph_name bigquery_query_sample --query \"SELECT 'hoge' AS Label, 12.3 AS Value UNION ALL SELECT 'fuga' AS Label, 45.6 AS Value UNION ALL SELECT 'piyo' AS Label, 78.9 AS Value\""
```