Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlemke committed Nov 14, 2019
0 parents commit 5e4a164
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Classes/CollectorRegistry.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
namespace Flownative\Prometheus;

/*
* This file is part of the Flownative.Prometheus package.
*
* (c) Flownative GmbH - www.flownative.com
*/

class CollectorRegistry
{
/**
*
*/
public function counter(): void
{
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2019 Robert Lemke, Flownative GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)
[![Packagist](https://img.shields.io/packagist/v/flownative/prometheus.svg)](https://packagist.org/packages/flownative/prometheus)
[![Maintenance level: Love](https://img.shields.io/badge/maintenance-%E2%99%A1%E2%99%A1%E2%99%A1-ff69b4.svg)](https://www.flownative.com/en/products/open-source.html)

# Prometheus integration for Neos Flow

This [Flow](https://flow.neos.io) package allows you to collect and provide metrics to [Prometheus](https://www.prometheus.io).

## Key Features


## Installation

The Prometheus integration is installed as a regular Flow package via Composer. For your existing project, simply include
`flownative/prometheus` into the dependencies of your Flow or Neos distribution:

```bash
$ composer require flownative/prometheus:1.*
```

## Configuration

23 changes: 23 additions & 0 deletions Tests/Unit/CollectorRegistryTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
namespace Flownative\Prometheus\Tests\Unit;

/*
* This file is part of the Flownative.Prometheus package.
*
* (c) Flownative GmbH - www.flownative.com
*/

use Flownative\Prometheus\CollectorRegistry;
use Neos\Flow\Tests\UnitTestCase;

class CollectorRegistryTest extends UnitTestCase
{
/**
* @test
*/
public function counterReturnsCounterCollector(): void
{
$collectorRegistry = new CollectorRegistry();
$collectorRegistry->counter();
}
}
25 changes: 25 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "flownative/prometheus",
"type": "neos-package",
"description": "Prometheus metrics for Neos Flow applications",
"authors": [
{
"name": "Robert Lemke",
"email": "[email protected]",
"homepage": "https://www.flownative.com",
"role": "Developer"
}
],
"license": [
"MIT"
],
"require": {
"neos/flow": "^5.0 || @dev"
},
"autoload": {
"psr-4": {
"Flownative\\Prometheus\\": "Classes"
}
},
"extra": {}
}

0 comments on commit 5e4a164

Please sign in to comment.