Skip to content

Commit

Permalink
Merge pull request #45 from sanjaysrikakulam/esg_influxdb
Browse files Browse the repository at this point in the history
Add esg influxdb queries and measurement details
  • Loading branch information
sanjaysrikakulam authored May 23, 2024
2 parents b37c75b + 48a8a8b commit 9570f7e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions esg_influxdb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
The following measurements are available for ESG use cases (TPV-metascheduler and pulsar job visualizations):

Measurement name: `queue-overview`
Example influx query

```
SELECT "job_runner_name", last("count") as "job_count" FROM "queue-overview" WHERE ("job_runner_name" =~ /^pulsar_.*/ AND "job_runner_name" != 'condor' AND "job_runner_name" != 'pulsar_embedded') AND ("state" = 'running' OR "state" = 'queued') GROUP BY "state"
```

![queue-overview](images/queue_overview_grafana.png)

Alternatively, if you want to get the number for each remote compute cluster and not based on the job runners (like above)

Measurement name: `queue_by_destination`
Example influx query

```
SELECT last("count") FROM "queue_by_destination" WHERE ("destination_id" =~ /^pulsar_.*/) GROUP BY "destination_id", "state"
```

![queue_by_destination](images/queue_by_destination_grafana.png)

_Access to influxdb: Ask the EU admins for ESG influxdb credentials and URLs_
Binary file added images/queue_by_destination_grafana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/queue_overview_grafana.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9570f7e

Please sign in to comment.