Skip to content

Commit

Permalink
add argus and epimetheus (#1648)
Browse files Browse the repository at this point in the history
* add argus and epimetheus

* fixup mac deps for epimetheus

* update vocab
  • Loading branch information
jpetrucciani authored Aug 6, 2024
1 parent 60486e5 commit a78f662
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/styles/config/vocabularies/Cloud/accept.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
(?i)addons
(?i)airbyte
(?i)alibaba
(?i)argus
(?i)AWS
(?i)awscli
(?i)epimetheus
(?i)flipt
(?i)gcloud
(?i)GCP
Expand Down
2 changes: 2 additions & 0 deletions .github/styles/config/vocabularies/Code/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
(?i)haproxy
(?i)headscale
(?i)html
(?i)http
(?i)https
(?i)infisical
(?i)javascript
(?i)json
Expand Down
1 change: 1 addition & 0 deletions .github/styles/config/vocabularies/Meme/accept.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
(?i)palworld
(?i)stationeers
(?i)styx
(?i)swiss
8 changes: 8 additions & 0 deletions pkgs/server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ This directory contains specific servers

## In this directory

### [argus.nix](./argus.nix)

[argus](https://github.com/jpetrucciani/argus) is a customizable http request logger with prometheus metrics

### [epimetheus.nix](./epimetheus.nix)

[epimetheus](https://github.com/jpetrucciani/epimetheus) is a swiss army knife prometheus exporter capable of watching json/csv/yaml files and providing prometheus metrics

### [hasura-batteries.nix](./hasura-batteries.nix)

[hasura-batteries](https://github.com/RocketsGraphQL/hasura-batteries) is a service that runs alongside Hasura GraphQL engine giving it superpowers like Authentication
Expand Down
27 changes: 27 additions & 0 deletions pkgs/server/argus.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# [argus](https://github.com/jpetrucciani/argus) is a customizable http request logger with prometheus metrics
{ lib
, rustPlatform
, fetchFromGitHub
}:

rustPlatform.buildRustPackage rec {
pname = "argus";
version = "0.1.1";

src = fetchFromGitHub {
owner = "jpetrucciani";
repo = "argus";
rev = version;
hash = "sha256-1ZSo1Nv6WeEI/5uNhvzwB2CudqHf/YKRiCAhOR9ARgg=";
};

cargoHash = "sha256-q8a7HXhE46OAsh1QceLQNMUadjm1GIrnQwZYsa96D+M=";

meta = with lib; {
description = "A customizable http request logger with prometheus metrics";
homepage = "https://github.com/jpetrucciani/argus";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "argus";
};
}
38 changes: 38 additions & 0 deletions pkgs/server/epimetheus.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# [epimetheus](https://github.com/jpetrucciani/epimetheus) is a swiss army knife prometheus exporter capable of watching json/csv/yaml files and providing prometheus metrics
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
let
osSpecific =
if stdenv.isDarwin then
(with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]) else [ ];
in
rustPlatform.buildRustPackage rec {
pname = "epimetheus";
version = "0.1.0";

src = fetchFromGitHub {
owner = "jpetrucciani";
repo = "epimetheus";
rev = version;
hash = "sha256-Olgy944mPv0Lq2KfyyBMqqkyHu2tW18OQNz/I6CPI0c=";
};

cargoHash = "sha256-3WtVezwva8sJF7OQt599ATc74BVqKojmD0hWtEpSEu8=";

buildInputs = osSpecific;

meta = with lib; {
description = "A swiss army knife prometheus exporter capable of watching json/csv/yaml files and providing prometheus metrics";
homepage = "https://github.com/jpetrucciani/epimetheus";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "epimetheus";
};
}

0 comments on commit a78f662

Please sign in to comment.