A Node.js microservice to store and query time series data

Overview

Time series storage microservice

This is a simple Node.js application which allows the storage and query of time series datasets in an InfluxDB 2.0 instance via a RESTful API. Additionally, it can be used with an external authentication API, making it convenient for applications where InfluxDB access credentials cannot be shared.

API

Route Method Description
/measurements GET Get a list of measurements
/measurements/MEASUREMENT_NAME POST Register a data point in the measurement
/measurements/MEASUREMENT_NAME GET Get points from the measurement

Environment variables

Variable Description
INFLUXDB_URL The URL of the InfluxDB instance
INFLUXDB_TOKEN The access token for the InfluxDB instance
INFLUXDB_ORG The organization used in the InfluxDB instance
INFLUXDB_BUCKET The name of the InfluxDB bucket

Usage examples (Python)

Point creation

import requests
measurement = 'example'
url = f'http://localhost:7070/measurements/{measurement}'
tags = ['building:main', 'room:lobby']
data = {
    'humidity': 50.3,
    'temperature': 24.7,
}
params = {'tags': tags}
requests.post(url, params=params, json=data)

Points query

import requests
measurement = 'example'
url = f'http://localhost:7070/measurements/{measurement}'
requests.get(url)
You might also like...

Microservice starter template with express.js & typescript

NodeJS + TypeScript [A starter template for REST API & microservices] Getting Started First, clone the repository: git clone https://github.com/MdMost

Jun 28, 2022

Backend Microservice & Payment Gateway System

A progressive Node.js framework for building efficient and scalable server-side applications. Description Nest framework TypeScript starter repository

May 9, 2023

Code accompanying my illustrated Data structures video series on YouTube

Code accompanying my illustrated Data structures video series on YouTube

Dec 10, 2022

Query for CSS brower support data, combined from caniuse and MDN, including version support started and global support percentages.

css-browser-support Query for CSS browser support data, combined from caniuse and MDN, including version support started and global support percentage

Nov 2, 2022

The Trino datasource allows to query and visualize Trino data from within Grafana.

Trino Grafana Data Source Plugin The Trino datasource allows to query and visualize Trino data from within Grafana. Getting started Drop this into Gra

Nov 3, 2022

A movie schema sandbox for playing with EdgeDB and the EdgeQL query builder, pre-loaded with MCU data

The EdgeDB MCU sandbox 🦹 This is a sandbox for playing with EdgeDB and the EdgeQL query builder. It includes a simple movie database schema (dbschema

Nov 9, 2022

100% type-safe query builder for node-postgres :: Generated types, call any function, tree-shakable, implicit type casts, and more

⚠️ This library is currently in alpha. Contributors wanted! tusken Postgres client from a galaxy far, far away. your database is the source-of-truth f

Dec 29, 2022

🎬 Movie, TV Series and Actor website made with TMDb, Next.js and TailwindCSS.

🎬 Movie, TV Series and Actor website made with TMDb, Next.js and TailwindCSS.

Movie App Demo Getting Started 🛠 Development Server npm install --s --f && npm run dev # or yarn install && yarn dev 🛠 Production Server npm install

Dec 27, 2022

Application for organizing, rating, and sharing TV series and movies that you are watching or would like to watch.

Application for organizing, rating, and sharing TV series and movies that you are watching or would like to watch.

Watch This! We're living in an age of virtually unlimited ntertainment options, and keeping up with it all can be a little overwhelming. Using the Wat

Jun 13, 2022
Owner
JTEKT
株式会社ジェイテクト | JTEKT Corporation
JTEKT
A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.

Obsidian Media DB Plugin A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your va

Moritz Jung 58 Dec 21, 2022
A simple query builder, it will helps to develop DSL query for Elasticsearch

Elasticsearch Dynamic Query Builder A simple query builder, it will helps to develop DSL query for elasticsearch Installation You can start it from np

Hashemi Rafsan 4 Nov 20, 2022
A vanilla node.js blog microservice

Vanilla blog microservice This is a vanilla blog microservice built using node.js; it was created for the purpose of learning to gain an understanding

Kater Akeren 1 Dec 24, 2021
Experiments with overlaying time-series satellite imagery on a map

Videomap.earth Experiments with overlaying time-series satellite imagery as video over maps. TODO: Add instructions on generating video files using st

Development Seed 6 May 10, 2023
ACME client microservice for the Cumulocity IoT Edge to automatically issue and renew valid certificates via e.g. Let's Encrypt.

Cumulocity IoT Edge - ACME This repository contains the sources for an ACME microservice that can be used to periodically issue/renew certificates for

Software AG 3 May 3, 2022
🔖Minimalistic URL shortener as a microservice

?? u Minimalistic URL shortener as a microservice. Also Klein's successor. ?? stack Node.js TypeScript Express Prisma PostgreSQL Redis Docker Docker C

Faye Keller 9 Jul 17, 2022
Request-Header-Parser-Microservice App for FreeCodeCamp Backend Challenge

API Project: Request Header Parser Microservice for freeCodeCamp User stories: I can get the IP address, preferred languages (from header Accept-Langu

Christotle Agholor 3 Mar 20, 2022
A microservice for calling ethereum APIs.

Ether Goblin A microservice for calling ethereum APIs. Features RESTFul APIs for the Ethereum Blockchain and its ecosystem Microservice Run in Docker

null 8 Nov 15, 2022
Microservice starter template with express.js & typescript

NodeJS + TypeScript [A starter template for microservice] Getting Started First, clone the repository: git clone https://github.com/MdMostaFizurRahama

Md Mostafizur Rahman 11 Jul 20, 2022
A light microservice serving Atom 1.0 Feeds for MusicThread threads

MusicThread Web Feeds A light microservice to serve Atom 1.0 Feeds for MusicThread. People use web feeds for following updates to specific threads via

Brushed Type 4 Jun 15, 2022