GithubHelp home page GithubHelp logo

pcdshub / archstats Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 7.45 MB

EPICS Archiver Appliance statistics IOC

Home Page: https://pcdshub.github.io/archstats/

License: Other

Python 98.91% Shell 1.09%

archstats's Issues

Appliance reboot may cause available space to stop updating?

Between 6/9 and 7/1, after a PAMM archiver appliance maintenance and reboot, pscaa02 disk statistics did not update.
Other metrics were unaffected.

Unclear of the cause at the moment, but a reboot of ioc-archstats brought it back to life.

image

Add ratios for ease of display and alerting in Grafana

The appliance reports: PV count, connected PV count.
It's useful to calculate the percentage of connected PVs, which is possible in Grafana with a transform.

The transform can be plotted for a status dashboard, but it's not possible to use transforms with alerts yet. This means that we can only set an absolute PV count threshold, which is far from ideal.

Consider reworking data flow: elasticsearch -> PVGroup

Currently:

  • PVGroup startup method loops and queries the archiver appliance
    • Writes to PVs
    • Writes an elasticsearch document

Consider:

  • caproto-agnostic asyncio application queries archiver appliance

    • Writes an elasticsearch document
  • caproto PVGroup watches elasticsearch database for updates

    • Writes to PVs

[Grafana] Timezone complications

  • At 4PM PST on 12-02, it's 12-03 according to grafana datasources configuration: Elasticsearch error: no such index [archiver_appliance_metrics_pscaa01-2020.12.03] - which is true, but it shouldn't be checking for tomorrow's index just yet
  • Server time is correct; grafana settings only seem to show browser timezone

Seems likely to be an elasticsearch misconfiguration, but due to permissions I can't even take a look at them for now.

This appears to manifest itself in grafana, most annoyingly, as the following:
image
The fields no longer get listed - but if you know the full name, typing it still works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.