Add meteocat exporter #103
Reference in New Issue
Block a user
Delete Branch "monitor-outside-temp"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allows us to track ambient temperature changes and estimate the
temperature delta between the server room and exterior temperature.
We should be able to predict when we would need to stop the machines due
to excesive temperature as summer approaches.
@@ -0,0 +23,4 @@soup = BeautifulSoup(data, 'lxml')table = soup.find("table", {"class" : "tblperiode"})rows = table.find_all('tr')row = rows[-1] # Take the last rowSeems that meteocat does not update the data in realtime (right now at 17:20 the last row is from 14:30). Also, the periods are of 30 minutes, so we will have duplicates.
Can we manually set the time of the gauge and check for duplicates?
Meteocat uses UTC time, so you need to add 2 hours to the website times to convert to Spain time. It is mostly realtime.
Meteocat samples the temp over 30 minutes, then computes the min/max/avg during ~5 minutes and then outputs the values on the table, so they have at most 40 min of delay as we retry every 5 minutes.
There are no duplicates per-se. We update the gauge as soon as we discover a new value. But prometheus will query the metrics every minute, so it will continue to read the same values for 30 min at least. This is fine as they have a very effective mechanism to store duplicates that only takes around 1 bit of information (see https://www.vldb.org/pvldb/vol8/p1816-teller.pdf section 4.1.2).
I have added another sensor from the UPC C6 building: https://jungle.bsc.es/grafana/d/EKkKVvLVz/hut?orgId=1&from=now-24h&to=now&timezone=browser&refresh=5s&viewPanel=panel-50
@@ -0,0 +29,4 @@for i in range(7):for j in range(48):key = 'week.days[{}].hours[{}].value'.format(i, j)d[key] = 'OPEN'Amazing API design
8230ea507eto7a2f37aaa2